LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-06-2009, 06:24 AM   #1
baltazar3
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Rep: Reputation: 0
OpenVPN client from terminal


Hi

Im running Ubuntu 9.04 server on one of my computers. I would like to connect as a client to a vpn server (ivacy.com) using openvpn. I would like to do it from the command line since I dont have any desktop installed.

I followed the advice and copied files from here: http://ivacy.com/en/doc/user/setup/winxp_openvpn.

I then run: sudo openvpn --config Ivacy-client.ovpn

Which seems to work, I get logged in ok.

But after that I cant connect to the internet.

This is what my routing table looks like:
Destination Gateway Genmask Flags Metric Ref Use Iface
85.249.223.27 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
1.2.124.0 * 255.255.255.0 U 0 0 0 tun0
1.0.0.0 1.2.124.1 255.0.0.0 UG 0 0 0 tun0
default 1.2.124.1 0.0.0.0 UG 0 0 0 tun0

Im able to ping 85.249.223.27 (ivacys server) ok.

But I cant ping 1.2.124.1, which I guess is the other side of the tunnel.

When I try to ping 1.2.124.1 I get no network traffic on my lan at all. The firewall on this computer is completely open.

What am I doing wrong?
 
Old 11-10-2009, 09:53 AM   #2
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
What is your IP address on the tun0 interface?
 
Old 11-11-2009, 07:49 PM   #3
baltazar3
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Original Poster
Rep: Reputation: 0
The ip for tun0 (given by ifconfig) is 1.2.116.101

I also noticed this line when starting up openvpn:

WARNING: potential route subnet conflict between local LAN [1.2.116.0/255.255.255.0] and remote VPN [1.0.0.0/255.0.0.0]
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 02:20 AM
openvpn bridge client-to-client and iptables zashone Linux - Networking 0 02-25-2009 05:44 PM
openvpn with nm or terminal , firefox doesn't work, only opera tunez Linux - Networking 1 12-11-2008 02:50 PM
OpenVPN Client esaym Linux - Networking 3 11-11-2008 05:05 PM
Openvpn client to client routing question soup Linux - Networking 0 02-16-2006 11:13 AM


All times are GMT -5. The time now is 11:23 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration