Web traffic not going over vpn

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
emidge78
OpenVpn Newbie
Posts: 3
Joined: Sun Sep 18, 2011 12:22 pm

Web traffic not going over vpn

Post by emidge78 » Mon Sep 19, 2011 8:09 am

Hi

I am slowly going mad, as I cant seem to be able to forward all traffic over the vpn including internet. I can connect to the vpn ok and browse other pcs on the remote network, and ping them. But when I browse it appears I am connecting from my local site and the ip address does not show the wan ip of the vpn server. I have a ddwrt running openvpn behind another router port 1194 forwarded on first router to second. Also my local ip address range is 192.168.1.0 and vpn server range is 192.168.0.0. The client computers are wirelessly connected to the router via DHCP.

My config files

clientconfig

remote 81.3.110.39 1194
client
dev tap0
proto udp
resolv-retry infinite
nobind
persist-key
persist-tun
float
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client1.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client1.key"
ns-cert-type server

server config

mode server
proto udp
port 1194
dev tap0
server-bridge 192.168.0.21 255.255.255.0 192.168.0.170 192.168.0.180
keepalive 10 120
daemon
verb 5
client-to-client
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
management localhost 5001

Please, please any help would be greatfully received

thanks

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Web traffic not going over vpn

Post by janjust » Mon Sep 19, 2011 9:07 am

you're not redirecting the default gateway ; add

Code: Select all

push "redirect-gateway def1"
to the server config , restart the server and reconnect the client.

Post Reply