Cannot browse internet push "redirect-gateway def1" WINDOWS
Posted: Wed Dec 01, 2010 9:16 pm
Hello,
My background is programming, so excuse my lesser skills on the networking side...
Goal: Connect to VPN from a laptop on any network (usually corporate networks that only have port 80 and 443 open). I will connect to my network at home and do any of the following: access file shares (from the 192 subnet NOT THE 10 subnet), remote desktop, browse the internet, run email client to bypass pop3 blocking from the corporate side (my personal emails are in pst on my outlook client along with my exchange connection).
My Network: One desktop and hardware firewall. The computer is running Windows 7 x64 and the server-side of the vpn software.
OpenVpn setup: TCP port 443 (so it is not blocked by corporate). Can I switch to UDP? I think not because web browsing is TCP? This is a side question.
Current State: I can ping the vpn server via TAP address 10.8.0.1 and access shares and RDP from there. I cannot ping my subnet 192.168.x.x. I also cannot browse the internet. I need to access 192 so the laptop can access the file share the same whether im on VPN or at home on my wireless.
I tried push "redirect-gateway def1" and also tried pushing the DNS server. I tried dns servers as 10.8.0.1, 192.168.50.1, and my ISPs DNS servers, but nothing worked.
All other examples out there are for unix, but I am using windows 7. I think I have to do something on the routing side so the server's TAP knows to route my request to the router which then NATs it to the internet.
My Config:
local 192.168.50.102
port 443
proto tcp
dev tun
dev-node VPNTap
ca "C:\\Program Files (x86)\\OpenVPN\\keys\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\keys\\server.crt"
key "C:\\Program Files (x86)\\OpenVPN\\keys\\server.key" # This file should be kept secret
dh "C:\\Program Files (x86)\\OpenVPN\\keys\\dh1024.pem"
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
keepalive 10 120
tls-auth "C:\\Program Files (x86)\\OpenVPN\\keys\\ta.key" 0 # This file is secret
comp-lzo
max-clients 5
persist-key
persist-tun
status openvpn-status.log
verb 3
mute 20
My background is programming, so excuse my lesser skills on the networking side...
Goal: Connect to VPN from a laptop on any network (usually corporate networks that only have port 80 and 443 open). I will connect to my network at home and do any of the following: access file shares (from the 192 subnet NOT THE 10 subnet), remote desktop, browse the internet, run email client to bypass pop3 blocking from the corporate side (my personal emails are in pst on my outlook client along with my exchange connection).
My Network: One desktop and hardware firewall. The computer is running Windows 7 x64 and the server-side of the vpn software.
OpenVpn setup: TCP port 443 (so it is not blocked by corporate). Can I switch to UDP? I think not because web browsing is TCP? This is a side question.
Current State: I can ping the vpn server via TAP address 10.8.0.1 and access shares and RDP from there. I cannot ping my subnet 192.168.x.x. I also cannot browse the internet. I need to access 192 so the laptop can access the file share the same whether im on VPN or at home on my wireless.
I tried push "redirect-gateway def1" and also tried pushing the DNS server. I tried dns servers as 10.8.0.1, 192.168.50.1, and my ISPs DNS servers, but nothing worked.
All other examples out there are for unix, but I am using windows 7. I think I have to do something on the routing side so the server's TAP knows to route my request to the router which then NATs it to the internet.
My Config:
local 192.168.50.102
port 443
proto tcp
dev tun
dev-node VPNTap
ca "C:\\Program Files (x86)\\OpenVPN\\keys\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\keys\\server.crt"
key "C:\\Program Files (x86)\\OpenVPN\\keys\\server.key" # This file should be kept secret
dh "C:\\Program Files (x86)\\OpenVPN\\keys\\dh1024.pem"
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
keepalive 10 120
tls-auth "C:\\Program Files (x86)\\OpenVPN\\keys\\ta.key" 0 # This file is secret
comp-lzo
max-clients 5
persist-key
persist-tun
status openvpn-status.log
verb 3
mute 20