mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Reload all firewall rules when /etc/init.d/firewall reload is executed.
This commit is contained in:
@@ -81,7 +81,6 @@ etc/rc.d/init.d/networking/red.up/05-RS-dnsmasq
|
||||
etc/rc.d/init.d/networking/red.up/10-miniupnpd
|
||||
etc/rc.d/init.d/networking/red.up/10-multicast
|
||||
etc/rc.d/init.d/networking/red.up/20-RL-firewall
|
||||
etc/rc.d/init.d/networking/red.up/22-forwardfwctrl
|
||||
etc/rc.d/init.d/networking/red.up/23-RS-snort
|
||||
etc/rc.d/init.d/networking/red.up/24-RS-qos
|
||||
etc/rc.d/init.d/networking/red.up/27-RS-squid
|
||||
|
||||
@@ -83,7 +83,6 @@ etc/rc.d/init.d/networking/red.up/05-RS-dnsmasq
|
||||
etc/rc.d/init.d/networking/red.up/10-miniupnpd
|
||||
etc/rc.d/init.d/networking/red.up/10-multicast
|
||||
etc/rc.d/init.d/networking/red.up/20-RL-firewall
|
||||
etc/rc.d/init.d/networking/red.up/22-forwardfwctrl
|
||||
etc/rc.d/init.d/networking/red.up/23-RS-snort
|
||||
etc/rc.d/init.d/networking/red.up/24-RS-qos
|
||||
etc/rc.d/init.d/networking/red.up/27-RS-squid
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
etc/rc.d/init.d/firewall
|
||||
etc/rc.d/init.d/networking/red.up/22-forwardfwctrl
|
||||
srv/web/ipfire/cgi-bin/firewall.cgi
|
||||
srv/web/ipfire/cgi-bin/fwhosts.cgi
|
||||
srv/web/ipfire/cgi-bin/optionsfw.cgi
|
||||
|
||||
@@ -204,6 +204,9 @@ rm -f /usr/sbin/ntptime
|
||||
rm -f /usr/sbin/ntptrace
|
||||
rm -f /usr/sbin/tickadj
|
||||
|
||||
# Remove old firewall helper link
|
||||
rm -f /etc/rc.d/init.d/networking/red.up/22-forwardfwctrl
|
||||
|
||||
#
|
||||
#Extract files
|
||||
tar xavf /opt/pakfire/tmp/files* --no-overwrite-dir -p --numeric-owner -C /
|
||||
|
||||
@@ -181,8 +181,6 @@ $(TARGET) :
|
||||
|
||||
ln -sf ../../dnsmasq /etc/rc.d/init.d/networking/red.up/05-RS-dnsmasq
|
||||
ln -sf ../../firewall /etc/rc.d/init.d/networking/red.up/20-RL-firewall
|
||||
ln -sf ../../../../../usr/local/bin/firewallctrl \
|
||||
/etc/rc.d/init.d/networking/red.up/22-forwardfwctrl
|
||||
ln -sf ../../../../../usr/local/bin/snortctrl \
|
||||
/etc/rc.d/init.d/networking/red.up/23-RS-snort
|
||||
ln -sf ../../../../../usr/local/bin/qosctrl \
|
||||
|
||||
@@ -281,6 +281,9 @@ iptables_red() {
|
||||
iptables -t nat -A REDNAT -o $IFACE -j MASQUERADE
|
||||
|
||||
fi
|
||||
|
||||
# Reload all rules.
|
||||
firewallctrl
|
||||
}
|
||||
|
||||
# See how we were called.
|
||||
|
||||
Reference in New Issue
Block a user