aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vFW/scripts/v_sink_init.sh
blob: 77f4296cbb5f8f6b803512d8aa86c1cc881987d5 (plain)
1
2
3
4
5
6
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 | cut -d'/' -f1)

route add -net $UNPROTECTED_NET netmask 255.255.255.0 gw $PROTECTED_NET_GW