punchsuckr
Senior Member
Hi, I am at my wits end setting up an open vpn server on my PC. I was running it on my n66u but the speeds it provides leaves much to be desired so I decided to set it up on a separate PC I had lying around.
I have done most things and clients successfully connect to the server, however, as soon as I enable the push "redirect-gateway def1 bypass-dhcp" option, I lose internet connectivity on my client.
Also, I am currently on the extremely common LAN subnet of 192.168.1.x... I have never changed the subnet of my LAN before and I am wary of messing something up. The vpn will mostly only be used at my family's place in the UAE and I have used the older on-router solution there and it worked without problems so i do not know how worthwhile will the task of changing my subnet be.
Anyhoo my client and server config files are below:
server
client
I have tried with both tcp and udp since udp doesn't work on the n66u server as well... but still there's nothing.
Thank you for going through this post. Please bear with me I am a complete noob when it comes to routing but really need it to work.
I have done most things and clients successfully connect to the server, however, as soon as I enable the push "redirect-gateway def1 bypass-dhcp" option, I lose internet connectivity on my client.
Also, I am currently on the extremely common LAN subnet of 192.168.1.x... I have never changed the subnet of my LAN before and I am wary of messing something up. The vpn will mostly only be used at my family's place in the UAE and I have used the older on-router solution there and it worked without problems so i do not know how worthwhile will the task of changing my subnet be.
Anyhoo my client and server config files are below:
server
Code:
;local a.b.c.d
port 1194
;proto tcp
proto udp
;dev tap
dev tun
;dev-node MyTap
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key" # This file should be kept secret
dh "C:\\Program Files\\OpenVPN\\config\\dh1024.pem"
;topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;server-bridge
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
push "route 192.168.1.0 255.255.255.0"
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 199.85.126.10"
push "dhcp-option DNS 199.85.127.10"
client-to-client
duplicate-cn
keepalive 10 120
;tls-auth ta.key 0 # This file is secret
cipher AES-256-CBC
;compress lz4-v2
;push "compress lz4-v2"
;comp-lzo
max-clients 5
;user nobody
;group nobody
persist-key
persist-tun
status openvpn-status.log
;log openvpn.log
;log-append openvpn.log
verb 3
;mute 20
;explicit-exit-notify 1
client
Code:
;dev tap
dev tun
;dev-node MyTap
;proto tcp
proto udp
remote spoiltrouter.asuscomm.com 1194
;remote my-server-2 1194
;remote-random
resolv-retry infinite
nobind
;user nobody
;group nobody
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\test2.crt"
key "C:\\Program Files\\OpenVPN\\config\\test2.key"
remote-cert-tls server
;tls-auth ta.key 1
cipher AES-256-CBC
#comp-lzo
verb 3
# Silence repeating messages
;mute 20
I have tried with both tcp and udp since udp doesn't work on the n66u server as well... but still there's nothing.
Thank you for going through this post. Please bear with me I am a complete noob when it comes to routing but really need it to work.