summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-05-24 17:13:38 +0200
committerGuilhem Moulin <guilhem@fripost.org>2016-05-24 17:13:38 +0200
commit25564fcae2ed65eb3c1981e1e0e44621a3c9d7eb (patch)
tree63183ad2fd8ff88366f3762af6ecaf9423de74cd /roles
parent1af3c572eedb0eaddcdc5c9c41d98ff59bb7b2c9 (diff)
typo
Diffstat (limited to 'roles')
-rwxr-xr-xroles/common/files/usr/local/sbin/update-firewall.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/common/files/usr/local/sbin/update-firewall.sh b/roles/common/files/usr/local/sbin/update-firewall.sh
index 065bae2..d5e2238 100755
--- a/roles/common/files/usr/local/sbin/update-firewall.sh
+++ b/roles/common/files/usr/local/sbin/update-firewall.sh
@@ -264,10 +264,10 @@ run() {
if [ "$f" = 4 -a "$ipsec" = y ]; then
# Allow local access to our virtual IP
/bin/ip -4 -o route show table 220 dev $if \
- | sed -nr 's/.*\ssrc\s+([[:digit:].]{7,15})(\s.*)?/\1/p' \
- | while read ipsec; do
- iptables -A INPUT -i lo -s "$ipsec" -d "$ipsec" -j ACCEPT
- iptables -A OUTPUT -o lo -s "$ipsec" -d "$ipsec" -j ACCEPT
+ | sed -nr 's/.*\ssrc\s+([[:digit:].]{7,15})(\s.*)?$/\1/p' \
+ | while read ips; do
+ iptables -A INPUT -i lo -s "$ips" -d "$ips" -j ACCEPT
+ iptables -A OUTPUT -o lo -s "$ips" -d "$ips" -j ACCEPT
done
fi