VPNC replace Cisco VPNClient

Baca Juga

Cisco VPNClient needs to be patched when installed in Ubuntu Feisty Fawn.

If you don't want to run patched software, you could use VPNC :

sudo apt-get install vpnc resolvconf network-manager-vpnc resolvconf

then create the configuration file inside /etc/vpnc , for example /etc/vpnc/abc.conf . Below is the example of abc.conf (ask your VPN server administrator for XXXXXX/YYYYYY below) :

IPSec gateway abc.company.com
IPSec ID XXXXXX
IPSec secret YYYYYY
Xauth username thartono
NAT Traversal Mode cisco-udp
Cisco UDP Encapsulation Port 10000

To connect to abc you just type "sudo vpnc abc"

UPDATE
Thanks for Februaris input, using VPNC we could specify which destination network should be reached using the tunnel interface. Below is the modified vpnc configuration file :

IPSec gateway abc.company.com
IPSec ID XXXXXX
IPSec secret YYYYYY
Xauth username thartono
NAT Traversal Mode cisco-udp
Cisco UDP Encapsulation Port 10000
target networks 171.70.0.0/16 171.71.0.0/16

The last line specifies that any packet destined to 171.70.x.x or 171.71.x.x should be sent via tunnel. Otherwise use different interface, as shown with "route" command below :

thartono@thartono-linux:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
dns-xx.xxxxx.co * 255.255.255.255 UH 0 0 0 tun0
dns-xxx.xxxxx.c * 255.255.255.255 UH 0 0 0 tun0
xxx-vpn-cluster jkr-vlan300-hsr 255.255.255.255 UGH 0 0 0 eth1
64.104.68.0 * 255.255.255.0 U 0 0 0 eth1
192.168.184.0 * 255.255.255.0 U 0 0 0 vmnet1
192.168.207.0 * 255.255.255.0 U 0 0 0 vmnet8
171.71.0.0 * 255.255.0.0 U 0 0 0 tun0
171.70.0.0 * 255.255.0.0 U 0 0 0 tun0
link-local * 255.255.0.0 U 1000 0 0 eth1
default xxx-vlan300-hsr 0.0.0.0 UG 0 0 0 eth1
close

UNTUK SAAT INI, ARTIKEL BLOG AKAN DITUTUPI. SEGERA KELUAR/CLOSE TAB INI ATAU TEKAN DISINI. JIKA ANDA TETAP INGIN MEMBUKA ARTIKEL INI, SILAHKAN TEKAN TOMBOL CLOSE. DENGAN ANDA MEMBUKA ARTIKEL KEMBALI, TANGGUNG JAWAB SEPENUHNYA MILIK ANDA, SAYA SUDAH PERINGATI UNTUK MENUTUP TAB INI. TERIMA KASIH. - ADMIN