mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Firewall: remove old firewall scripts in update.sh
This commit is contained in:
committed by
Michael Tremer
parent
0206795e57
commit
8dafd717bc
@@ -49,13 +49,18 @@ rm -f /etc/rc.d/init.d/networking/red.up/22-outgoingfwctrl
|
||||
rm -f /etc/rc.d/init.d/networking/red.up/25-portfw
|
||||
rm -f /etc/rc.d/init.d/networking/red.up/26-xtaccess
|
||||
|
||||
# Remove old firewallscripts
|
||||
rm -f /usr/local/bin/setportfw
|
||||
rm -f /usr/local/bin/setdmzholes
|
||||
rm -f /usr/local/bin/setxtaccess
|
||||
rm -f /usr/local/bin/outgoingfwctrl
|
||||
|
||||
# Remove old CGI files
|
||||
rm -f /srv/web/ipfire/cgi-bin/{dmzholes,outgoingfw,portfw,xtaccess}.cgi
|
||||
|
||||
# Generate chains for new firewall
|
||||
/sbin/iptables -N INPUTFW
|
||||
/sbin/iptables -N FORWARDFW
|
||||
/sbin/iptables -N OUTGOINGFW
|
||||
/sbin/iptables -N POLICYFWD
|
||||
/sbin/iptables -N POLICYIN
|
||||
/sbin/iptables -N POLICYOUT
|
||||
|
||||
Reference in New Issue
Block a user