Ask Your Question
0

Why is the web traffic doesn't go through my VPN connection?

asked 2014-04-20 07:45:36 -0500

E bla gravatar image

I installed openvpn server on Ubuntu 14 VPS and i'm triying to connect to it through my Fedora 20 home computer. There is a connection (according to the log below), but my IP didn't change. ANY IDEA WHY?

I re-install the server several time from several guide i found on the internet, and i'm starting to think the problem is with the client and not with the server.

p.s. i know almost NOTHING about ip routing

CLIENT VPN CONNECTION OUTPUT (replaced ip with x):

    [e@localhost ~]$ sudo openvpn --config /etc/openvpn/client.conf 
Sun Apr 20 15:01:01 2014 OpenVPN 2.3.2 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Sep 12 2013
Sun Apr 20 15:01:01 2014 Socket Buffers: R=[212992->131072] S=[212992->131072]
Sun Apr 20 15:01:01 2014 UDPv4 link local: [undef]
Sun Apr 20 15:01:01 2014 UDPv4 link remote: [AF_INET]X.X.X.X:1194
Sun Apr 20 15:01:02 2014 TLS: Initial packet from [AF_INET]X.X.X.X:1194, sid=45cdb38f f3323d6e
Sun Apr 20 15:01:23 2014 VERIFY OK: depth=1, C=NL, ST=HM, L=Amsterdam, O=blabla, OU=blablabla, CN=blabla CA, name=EasyRSA, emailAddress=bla1@1bla.bla
Sun Apr 20 15:01:23 2014 VERIFY OK: nsCertType=SERVER
Sun Apr 20 15:01:23 2014 VERIFY OK: depth=0, C=NL, ST=HM, L=Amsterdam, O=blabla, OU=blablabla, CN=vpn2, name=EasyRSA, emailAddress=bla1@1bla.bla
Sun Apr 20 15:01:52 2014 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Apr 20 15:01:52 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Apr 20 15:01:52 2014 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Apr 20 15:01:52 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Apr 20 15:01:52 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Sun Apr 20 15:01:52 2014 [vpn2] Peer Connection Initiated with [AF_INET]X.X.X.X:1194
Sun Apr 20 15:01:54 2014 SENT CONTROL [vpn2]: 'PUSH_REQUEST' (status=1)
Sun Apr 20 15:01:55 2014 PUSH: Received control message: 'PUSH_REPLY,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Sun Apr 20 15:01:55 2014 OPTIONS IMPORT: timers and/or timeouts modified
Sun Apr 20 15:01:55 2014 OPTIONS IMPORT: --ifconfig/up options modified
Sun Apr 20 15:01:55 2014 OPTIONS IMPORT: route options modified
Sun Apr 20 15:01:55 2014 ROUTE_GATEWAY 10.0.0.138/255.255.255.0 IFACE=p3p1 HWADDR=d8:50:e6:ba:a3:44
Sun Apr 20 15:01:55 2014 TUN/TAP device tun0 opened
Sun Apr 20 15:01:55 2014 TUN/TAP TX queue length set to 100
Sun Apr 20 ...
(more)
edit retag flag offensive close merge delete

Comments

I have used openvpn before with no problem. Your IP is not suppose to change, you have an extra network interface and you connect to your VPN peer using that interface, I imagine all 10.0.0.0/24 traffic will be routed through your VPN (including http traffic). But I am not sure that's the answer you are looking for. I did not fully understand your question.

javierwilson gravatar imagejavierwilson ( 2014-04-20 08:01:03 -0500 )edit

@javierwilson from what i understand, the point of using VPN is that all your traffic is going through the server and the data between the you and the server is encrypted. the server is the one that talk with the other side (i.e: when you go to google.com , google.com doesn't see you, it see's only the server - there for, your public ip should not appear in google's logs, but the ip of the server). but when i go to websites that shows your ip, my ip is the same as before. DID I MISUNDERSTOOD WHAT VPN IS FOR?

E bla gravatar imageE bla ( 2014-04-20 08:29:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-04-20 13:19:42 -0500

javierwilson gravatar image

I think you have (misunderstood), I mean, of course you could do that. But you can do many other things with a VPN, I use it to connect to my office LAN, so I surfe the web using my ISP but I use my office LAN resources through the VPN, this is quite common. But of course you can do what you say too. I think you should open another question: How to redirect all traffic through a VPN? The answer will probabably be: https://openvpn.net/index.php/open-source/documentation/howto.html#redirect

edit flag offensive delete link more

Comments

Thank you! Now i understand what was wrong. I installed OpenVPN Access Server instead and now it works perfectly! Thank you gain!

E bla gravatar imageE bla ( 2014-04-21 07:27:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-04-20 07:45:36 -0500

Seen: 1,432 times

Last updated: Apr 20 '14