LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-07-2012, 07:01 AM   #1
slaka
Member
 
Registered: Oct 2012
Distribution: Slackware 14.0 86x
Posts: 41

Rep: Reputation: Disabled
OpenVPN doesn't work


Hey,

I got 'config.ovpn' from my VPN provider and try to connect with standard command 'openvpn --config config.ovpn' but problem is that it just doesn't work.
I actually make connection (I think), it updates ip routing and sometimes I can actually access internet for 2-3sec and see that my IP is VPN's IP.
But after that when trying to visit some site it doesn't say that there is no network connection but instead browser just tries to connect, for ever.

Couple words about how I connect to internet. I don't have router and my computer is plugged to socket in wall VIA lan cable and I DHCP client and gateway is ISP's router which is located at somewhere in house (dunno what connection this is, heard somewhere that's broadband?).

'IP route' before VPN connection:
Code:
default via 60.192.60.1 dev eth0 
60.192.60.0/19 dev eth0  proto kernel  scope link  src 60.192.77.245 
127.0.0.0/8 dev lo  scope link
'IP route' after VPN connection:
Code:
0.0.0.0/1 via 5.44.18.1 dev tun0 
default via 60.192.60.1 dev eth0 
5.44.18.0/21 dev tun0  proto kernel  scope link  src 5.44.18.125 
46.55.9.11 via 60.192.60.1 dev eth0 
60.192.60.0/19 dev eth0  proto kernel  scope link  src 60.192.60.245 
127.0.0.0/8 dev lo  scope link 
128.0.0.0/1 via 5.5.8.1 dev tun0
Also there are actually few errors in during connection, but not sure are they root of this problem:
Code:
 
 [OpenVPN_Server] Peer Connection Initiated with 46.55.9.11:1194
 SENT CONTROL [OpenVPN_Server]: 'PUSH_REQUEST' (status=1)
 PUSH: Received control message: 'PUSH_REPLY,explicit-exit-notify,topology subnet,route-delay 5 30,dhcp-pre-release,dhcp-renew,dhcp-release,route-metric 101,ping 5,ping-restart 40,redirect-gateway def1,redirect-gateway bypass-dhcp,redirect-gateway autolocal,route-gateway 5.44.18.1,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,register-dns,comp-lzo yes,ifconfig 5.44.18.125 255.255.248.0'
Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:4: dhcp-pre-release (2.2.2)
Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:5: dhcp-renew (2.2.2)
Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:6: dhcp-release (2.2.2)
Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:16: register-dns (2.2.2)
 
Old 11-08-2012, 09:23 AM   #2
mmheera
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Ubuntu, Debian, Fedora,Windows 7
Posts: 107

Rep: Reputation: 11
Which operating system you are using? Do you have the latest version of Opevpn? If not then try to upgrade it and see.

Thanks!
 
Old 11-12-2012, 12:52 PM   #3
slaka
Member
 
Registered: Oct 2012
Distribution: Slackware 14.0 86x
Posts: 41

Original Poster
Rep: Reputation: Disabled
Solved.
Problem was with DNS resolving and was able to fix it with couple changes in '/etc/resolv.conf'. Feel so stupid, had my ISP nameservers in 'resolv.conf' and guess they accept only resolving from customer IP's -- since VPN isn't customer of this provider it failed to resolve URL addresses I tried to access, realized it when pinged (for no particular reason) some random IP successfully but still wasn't able access URLs.
 
  


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
[SOLVED] iptables doesn't work well without OpenVPN pedrokoma Linux - Networking 3 06-02-2011 07:41 AM
Upgraded to Fedora 15 now OpenVPN doesn't work ... systemctl issue? Hanse42 Linux - Newbie 10 05-29-2011 10:32 AM
Keyboard doesn't work right click on mouse doesn't work ramblinrick Linux Mint 2 10-15-2010 01:10 AM
openvpn with nm or terminal , firefox doesn't work, only opera tunez Linux - Networking 1 12-11-2008 02:50 PM
Is there a way to work with openVPN... eantoranz Ubuntu 1 06-22-2005 02:10 PM


All times are GMT -5. The time now is 11:51 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 Google+: linuxquestions
Open Source Consulting | Domain Registration