LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 11-06-2009, 07:24 AM   #1
baltazar3
LQ Newbie
 
Registered: Nov 2009
Posts: 2
Thanked: 0
OpenVPN client from terminal


[Log in to get rid of this advertisement]
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?
windows_xp_2003 baltazar3 is offline     Reply With Quote
Old 11-10-2009, 10:53 AM   #2
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306
Thanked: 0
What is your IP address on the tun0 interface?
macos jrmann1999 is offline     Reply With Quote
Old 11-11-2009, 08:49 PM   #3
baltazar3
LQ Newbie
 
Registered: Nov 2009
Posts: 2
Thanked: 0

Original Poster
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]
windows_xp_2003 baltazar3 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 bridge client-to-client and iptables zashone Linux - Networking 0 02-25-2009 06:44 PM
openvpn with nm or terminal , firefox doesn't work, only opera tunez Linux - Networking 1 12-11-2008 03:50 PM
OpenVPN Client esaym Linux - Networking 3 11-11-2008 06:05 PM
Openvpn client to client routing question soup Linux - Networking 0 02-16-2006 12:13 PM
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 1 01-24-2006 11:02 PM


All times are GMT -5. The time now is 12:33 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration