LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-28-2009, 05:36 PM   #1
mikeg905
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:

/etc/openvpn
[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 mgallant@versasys.com. 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
homey
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, 123.123.123.123 is the work router that vpn goes through.
This may be of help to you but, change the info to your specs.

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

updatedb



# Start the vpn connection with the command: vpnc

# At the command line, enter the vpn information



Enter IPSec gateway address: 123.123.123.123

Enter IPSec ID for 123.123.123.123: vpn_router_group

Enter IPSec secret for vpn_router_group@123.123.123.123: vpn_router_group_password

Enter username for 123.123.123.123: my_vpn_userid

Enter password for my_vpn_userid@123.123.123.123: 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 123.123.123.123

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 mydesk.work.com
or

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



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

  rdesktop -u fred -k en-us -f mydesk.work.com



# Exit vpn when you are done

  vpnc-disconnect
 
Old 04-04-2009, 04:43 PM   #3
mikeg905
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
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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