Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-16-2010, 08:41 PM   #1
Registered: Jul 2009
Location: WI, USA
Distribution: Debian 8, Ubuntu 16.04, CentOS 7
Posts: 141

Rep: Reputation: 28
connect to a vpn connection using vpnc

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:

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:
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?

Old 07-16-2010, 04:27 AM   #2
LQ Newbie
Registered: Oct 2009
Location: South West UK
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 1
Try renaming (probably as root) COE-from-ISP.pcf which should be in /etc/vpnc/ to COE-from-ISP.conf and then use
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.


1 members found this post helpful.
Old 11-16-2010, 04:56 PM   #3
Registered: Jul 2009
Location: WI, USA
Distribution: Debian 8, Ubuntu 16.04, CentOS 7
Posts: 141

Original Poster
Rep: Reputation: 28
There was a permission issue on the pcf file!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vpnc and NetworkManager: no connection Philip87 Linux - Networking 1 06-24-2009 07:12 AM
LXer: Linux VPN Client for Cisco VPNs: vpnc LXer Syndicated Linux News 0 06-16-2009 05:42 PM
[Linpus][Aspire One] VPN (vpnc) is not working with a cel modem (wvdial) pdemong Linux - Wireless Networking 0 03-12-2009 07:01 AM
GUI network-manager-vpnc doesn't connect over wired connection only jhernandez1270 Linux - Newbie 1 02-04-2009 03:14 PM
vpnc - please Help vpn connection nilleso Linux - Networking 6 09-22-2005 09:34 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration