Page 1 of 1

OpenVPN connects, but ip does not change

Posted: Tue Apr 02, 2013 2:41 pm
by dzchimp
Server: Debian squeeze on openvpn server
Client: Windows 8 64 bit

Server side config:

Code: Select all

cat server.conf | sed '/^[#;]/d' | sed '/^$/d'
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key  # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
cipher AES-128-CBC   # AES
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log         /var/log/openvpn.log
verb 9
Client config:

Code: Select all

client
dev tun
proto tcp
remote 192.110.163.32 1194
pull
route 192.110.163.32 1194 255.255.255.255 net_gateway
resolv-retry infinite
nobind
persist-key
persist-tun
script-security 3
ca ca.crt
cert client_joel.crt
key client_joel.key
cipher AES-128-CBC
comp-lzo
verb 3
route-delay
Error description: Open VPN apparently connects, but if ip is checked, nothing has happened. On Windows 8, openvpn client is run as administrator.

Client log: http://pastebin.com/NUAR3F58
Server log (tail -n 1000): http://pastebin.com/JLR3zfFH

Please advise as to how to proceed..

Re: OpenVPN connects, but ip does not change

Posted: Tue Apr 02, 2013 7:38 pm
by Douglas
If you are looking to route all traffic through the VPN, need to set a push statement that specifies redirect-gateway

Re: OpenVPN connects, but ip does not change

Posted: Wed Apr 03, 2013 1:18 am
by dzchimp
Douglas wrote:If you are looking to route all traffic through the VPN, need to set a push statement that specifies redirect-gateway
Could you give me an example? Yes, I'd like to route all traffic through the VPN.

Re: OpenVPN connects, but ip does not change

Posted: Wed Apr 03, 2013 1:21 am
by Douglas
There are hundreds and hundreds of documents on it, including the openvpn howto. It has its own section even. Please read it. If i give it to you, you wont understand it.

Re: OpenVPN connects, but ip does not change

Posted: Wed Apr 03, 2013 1:26 am
by dzchimp
Douglas wrote:There are hundreds and hundreds of documents on it, including the openvpn howto. It has its own section even. Please read it. If i give it to you, you wont understand it.
I am looking at the openvpn howto right now, but I'm not really familiar with various conventions and terms of networking as to understand it well. I am hoping that some of my server/client config parameters were incorrect, or that I was missing a few lines in them, as per my connection log. :(

Re: OpenVPN connects, but ip does not change

Posted: Thu Apr 04, 2013 12:54 pm
by Douglas
It is one line. Look for redirect-gateway in the howto.

Re: OpenVPN connects, but ip does not change

Posted: Thu Apr 04, 2013 1:35 pm
by dzchimp
I added the following to server side config:

Code: Select all

push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
Now, my browsers dont load anything, and I get remarks that my DNS settings may be incorrect.

Re: OpenVPN connects, but ip does not change

Posted: Thu Apr 04, 2013 1:51 pm
by dzchimp

Re: OpenVPN connects, but ip does not change

Posted: Fri Apr 05, 2013 3:28 am
by Douglas
Did you create the necessary NAT rule in your firewall? If linux, it is an iptables masquerade.

Ps: hey! You found the right part of the docs. Fabulous.