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
Web traffic not going over vpn
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Sun Sep 18, 2011 12:22 pm
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Web traffic not going over vpn
you're not redirecting the default gateway ; add
to the server config , restart the server and reconnect the client.
Code: Select all
push "redirect-gateway def1"