Page 1 of 1

Connection Works but Public/External IP does not change

Posted: Mon Feb 18, 2013 12:03 am
by luis84
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>

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

Posted: Mon Feb 18, 2013 12:50 am
by Douglas
You need to push redirect-gateway from the server if you want to tunnel all traffic.

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

Posted: Fri Feb 22, 2013 9:19 am
by luis84
Douglas,

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

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

Posted: Fri Feb 22, 2013 4:26 pm
by Douglas
Correct. Just make sure you want all connected clients sending all traffic through the VPN!