From: Felix Fietkau Date: Sun, 8 Oct 2006 22:49:49 +0000 (+0000) Subject: add additional firewall rules for olsr operation X-Git-Tag: whiterussian_rc6~99 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3e384231aa3ef0971f55bc76acbe6d5e0e1626b9;p=openwrt%2Fsvn-archive%2Fopenwrt.git add additional firewall rules for olsr operation SVN-Revision: 4971 --- diff --git a/openwrt/package/olsrd/files/olsrd.init b/openwrt/package/olsrd/files/olsrd.init index 685f14e9e4..a72353d7ca 100644 --- a/openwrt/package/olsrd/files/olsrd.init +++ b/openwrt/package/olsrd/files/olsrd.init @@ -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 ;; *)