Wrong public IP address

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
smflux
OpenVpn Newbie
Posts: 1
Joined: Wed May 01, 2013 2:28 pm

Wrong public IP address

Post by smflux » Wed May 01, 2013 2:35 pm

Hello

I can connect from my iPad to my Debian Server with OpenVPN, but when i go on the iPad to (www.whatismyip.com) then i see my public IP (my current network) and not the public IP from my server. My idea is that i can use the public IP from my server.

I don't know is something wrong in my configs.

server.conf

Code: Select all

dev tun2
tls-server
dh easy-rsa2/keys/dh1024.pem
ca easy-rsa2/keys/ca.crt
cert easy-rsa2/keys/server.crt
key easy-rsa2/keys/server.key
server 10.0.0.0 255.255.255.0
log /var/log/openvpn-iphone.log
comp-lzo
script-security 2
route-up "/sbin/ifconfig tun2 up"
port 443
proto tcp-server
keepalive 30 120
ios.ovpn

Code: Select all

tls-client
remote mydomain.com
ca ca.crt
cert iOs.crt
key iOs.key
comp-lzo
port 443
proto tcp
Thank you very much for the help.

Greeting

Douglas
Forum Team
Posts: 285
Joined: Wed Aug 27, 2008 2:41 am

Re: Wrong public IP address

Post by Douglas » Thu May 02, 2013 3:15 pm

It is

You need to push the redirect-gateway parameter. The howto covers it.

Post Reply