M
M
mozilla2020-02-18 09:44:15
openvpn
mozilla, 2020-02-18 09:44:15

How to make openvpn network PERMANENTLY trusted in windows 10?

Due to some peculiarities on the laptop, the windows firewall greatly restricts the access of applications to public networks. At the same time, I use openvpn and observe the following situation - when I reconnect to the server, the connection becomes public . I
5e4b82e9c3445907719825.png
have to edit the network type from the console, but it helps only until the connection is restarted..
How to make the connection always private? Googling on set openvpn tap to private network leads to https://forums.openvpn.net/viewtopic.php?t=20570 where it is advised to add a default route, but that doesn't work for my profile.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mureevms, 2020-02-18
@mozilla

OpenVPN has the ability to run scripts after the tunnel is up (up) and shut down (down). Just write scripts and paste it into the config, like this:

up /path/to/up_script
down /path/to/down_script

Thus, if the network falls off and the setting fails, then when you reconnect, OpenVPN itself pulls the script and makes the network private. Another question is that you need to somehow find out the interface index, but this is Windows specific, I won’t help here.
Also, pay attention to the parameter script-securityand immediately set it to 2, i.e. add line to config
script-security 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question