firmware/src/packages/fff/fff-layer3/files/usr/lib/firewall.d/10-no-forward-wan

6 lines
221 B
Plaintext

# Ensure nothing is forwarded onto WAN interface
if [ -n "$IF_WAN" ]; then
iptables -A FORWARD -o $IF_WAN -j REJECT --reject-with icmp-net-unreachable
ip6tables -A FORWARD -o $IF_WAN -j REJECT --reject-with no-route
fi