diff options
Diffstat (limited to 'vnfs/vFW/scripts/v_sink_init.sh')
-rw-r--r-- | vnfs/vFW/scripts/v_sink_init.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vnfs/vFW/scripts/v_sink_init.sh b/vnfs/vFW/scripts/v_sink_init.sh new file mode 100644 index 00000000..16a67508 --- /dev/null +++ b/vnfs/vFW/scripts/v_sink_init.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Set the IP address of the protected network interface of the vFirewall as a default gateway to the unprotected network +PROTECTED_NET_GW=$(cat /opt/config/protected_net_gw.txt) +UNPROTECTED_NET=$(cat /opt/config/unprotected_net.txt) + +route add -net $UNPROTECTED_NET netmask 255.255.255.0 gw $PROTECTED_NET_GW |