X-Git-Url: http://git.onelab.eu/?p=vsys-scripts.git;a=blobdiff_plain;f=root-context%2Fexec%2Fvif_up;h=4e50cab5944813083cf03113167b0e49571adee2;hp=d4862d5f7f6850114f5599de5a23490ed19de71f;hb=HEAD;hpb=dc3fc7e0ed1b0b8bda8cf903a90eb0bef6797c72 diff --git a/root-context/exec/vif_up b/root-context/exec/vif_up index d4862d5..4e50cab 100755 --- a/root-context/exec/vif_up +++ b/root-context/exec/vif_up @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # VSYS script to configure per-slice virtual network interfaces from the root slice # Thom Haddow - 06/10/09 # @@ -246,7 +246,7 @@ cmd_iptables_pr = "/sbin/iptables -t nat -A POSTROUTING -s %s/%d -j SNAT --to-so cmd_iptables_del_pr = "/sbin/iptables -t nat -D POSTROUTING -s %s/%d -j SNAT --to-source %s --random > /dev/null 2>&1" % (vip, vmask, public_src) cmd_iptables_dk = "/sbin/iptables -I OUTPUT -p tcp -s %s/%d --tcp-flags RST RST -j DROP"%(vip,vmask) -cmd_iptables_del_dk = "/sbin/iptables -D OUTPUT -p tcp -s %s/%d --tcp-flags RST RST -j DROP"%(vip,vmask) +cmd_iptables_del_dk = "/sbin/iptables -D OUTPUT -p tcp -s %s/%d --tcp-flags RST RST -j DROP > /dev/null 2>&1"%(vip,vmask) if opt_gre: cmd_gre_setup = "modprobe ip_gre ; ip link add %s type %s remote %s local %s ttl 64 csum key %s" % (