add additional firewall rules for olsr operation
authorFelix Fietkau <nbd@openwrt.org>
Sun, 8 Oct 2006 22:49:49 +0000 (22:49 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 8 Oct 2006 22:49:49 +0000 (22:49 +0000)
SVN-Revision: 4971

openwrt/package/olsrd/files/olsrd.init

index 685f14e9e4c0f5d4ab8e3c4758f5e2fbb6c9864d..a72353d7caee0cb8bcb6142ebbf7e434822d0c84 100644 (file)
@@ -30,8 +30,10 @@ case $1 in
 EOF
                        cat /etc/olsrd.conf
                ) | awk -f /usr/lib/parse-config.awk > /tmp/olsrd.conf
-               iptables -D input_rule -i "$wifi_ifname" -o "$wifi_ifname" -j ACCEPT 2>/dev/null >/dev/null # no duplicates please
-               iptables -A input_rule -i "$wifi_ifname" -o "$wifi_ifname" -j ACCEPT
+               iptables -D forwarding_rule -i "$wifi_ifname" -j ACCEPT 2>/dev/null >/dev/null # no duplicates please
+               iptables -D forwarding_rule -o "$wifi_ifname" -j ACCEPT 2>/dev/null >/dev/null # no duplicates please
+               iptables -A forwarding_rule -i "$wifi_ifname" -j ACCEPT
+               iptables -A forwarding_rule -o "$wifi_ifname" -j ACCEPT
                olsrd $OPTIONS
   ;;
  *)