diff options
| author | Bastian Bittorf | 2017-02-12 19:22:23 +0000 |
|---|---|---|
| committer | Bastian Bittorf | 2017-02-12 19:23:25 +0000 |
| commit | 22c05861e6168e74cd91d202a5ea4119f38d1ce1 (patch) | |
| tree | 1dae39bd7dcfec064cf44ca3822b58a990962364 | |
| parent | 0e71dbfba6a58a70dd6ef92e9c3138c4259f084d (diff) | |
| download | routing-22c05861e6168e74cd91d202a5ea4119f38d1ce1.tar.gz | |
olsr: smartfw: fix a syntax error whwile checking for 'nowan'
introduced in 059b26c2 in 2011-nov-14 ("Manuel Munz freifunk@somakoma.de modified init
file of olsrd with improvements for 6and4 operation and also for setup of smartgw")
| -rw-r--r-- | olsrd/files/olsrd.init | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/olsrd/files/olsrd.init b/olsrd/files/olsrd.init index f5b8660..48ca281 100644 --- a/olsrd/files/olsrd.init +++ b/olsrd/files/olsrd.init @@ -717,7 +717,7 @@ olsrd_setup_smartgw_rules() { $IP4T -I forwarding_rule -o tnl_+ -j ACCEPT $IP4T -t nat -I postrouting_rule -o tnl_+ -j MASQUERADE # Allow forwarding from tunl0 to (all) wan-interfaces - if [ "$nowan"="0" ]; then + if [ "$nowan" = '0' ]; then for IFACE in $wanifnames; do $IP4T -A forwarding_rule -i tunl0 -o $IFACE -j ACCEPT done @@ -728,7 +728,7 @@ olsrd_setup_smartgw_rules() { done elif [ "$smartgatewayuplink" = "ipv6" ]; then $IP6T -I forwarding_rule -o tnl_+ -j ACCEPT - if [ "$nowan"="0" ]; then + if [ "$nowan" = '0' ]; then for IFACE in $wanifnames; do $IP6T -A forwarding_rule -i tunl0 -o $IFACE -j ACCEPT done @@ -740,7 +740,7 @@ olsrd_setup_smartgw_rules() { $IP4T -t nat -I postrouting_rule -o tnl_+ -j MASQUERADE for IPT in $IP4T $IP6T; do $IPT -I forwarding_rule -o tnl_+ -j ACCEPT - if [ "$nowan"="0" ]; then + if [ "$nowan" = '0' ]; then for IFACE in $wanifnames; do $IPT -A forwarding_rule -i tunl0 -o $IFACE -j ACCEPT done |