On Ubuntu 7.10, install vpnc package.
/etc/vpnc/netscreen.conf
IPSec gateway
xxx.xxx.xxx.xxx
IPSec ID "XXXXXXXXXXXXX"
IPSec secret xxxxxxxxxxxx
Vendor netscreen
Perfect Forward Secrecy
dh2
Xauth username xxxxxxxx
Xauth password xxxxxxxx
#Debug 3
In /etc/vpnc/vpnc-script
Put following before set -x
INTERNAL_IP4_DNS=
CISCO_SPLIT_INC=1
CISCO_SPLIT_INC_0_ADDR=xxx.xxx.xxx.0
CISCO_SPLIT_INC_0_MASK=255.255.252.0
CISCO_SPLIT_INC_0_MASKLEN=22
CISCO_SPLIT_INC_0_PROTOCOL=0
CISCO_SPLIT_INC_0_SPORT=0
CISCO_SPLIT_INC_0_DPORT=0
Create a version for
/etc/resolv.conf.thuis, /etc/resolv.conf.sungard.
Create aliases:
alias
sungard-vpn-down='sudo /usr/sbin/vpnc-disconnect; sudo cp
/etc/resolv.conf.thuis /etc/resolv.conf'
alias sungard-vpn-up='sudo
/usr/sbin/vpnc /etc/vpnc/netscreen.conf; sudo cp
/etc/resolv.conf.sungard /etc/resolv.conf'
Comments