From d1a5d666f4982e6e08d5c5d489230afc08e85d04 Mon Sep 17 00:00:00 2001 From: Erik Dubois Date: Wed, 31 Jan 2018 13:20:33 +0100 Subject: [PATCH] Fix #364 --- attacks/Captive Portal/attack.sh | 2 -- fluxion | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/attacks/Captive Portal/attack.sh b/attacks/Captive Portal/attack.sh index 1696c66..3f8d2ee 100755 --- a/attacks/Captive Portal/attack.sh +++ b/attacks/Captive Portal/attack.sh @@ -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 diff --git a/fluxion b/fluxion index 13180a5..a93b14a 100755 --- a/fluxion +++ b/fluxion @@ -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 \