mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
firewall: Fix initialization when RED has not been brought up yet
This commit is contained in:
@@ -369,8 +369,10 @@ iptables_red_down() {
|
||||
# while the wan interface is down - this is required to
|
||||
# circumvent udp related NAT issues
|
||||
# http://forum.ipfire.org/index.php?topic=11127.0
|
||||
iptables -F REDFORWARD
|
||||
iptables -A REDFORWARD -o $IFACE -j DROP
|
||||
if [ -n "${IFACE}" ]; then
|
||||
iptables -F REDFORWARD
|
||||
iptables -A REDFORWARD -o "${IFACE}" -j DROP
|
||||
fi
|
||||
|
||||
# Reload all rules.
|
||||
/usr/local/bin/firewallctrl
|
||||
|
||||
Reference in New Issue
Block a user