VPN on iphone established (i think) but cant ping VPN server
Posted: Sun Mar 31, 2013 7:18 pm
Hello all,
I am a newbie at this. Please go easy on me. I heard about OpenVPN from this tech guy that came to my house to repair my laptop. He explained a little bit about VPN but I am not quite sure how it works.
My goal: Establish a OpenVPN server on my laptop and make my iphone 5 the client using the OpenVPN Connect app. This way I can securely browse the internet from anywhere since my phone is connected to VPN server on my laptop? Do i have that concept correct?
What I've done so far: I have made the ca.crt, dh1024.pem, server.crt, server.key, client.crt(for iphone), client.key(for iphone) through the command window. I made a server.ovpn file which I have put into the "config" folder. When I press connect on the OpenVPN GUI, It says connection established and it shows an IP address. That means my server is connected right? I have also made a client.ovpn file for the iphone. I put the ca.crt, client.crt, client.key and client.ovpn in the OpenVPN app through itunes. When I try to connect on the iphone, it shows the "VPN" symbol on the "taskbar" beside the clock. So it seems like my VPN on iphone is connected also.
But when I open safari and go to "whatismyip.org" it shows my internet ip assigned by my ISP and not the VPN server ip. I downloaded this app on the iphone called "Network pink lite." I tried pinging my VPN server ip but it didn't ping. What am i doing wrong? I'd really appreciate if you guys can help me.
By the way, I am testing all of this from my home. So maybe the website "whatismyip.org" is showing my internet ip because I am connected to home wifi? But if vpn is connected, it should show VPN server ip right?
Some more info:
server.ovpn:
port 443
proto tcp
dev tun
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"
server 10.26.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
route 192.168.0.0 255.255.255.0
client-to-client
push "route 192.168.0.0 255.255.255.0"
push "dhcp-option DNS x.x.x.x" ---> this is the DNS at my home which i got from typing "ipconfig/all" in cmd.
push "dhcp-option DNS x.x.x.x" ---> this is the DNS at my home which i got from typing "ipconfig/all" in cmd.
keepalive 10 120
cipher BF-CBC
comp-lzo
max-clients 100
persist-key
persist-tun
status openvpn-status.log
verb 3
client.ovpn
client
dev tun
proto tcp
remote 174.x.x.x 443 ---> 174.x.x.x is the internet IP address from my ISP.
comp-lzo
ca ca.crt
cert client.crt
key client.key
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
cipher BF-CBC
resolv-retry infinite
If you guys require any more info, please let me know. Thank you.
I am a newbie at this. Please go easy on me. I heard about OpenVPN from this tech guy that came to my house to repair my laptop. He explained a little bit about VPN but I am not quite sure how it works.
My goal: Establish a OpenVPN server on my laptop and make my iphone 5 the client using the OpenVPN Connect app. This way I can securely browse the internet from anywhere since my phone is connected to VPN server on my laptop? Do i have that concept correct?
What I've done so far: I have made the ca.crt, dh1024.pem, server.crt, server.key, client.crt(for iphone), client.key(for iphone) through the command window. I made a server.ovpn file which I have put into the "config" folder. When I press connect on the OpenVPN GUI, It says connection established and it shows an IP address. That means my server is connected right? I have also made a client.ovpn file for the iphone. I put the ca.crt, client.crt, client.key and client.ovpn in the OpenVPN app through itunes. When I try to connect on the iphone, it shows the "VPN" symbol on the "taskbar" beside the clock. So it seems like my VPN on iphone is connected also.
But when I open safari and go to "whatismyip.org" it shows my internet ip assigned by my ISP and not the VPN server ip. I downloaded this app on the iphone called "Network pink lite." I tried pinging my VPN server ip but it didn't ping. What am i doing wrong? I'd really appreciate if you guys can help me.
By the way, I am testing all of this from my home. So maybe the website "whatismyip.org" is showing my internet ip because I am connected to home wifi? But if vpn is connected, it should show VPN server ip right?
Some more info:
server.ovpn:
port 443
proto tcp
dev tun
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"
server 10.26.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
route 192.168.0.0 255.255.255.0
client-to-client
push "route 192.168.0.0 255.255.255.0"
push "dhcp-option DNS x.x.x.x" ---> this is the DNS at my home which i got from typing "ipconfig/all" in cmd.
push "dhcp-option DNS x.x.x.x" ---> this is the DNS at my home which i got from typing "ipconfig/all" in cmd.
keepalive 10 120
cipher BF-CBC
comp-lzo
max-clients 100
persist-key
persist-tun
status openvpn-status.log
verb 3
client.ovpn
client
dev tun
proto tcp
remote 174.x.x.x 443 ---> 174.x.x.x is the internet IP address from my ISP.
comp-lzo
ca ca.crt
cert client.crt
key client.key
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
cipher BF-CBC
resolv-retry infinite
If you guys require any more info, please let me know. Thank you.