{"id":105,"date":"2010-06-04T17:21:48","date_gmt":"2010-06-04T21:21:48","guid":{"rendered":"http:\/\/www.xavignu.com\/?p=105"},"modified":"2010-06-04T17:21:48","modified_gmt":"2010-06-04T21:21:48","slug":"configuring-vpn-client-under-linux","status":"publish","type":"post","link":"https:\/\/www.xavignu.com\/?p=105","title":{"rendered":"Configuring VPN client under Linux"},"content":{"rendered":"<p><P>Due to my work I sometimes have to <a href=\"http:\/\/en.wikipedia.org\/wiki\/Virtual_private_network\" target=\"_blank\">VPN<\/a> to my job from home. But I use a Linux <a href=\"http:\/\/en.wikipedia.org\/wiki\/PowerPC\" target=\"_blank\">PowerPC<\/a> laptop and have to log in to a Cisco box. <a href=\"http:\/\/www.cisco.com\" target=\"_blank\">Cisco<\/a> doesn&#8217;t provides support for Linux on PowerPC. So where is the solution? The solution is <a href=\"http:\/\/www.unix-ag.uni-kl.de\/~massar\/vpnc\/\" target=\"_blank\">VPNC<\/a>. How do we install it? Easy:<\/P><B>shell$ sudo aptitude install vpnc<\/B><br \/>\n<P>Now we need to configure the config file. We are going to modify \/etc\/vpnc\/example.conf.<\/p>\n<p><B>shell$ sudo cp \/etc\/vpnc\/example.conf \/etc\/vpnc\/connect.conf<\/B><br \/>\n<B>shell$ cat \/etc\/vpnc\/connect.conf<\/B><br \/>\n#IPSec gateway <gateway><br \/>\n#IPSec ID <group-id><br \/>\n#IPSec secret <group-psk><br \/>\n#IKE Authmode hybrid<br \/>\n#Xauth username <username><\/P><P>We need to replace the gateway entry with the IP\/hostname of the server we want to connect to, the ID with the group you belong to, the secret with the password for the group you belong to and the username with your username. Once configured you just have to fire up vpnc.<\/p>\n<p><B>shell$ sudo vpnc \/etc\/vpnc\/connect.conf<br \/>\nEnter password for username@server:<br \/>\nConnect Banner:<br \/>\n| Connecting to VPN.<\/p>\n<p>VPNC started in background (pid: 4566)&#8230;<br \/>\nshell$<\/B><br \/>\n<P>Now you should be able to see a tun interface when executing \/sbin\/ifconfig.<\/p>\n<p><B>shell$ \/sbin\/ifconfig tun0<br \/>\ntun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00<br \/>\n          inet addr:192.168.20.22  P-t-P:192.168.20.22  Mask:255.255.255.255<br \/>\n          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1412  Metric:1<br \/>\n          RX packets:2 errors:0 dropped:0 overruns:0 frame:0<br \/>\n          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0<br \/>\n          collisions:0 txqueuelen:500<br \/>\n          RX bytes:290 (290.0 B)  TX bytes:154 (154.0 B)<br \/>\nshell$<\/B><\/p>\n<p>Enjoy your VPN connection. More info <a href=\"http:\/\/www.gentoo.org\/doc\/en\/vpnc-howto.xml\" target=\"_blank\">here<\/a> and <a href=\"http:\/\/www.debuntu.org\/how-to-connect-to-a-cisco-vpn-using-vpnc\" target=\"_blank\">here<\/a>.<\/P> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Due to my work I sometimes have to VPN to my job from home. But I use a Linux PowerPC laptop and have to log in to a Cisco box. Cisco doesn&#8217;t provides support for Linux on PowerPC. So where is the solution? The solution is VPNC. How do we install it? Easy:shell$ sudo aptitude [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[3],"tags":[30,22,6,23,70,29],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/pTQgt-1H","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/posts\/105"}],"collection":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=105"}],"version-history":[{"count":0,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/posts\/105\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}