This commit is contained in:
Erik Dubois 2018-01-31 13:20:33 +01:00
parent bb824a0934
commit d1a5d666f4
2 changed files with 2 additions and 2 deletions

View File

@ -1090,8 +1090,6 @@ captive_portal_set_routes() {
# Activate system IPV4 packet routing/forwarding.
sysctl -w net.ipv4.ip_forward=1 &>$FLUXIONOutputDevice
iptables-save >"$FLUXIONWorkspacePath/iptables-rules"
iptables --flush
iptables --table nat --flush
iptables --delete-chain

View File

@ -202,6 +202,8 @@ source "$FLUXIONPath/language/en.sh"
fluxion_startup() {
if [ "$FLUXIONDebug" ]; then return 1; fi
# Make sure that we save the iptable files
iptables-save >"$FLUXIONWorkspacePath/iptables-rules"
local banner=()
format_center_literals \