30 lines
764 B
Bash
Executable File
30 lines
764 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Add one IP to the list of split tunnel
|
|
add_ip ()
|
|
{
|
|
export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_ADDR=$1
|
|
export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_MASK=255.255.255.255
|
|
export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_MASKLEN=32
|
|
export CISCO_SPLIT_INC=$(($CISCO_SPLIT_INC + 1))
|
|
}
|
|
|
|
# Initialize empty split tunnel list
|
|
export CISCO_SPLIT_INC=0
|
|
|
|
# Delete DNS info provided by VPN server to use internet DNS
|
|
# Comment following line to use DNS beyond VPN tunnel
|
|
unset INTERNAL_IP4_DNS
|
|
|
|
# List of IPs beyond VPN tunnel
|
|
add_ip 157.193.40.2 # Helios
|
|
add_ip 157.193.228.59 # Moriarty
|
|
add_ip 157.193.16.10 # HPC
|
|
add_ip 157.193.40.15 # HPC
|
|
add_ip 157.193.48.109 # Athena
|
|
|
|
# Execute default script
|
|
. /etc/vpnc/vpnc-script
|
|
|
|
# End of script
|