Not All Traffic is Routed Via VPN
Posted: Thu Apr 25, 2013 9:58 am
Hi fellows,
I have one huge problem, which confuses me a lot.
I have a Linksys WRT54GL router with OpenVPN server (thanks to DD WRT firmware). My goal is to route all traffic (even ping requests and direct IP requests) through my VPN. In other words, I would like to disappear from my work network.
However on my windows XP client side, after connection to my router via VPN, everything is fine, the default gateway is my VPN gateway, but still I'm able to see all computers on my work network. At my workplace we have network printer and even when I'm connected to my VPN, I'm still able to print from my work printer, which confuses me a lot, because this means that not all of my traffic is routed via VPN. Is that normal? As far as I know, when I use udp tunnelling, everything has to be routed through the VPN, am I right?
My server config:
local [Router's external IP address"
mode server
tls-server
auth-user-pass-verify /tmp/custom.sh via-file
script-security 3
tmp-dir /tmp
server-bridge
dev tap0
proto udp
port 1194
persist-key
persist-tun
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
tls-auth /tmp/openvpn/ta.key
tls-cipher DHE-RSA-AES256-SHA
cipher BF-CBC
auth MD5
keepalive 10 120
comp-lzo
client-to-client
verb 6
mute 20
management localhost 5001
push "redirect-gateway def1"
push "dhcp-option DNS [Router's local IP address]"
reneg-sec 0
My client config:
client
dev tap0
proto udp
tls-client
remote [Router's IP address] 1194
nobind
persist-key
persist-tun
dev-node OpenVPN
auth-user-pass
ca "C:\\ca.crt"
cert "C:\\client1.crt"
key "C:\\client1.key"
tls-auth "C:\\ta.key"
tls-cipher DHE-RSA-AES256-SHA
cipher BF-CBC
pull "redirect-gateway def1"
pull "dhcp-option DNS [Router's local IP address]"
auth MD5
comp-lzo
ns-cert-type server
resolv-retry infinite
keepalive 10 120
verb 6
mute 20
reneg-sec 0
Overall the configuration is stable, but the above mentioned problem still exists, which drives me crazy!
Looking forward to hearing from you guys!
---
Kind Regards,
Zhelev
I have one huge problem, which confuses me a lot.
I have a Linksys WRT54GL router with OpenVPN server (thanks to DD WRT firmware). My goal is to route all traffic (even ping requests and direct IP requests) through my VPN. In other words, I would like to disappear from my work network.
However on my windows XP client side, after connection to my router via VPN, everything is fine, the default gateway is my VPN gateway, but still I'm able to see all computers on my work network. At my workplace we have network printer and even when I'm connected to my VPN, I'm still able to print from my work printer, which confuses me a lot, because this means that not all of my traffic is routed via VPN. Is that normal? As far as I know, when I use udp tunnelling, everything has to be routed through the VPN, am I right?
My server config:
local [Router's external IP address"
mode server
tls-server
auth-user-pass-verify /tmp/custom.sh via-file
script-security 3
tmp-dir /tmp
server-bridge
dev tap0
proto udp
port 1194
persist-key
persist-tun
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
tls-auth /tmp/openvpn/ta.key
tls-cipher DHE-RSA-AES256-SHA
cipher BF-CBC
auth MD5
keepalive 10 120
comp-lzo
client-to-client
verb 6
mute 20
management localhost 5001
push "redirect-gateway def1"
push "dhcp-option DNS [Router's local IP address]"
reneg-sec 0
My client config:
client
dev tap0
proto udp
tls-client
remote [Router's IP address] 1194
nobind
persist-key
persist-tun
dev-node OpenVPN
auth-user-pass
ca "C:\\ca.crt"
cert "C:\\client1.crt"
key "C:\\client1.key"
tls-auth "C:\\ta.key"
tls-cipher DHE-RSA-AES256-SHA
cipher BF-CBC
pull "redirect-gateway def1"
pull "dhcp-option DNS [Router's local IP address]"
auth MD5
comp-lzo
ns-cert-type server
resolv-retry infinite
keepalive 10 120
verb 6
mute 20
reneg-sec 0
Overall the configuration is stable, but the above mentioned problem still exists, which drives me crazy!
Looking forward to hearing from you guys!
---
Kind Regards,
Zhelev