Connection Works but Public/External IP does not change

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Locked
luis84
OpenVPN User
Posts: 29
Joined: Tue Nov 15, 2011 11:31 pm

Connection Works but Public/External IP does not change

Post by luis84 » Mon Feb 18, 2013 12:03 am

Hi Everyone,

I have been experimenting with the iOS app for sometime, and it successfully connects to my DD-WRT based VPN server. It connects okay, and it is actually routing through the VPN as I can access IP's from my local network.

The thing is that I want it to change my external IP address on my iOS device. With my OpenVPN Access Server, when I connect to it from iPhone, it will change my external IP on the iPhone so when I visit websites, it identifies me with the new public/external IP that they VPN server assigned me. When I connect to DD-WRT it does not do that.

I am assuming this has to do with the way the gateway routing is set. If anyone can provide any feedback that would be marvelous. (I omitted server IP and keys for security).

Here is my config file (.ovpn)

Code: Select all

# OVPN_ACCESS_SERVER_FRIENDLY_NAME=Profile Name Here
remote 0.0.0.0 udp
key-direction 1
client
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
verb 4
reneg-sec 86400
tun-mtu 1500
route-delay 2
redirect-gateway
fragment 1390
mssfix 1390
hand-window 30
<ca>
-----BEGIN CERTIFICATE-----
cert here
-----END CERTIFICATE-----
</ca>
<key>
-----BEGIN PRIVATE KEY-----
private key here
-----END PRIVATE KEY-----
</key>
<cert>
-----BEGIN CERTIFICATE-----
cert here
-----END CERTIFICATE-----
</cert>
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
key here
</tls-auth>

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

Re: Connection Works but Public/External IP does not change

Post by Douglas » Mon Feb 18, 2013 12:50 am

You need to push redirect-gateway from the server if you want to tunnel all traffic.

luis84
OpenVPN User
Posts: 29
Joined: Tue Nov 15, 2011 11:31 pm

Re: Connection Works but Public/External IP does not change

Post by luis84 » Fri Feb 22, 2013 9:19 am

Douglas,

Thank you. So to confirm I need to use that directive on the actual server, not the client, correct?

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

Re: Connection Works but Public/External IP does not change

Post by Douglas » Fri Feb 22, 2013 4:26 pm

Correct. Just make sure you want all connected clients sending all traffic through the VPN!

Locked