From 6999ad1c44d203c188ae5a36db4491362c616f4c Mon Sep 17 00:00:00 2001 From: strasharo Date: Sat, 19 Mar 2016 13:58:51 +0200 Subject: [PATCH] suppress output from sysctl --- fluxion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluxion b/fluxion index ecdd16b..38ed4c6 100755 --- a/fluxion +++ b/fluxion @@ -153,7 +153,7 @@ function exitmode { if [ "$(cat /proc/sys/net/ipv4/ip_forward)" != "0" ]; then echo -e ""$white"["$red"-"$white"] "$white"Disabling "$grey"forwarding of packets"$transparent"" - sysctl -w net.ipv4.ip_forward=0 + sysctl -w net.ipv4.ip_forward=0 &>$flux_output_device fi echo -e ""$white"["$red"-"$white"] "$white"Cleaning "$grey"iptables"$transparent"" @@ -2668,7 +2668,7 @@ function routear { ifconfig $interfaceroutear $IP netmask 255.255.255.0 route add -net $RANG_IP.0 netmask 255.255.255.0 gw $IP - sysctl -w net.ipv4.ip_forward=1 + sysctl -w net.ipv4.ip_forward=1 &>$flux_output_device iptables --flush iptables --table nat --flush