So it seems my iPhone is connected to my OpenVPN server on my Windows 7 laptop. I just need to know if its connected properly.
server file:
port 1723
proto udp
dev tun
server 10.27.0.0 255.255.255.0
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\server.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\server.key"
dh "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\dh1024.pem"
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3
config file
client
dev tun
proto udp
remote a.b.c.d 1723
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert Manani5.crt
key Manani5.key
ns-cert-type server
comp-lzo
verb 3
explicit-exit-notify 2
ping 10
ping-restart 60
route-method exe
route-delay 2
I am able to make the connection and able to access the internet/network(such as router settings). When I go on whatismyip.com from safari, it shows my ISP IP address which is "a.b.c.d". But shouldnt it be 10.27.0.1 which is my OpenVPN server IP? Also, I downloaded this app to ping IPs. I am able to ping all my LAN connected devices subnet (192.168.0.0) and 10.27.0.6 (iPhone VPN IP address). But I cannot ping 10.27.0.1 and my ISP IP a.b.c.d. Is that how its supposed to be? When I am on my laptop, I can ping a.b.c.d, 10.27.0.1, 10.27.0.6 and all the 192.168.0.x. Please help me. Thanks
iPhone VPN connected. Some simple questions..
-
- OpenVpn Newbie
- Posts: 7
- Joined: Sun Mar 31, 2013 6:51 pm
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: iPhone VPN connected. Some simple questions..
whatismyip.com will never show an 10.27 address - if routing is set up correctly it will show the same address as when you go to whatismyip.com from your openvpn server.
Remote the
line from your client config - the iOS client should ignore this.
Remote the
Code: Select all
route-method exe
-
- OpenVpn Newbie
- Posts: 7
- Joined: Sun Mar 31, 2013 6:51 pm
Re: iPhone VPN connected. Some simple questions..
ok so it looks like routing is done correctly because I do get the same IP address as the server. But how come I cant ping 10.27.0.1 (VPN server) from iPhone? I can ping iPhone (10.27.0.6) from my laptop(where VPN server is configured).
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: iPhone VPN connected. Some simple questions..
if a
works but
does not then there's a firewall blocking access at the server.
Code: Select all
ping 10.72.0.1 -> 10.72.0.6
Code: Select all
ping 10.72.0.6 -> 10.72.0.1