I have successfully setup openvpn server on a second computer, I could never get it to work on a ddwrt router. Anyway, I am able to make the connection successfully from a client, but now I am trying to make it possible to see all machines on the servers network, as well as have all traffic pass through the VPN.
I am trying the following to achieve this-
push "redirect-gateway def1"
and - push route "192.168.1.0 255.255.255.0" - (servers network)
I have used the directions on the openvpn site http://openvpn.net/index.php/open-sourc ... html#scope.
Still not working.
Here is my server config:
Code: Select all
proto udp
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\\dh2048.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push route "192.168.1.0 255.255.255.0"
push "redirect-gateway def1"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
This is my client config:
Code: Select all
client
dev tun
proto udp
remote xxxx.xxxx.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
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
comp-lzo
verb 5
I tried bridging the local area connection with the TAP vpn interface, but that didn't work at all.
Any suggestions would be much appreciated.