Answer the question
In order to leave comments, you need to log in
How to make exceptions for wireguard?
There is a server with ubuntu 20.04, pivpn is installed with wireguard.
By default, you need to drive all traffic through it, but exclude some sites (so that traffic bypasses the server)
How to set it up? Couldn't find info anywhere
Answer the question
In order to leave comments, you need to log in
This is done not on the server, but on the client. Because what went to the server is no longer the server.
For example, you can set up a client on Mikrotik, which, by specifying the Mangle rule, will let individual sites go to the VPN, and drive everything else past the VPN, or (as you need) drive everything to the VPN, and skip individual sites.
Or, in the client on Ubuntu, configure routing tables that will let individual pages go by a different route, and not through the VPN. You can try to do it with the command:
route add webservices.example.com mask 255.255.255.255 192.168.1.0
Enter more specific routes for these sites.
You find out the IP of the site (it can change and there can be several of them, so you need to provide for the automation of these actions).
On the client, you enter the route to this IP through the provider's gateway, then traffic to the site will bypass the VPN server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question