Answer the question
In order to leave comments, you need to log in
How to disable connection via OpenVPN only for certain sites?
There is an OpenVPN server.
The config is configured so that all connections go through it:
push "redirect-gateway def1 bypass-dhcp"
How to configure the server or client config to exclude some sites, i.e., so that the connection to them goes bypassing the VPN
Answer the question
In order to leave comments, you need to log in
Remove redirect-gateway def1, after which you can add your own rules.
The redirect-gateway def1 parameter is an abbreviation for several rules, by default it matches:
route remote_host 255.255.255.255 net_gateway
route 0.0.0.0 128.0.0.0 vpn_gateway
route 128.0.0.0 128.0.0.0 vpn_gateway
route {ip} {маска} {шлюз}
route add X.X.X.X mask 255.255.255.255 Y.Y.Y.Y, где Y.Y.Y.Y — IP-адрес шлюза.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question