Install vpnc. 'vpnc' is the application that sets up a network connection with the VPN server by adding a rounter configuration.
Find the latest version of vpnc available to you by running
equo search vpnc
Install it
equo install net-misc/vpnc-0.5.2_pre20080509-r1
Next step is to create a vpnc configuration. If you have a 'pcf' file, you can do this by running the 'pcf2vpnc' utility. PCF is the CISCO client configuration file. Ask your network admin to procide you one. I am writing the configuration to vpnc's default configuration file so that i don't have to specify a configuration file when starting vpnc.
pcf2vpnc <pcf file> /etc/vpnc/default.config
Double check the configuration is intact. Also, if you are manually setting up configuration and not creating it from a pcf file, this is where you do it.
nano /etc/vpnc/default.config
## generated by pcf2vpnc
IPSec ID <connection_name>
IPSec gateway <vpn_ip>
IPSec secret <vpn_pwd>
Xauth username <domain name\username of the network you are connecting to> # domain\userId
Xauth password <domain password> #pwd
IKE Authmode <authmode> # Leave this to default
Start vpnc.
localhost pjames # vpnc
VPNC started in background (pid: 8138)...
If you get this message, we are good. vpnc deamon has started successfully.
Verify the connectivity. Check 'netstat -r' and make sure you see the new network connection to VPN server. Then, ping a machine in your VPN network.
So far, we have established a connection to the VPN. However, for a connection to the terminal desktop, you need a GUI tool - 'rdesktop'.
Install rdesktop.
equo install rdesktop
Now run rdesktop from console.
rdesktop -d <domain> -u <user> -p <pwd> <machine name>
You should get the target machine's desktop now. Disconnect from the machine and run rdesktop with '-f' flag for full screen.
rdesktop -f -d <domain> -u <user> -p <pwd> <machine name>
Now, let us add 'vpnc' as a start up service so that you don't have to do it manually every time.
rc-update add vpnc default
Last thing you may want to do is to create launcher for 'rdesktop' and place it as a short cut.
Thats it. I am one click away from my office machine now.

Update: The default conf file name for vpnc should be vpnc.conf (not default.conf) for the deamon to load it while start up.
can i use vpn client for wireless network?
ReplyDeleteVPN clients can be used as long as you have a network/ internet available - wired or wireless. VPN client sets up a bridge to your VPN server through an available network connection.
ReplyDeleteMiroslav, you can use a vpn client for a wireless newtork. See the manual for further instructions.
ReplyDelete(VPN server)
This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine. expressvpn free trial
ReplyDeleteThank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards, top android vpn
ReplyDelete