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
;;
*)