add splitting vpn configuration
This commit is contained in:
parent
bf1e52fb94
commit
f1fffbf07e
4 changed files with 872 additions and 0 deletions
29
root/etc/vpnc/vpnc-split-script
Executable file
29
root/etc/vpnc/vpnc-split-script
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue