LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   connect to a vpn connection using vpnc (https://www.linuxquestions.org/questions/linux-software-2/connect-to-a-vpn-connection-using-vpnc-814611/)

someshpr 06-16-2010 08:41 PM

connect to a vpn connection using vpnc
 
Hi,
I usually connect to my organizations vpn conncetions using vpnc and network-amanger, i.e., from the network icon on the panel. I have already imported the pcf files to network-manager, so I usually just click on the network-manager (nm-applet) and select the vpn connection I want to connect. Now after an update my nm-applet is not loading properly, though network is running (I have posted a thread on that: http://www.linuxquestions.org/questi...-lucid-814610/).

So now I would like to connect to vpn from terminal. What is the command to do that?
I tried this: I went to the directory where the pcf profiles were stored and ran:
Code:

somesh@creativision:~/Documents/linux/vpn-profiles$ sudo vpnc COE-from-ISP.pcf
vpnc: couldn't open `/etc/vpnc/COE-from-ISP.pcf.conf': No such file or directory

Apparently there is no COE-from-ISP.pcf.conf in system default vpn directory. But I had imported this pcf in vpnc using nm-applet. In fact if I go to System-->Preference-->Network Connections, I can see this connection under list of VPN connections. So there must be a related conf file somewhere.

I believe, I am missing something simple here, can anyone please point what?

TIA,

smotsie 07-16-2010 04:27 AM

Try renaming (probably as root) COE-from-ISP.pcf which should be in /etc/vpnc/ to COE-from-ISP.conf and then use
Code:

sudo vpnc COE-from-ISP
If the file (.pcf) doesn't exist in /etc/vpnc then re-think why you believe it should exist. Did you export it to your home folder? If so it needs to be in /etc/vpnc so find it and move it there, or re-export it from the NM applet and then move it.

HTH

Smotsie

someshpr 11-16-2010 04:56 PM

There was a permission issue on the pcf file!


All times are GMT -5. The time now is 10:32 AM.