jpattard
I am testing an installation of OpenVPN on windows 10. I am able to connect remotely and also browse the tunneled internet. However for some strange reason, after some time the Tunneled internet stops working althogh the VPN remains connected and the internet switches to the local client connection.
openvpn_inc
Hello jpattard,
Are you using the program that is called "OpenVPN Access Server" or are you using the community OpenVPN program and have configured it yourself as a server? This makes a difference in terms of where this post should go on this forum.
Kind regards,
Johan
jpattard
The community version.
jpattard
I configured the options myself with the below options:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
server 10.24.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
#mute 20
windows-driver wintun
status openvpn-status.log
log openvpn.log
log-append openvpn.log
# Set the appropriate level of log
# file verbosity.
#
# 0 is silent, except for fatal errors
# 4 is reasonable for general usage
# 5 and 6 can help to debug connection problems
# 9 is extremely verbose
verb 9
# Silence repeating messages. At most 20
# sequential messages of the same message
# category will be output to the log.
;mute 20
# Notify the client that when the server restarts so it
# can automatically reconnect.
explicit-exit-notify 1
push "redirect-gateway def bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "route 192.168.1.0 255.255.255.0"
openvpn_inc
Hello jpattard,
You should look on your client if the routes that are put in place by OpenVPN are still there when the problem occurs. If they're not, and OpenVPN is not reporting anything that it removes routes at that time and is still just up and running, then you have another process that's removing routes. You should find out what that other process is and stop it from interfering in the routing table.
Kind regards,
Johan
Pippin
Hi,
push "route 192.168.1.0 255.255.255.0"
This is a common subnet, it could be the problem, please see here:
https://community.openvpn.net/openvpn/wiki/AvoidRoutingConflicts
jpattard
I'll check both, thanks 🙂
jpattard
I removed the push "route 192.168.1.0 255.255.255.0" but it did not solve the issue. I am suspecting that something is playing with the routes on my laptop. I found another default route on my laptop with a lower metric then the one of the VPN. Not sure how can i discover what's causing the change
Pippin
You could look at the routing tables before and after.
jpattard
Indeed! and i'm finding another default route after some time which always points to my internet router.