Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-28-2009, 05:36 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 9

Rep: Reputation: 0
VPN access with openVPN

I am trying to connect to a VPN network using openVPN. I got the proper files from my company and put them in /etc/openvpn directory like this:

[mgallant@localhost openvpn]$ tree
|-- client.conf
`-- keys
|-- ca.crt
|-- mgallant.crt
|-- mgallant.key
`-- ta.key

I set up the NetworkManager Applet to use these files.
I also set up the Terminal Server Client to connect, once I have the VPN set up

I get 2 errors.

1) from the NetworkManager Applet i get 'VPN connection failed'
2) from the Terminal Server Client I get 'You have been unexpectly disconnected from Would you like to reconnect?

autoselected keyboard map en-us
Error: getaddrinfo: Name or Service not known

Is there anything else I need to do?

I connect to the internet with a DSL service in Canada called Sympatico
I can use the internet fine.
I can use openVPN from a Windows computer fine, so it must be my Fedora linux settings
Old 03-28-2009, 06:10 PM   #2
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
From my Fedora box, I use vpnc to connect to work and it works fine.
In this example, is the work router that vpn goes through.
This may be of help to you but, change the info to your specs.

I use remote desktop to connect to Windows boxes at work.

I use VNC Viewer to connect to Linux boxes at work.

# Install some goodies as root user

yum install vpnc rdesktop vnc


# Start the vpn connection with the command: vpnc

# At the command line, enter the vpn information

Enter IPSec gateway address:

Enter IPSec ID for vpn_router_group

Enter IPSec secret for vpn_router_group@ vpn_router_group_password

Enter username for my_vpn_userid

Enter password for my_vpn_userid@ my_vpn_password

# Save yourself some typing by putting that info into the /etc/vpnc.default.conf
 or into your personal config file like myvpn.conf

# Start the connection with the command: vpnc ./myvpn.conf

Example of myvpn.conf

IPSec gateway

IPSec ID vpn_router_group

IPSec secret vpn_router_group_password

Xauth username my_vpn_userid

Xauth password my_vpn_password

# Connect to the remote desktop using the fully qualified domain name or ip address

  rdesktop -u fred -k en-us -g 1024x768

  rdesktop -u fred -k en-us -g 1024x768

# To have full screen, use -f ; To get out of full screen mode, use Ctrl-Alt-Enter

  rdesktop -u fred -k en-us -f

# Exit vpn when you are done

Old 04-04-2009, 04:43 PM   #3
LQ Newbie
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
I found the answer with help from some people at work.

On the Network Applet where you update the Network connections I
went to IPv4 settings and put in the proper values for DNS Servers and Search Domains


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
VPN - OpenVPN/PPTP ElLunchbox Linux - Server 8 02-07-2009 05:39 AM
What is different between ip tunnel vpn and openvpn ? sgm277 Linux - Server 2 12-24-2008 10:58 PM
OpenVpn Cisco VPN... stuff... war1025 Debian 1 10-05-2007 11:45 AM
Trying to connect to Cisco VPN using OpenVPN Wynd Linux - Networking 9 07-09-2007 08:38 PM
OpenVPN and CISCO VPN smiley_lauf Linux - Software 1 02-23-2006 11:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:20 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