Open VPN Server on Windows 10

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
jpattard
OpenVpn Newbie
Posts: 6
Joined: Wed Nov 02, 2022 1:34 pm

Open VPN Server on Windows 10

Post by jpattard » Wed Nov 02, 2022 1:39 pm

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.

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: Open VPN Server on Windows 10

Post by openvpn_inc » Wed Nov 02, 2022 1:50 pm

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
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

jpattard
OpenVpn Newbie
Posts: 6
Joined: Wed Nov 02, 2022 1:34 pm

Re: Open VPN Server on Windows 10

Post by jpattard » Wed Nov 02, 2022 2:19 pm

The community version.

jpattard
OpenVpn Newbie
Posts: 6
Joined: Wed Nov 02, 2022 1:34 pm

Re: Open VPN Server on Windows 10

Post by jpattard » Thu Nov 03, 2022 7:14 am

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"

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: Open VPN Server on Windows 10

Post by openvpn_inc » Thu Nov 03, 2022 9:54 am

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
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: Open VPN Server on Windows 10

Post by Pippin » Thu Nov 03, 2022 10:53 am

Hi,

Code: Select all

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/w ... gConflicts
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

jpattard
OpenVpn Newbie
Posts: 6
Joined: Wed Nov 02, 2022 1:34 pm

Re: Open VPN Server on Windows 10

Post by jpattard » Thu Nov 03, 2022 12:47 pm

I'll check both, thanks :)

jpattard
OpenVpn Newbie
Posts: 6
Joined: Wed Nov 02, 2022 1:34 pm

Re: Open VPN Server on Windows 10

Post by jpattard » Fri Nov 04, 2022 9:49 am

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

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: Open VPN Server on Windows 10

Post by Pippin » Fri Nov 04, 2022 7:22 pm

You could look at the routing tables before and after.
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

jpattard
OpenVpn Newbie
Posts: 6
Joined: Wed Nov 02, 2022 1:34 pm

Re: Open VPN Server on Windows 10

Post by jpattard » Fri Nov 04, 2022 9:35 pm

Indeed! and i'm finding another default route after some time which always points to my internet router.

Post Reply