Share your knowledge at the LQ Wiki.
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 01-28-2006, 08:26 AM   #1
Registered: Apr 2004
Distribution: kubuntu
Posts: 50

Rep: Reputation: 15
Configure KVPNC for OpenVPN

I have OpenVPN installed on my system (Suse 10, x86_64) and it works perfectly when run from the command line. I am exploring the GUI tool KVPNC as another means of starting the program. Has anyone had success in doing this? KVPNC is stated to work with OpenVPN, but it is not clear how it should be configured. I've tried too many things to mention and am looking for a concise solution.
Old 06-08-2008, 07:09 AM   #2
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
This thread is 2.5 yrs. old, but it just turned up in an LQ search for kpvnc openvpn.

Did you ever solve your problem? (How?)
Old 03-10-2009, 01:39 AM   #3
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Rep: Reputation: 38
I am curious as well.
Old 02-07-2010, 05:06 PM   #4
LQ Newbie
Registered: Feb 2010
Posts: 1

Rep: Reputation: 1
OpenVNP connection with Kvpnc

How I got a OpenVNP connection with Kvpnc (version 0.9.3) using KDE 4.3.5 on Kubuntu 9.10 (Karmic)

This is what I have installed:
  • kvpnc
  • openvpn (network-manager-openvpn)

You don't need 'network-manager-gnome'

I have a folder in my homedir with all the files I got from my admin.

Start kvpnc using kdesudo:
kdesudo kvpnc
  • Run 'New profile (Wizard)'
  • Select OpenVPN as the type of VPN -> Next
  • Make sure the 'Import OpenVPN config file' is checked -> Next
  • Find your *.ovpn file -> OK -> OK (if import was successful - if not I cannot help)
  • Type in username and password -> Next -> Next (I leave default Connection status check settings) -> Next
  • Keep 'Connect after creating a new profile' unchecked, connection at this point will not work -> Next
  • Give your profile a meaningful name and description. Keep the gateway -> Next -> Finish

Next we need to set some paths and commands to be executed. Go to 'Manage profiles'.
In the section 'Certificate' (a subsection to 'Authenticate'), we need to add paths, though the files are already there.
  • Locate the certificate (.crt file)
  • Set the path to the certificates - I have all mine in a subdir to my home dir
  • Locate the CA.crt file
  • Locate the private key (.key file)

I have found that I need to disable my firewall before connecting:
Go to 'Manage Profiles'
In the section 'Command Execution' I have in the 'Before Connect':
iptables-save > /root/firewall.rules
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
This saves my iptables, and disables my firewall.

In the 'After Connect' I restore my firewall:
iptables-restore < /root/firewall.rules
Close 'Manage Profiles'.
You should now be able to connect (at least I am).

Ping the proxy to make sure the connection is there and is useful.

ISSUE: It seems that the connection is not closed properly, when one disconnects from the VPN. I go around this issue by disconnecting, and then quitting kvpnc.

I have had no need for this information, but OpenVPN apparently uses port UDP 5000.

Additional stuff:
It irritated me always having to type kdesudo kvpnc, so I made a small bash file called kvpnc which calls the real kvpnc bin file with kdesudo. Here's howto:
Open a new text file
Copy and paste:
# Start Kvpnc with kdesudo
kdesudo kvpnc
Save it somewhere which is in your path (look somewhere else for help if you are not sure what this means) with the name kvpnc, and make is executable with
chmod +x kvpnc
Now, when you run kvpnc, you should be prompted for a password by kdesudo, and the real kvpnc should then run with superuser privileges.
1 members found this post helpful.


openvpn, solution

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
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 03:20 AM
OpenVPN and non static ip Homer Glemkin Linux - Networking 1 01-02-2005 08:26 AM
OpenVPN Voyager_MP Linux - Networking 0 07-09-2004 05:32 AM
OpenVPN dunmarie Linux - Networking 1 03-31-2004 10:28 AM
OpenVPN dunmarie Linux - Software 1 10-13-2003 01:10 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:19 AM.

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