I have a GL-AX1800 connected as WireGuard Client to a VPS Server
Currently I'm filtering by MAC the devices that are allowed to go through the VPN.
However, I'm concern about the Bandwidth limit of my VPS (2TB). I don't want to be watching or worrying about go over the limit. As I want to have the infrastructure as transparent or with the less maintenance as possible.
So my idea is to implement some way to exclude specific ports or apps in one of my servers to avoid the VPN and don't spend Bandwidth.
I see some options here, but I'm very new in networking, so some guidance would be appreciated.
In the router, split the traffic coming from my Server. If ie. port 64323, go through, avoiding Wireguard. If any other port, go through Wireguard.
I think it cannot be done by GUI, but maybe through SSH or OpenWrt with Iptables ??
Alternatively, split the traffic directly on my Server. I use Linux / NixOS
Maybe this would be out of scope here, but maybe you can just help me with the concept idea, in case this option fits better than the first one?
a. Use Eth interface for everything and Wifi for Specific apps/ports ?
b. Create an additional virtual interface for the specific apps?
c. Create two WG interfaces and connect to Flint Router to the WG Server option?
would any of these work?
I think this should be possible somehow, as for example NordVPN app provide out of the box this feature.
Currently it is possible to go through VPN by specified device MAC (similar to you mentioned the point 1), or by specified domain/IP (similar to you mentioned the point 2, but need to import the list manually).
Both of the above ways are possible to save your VPS traffic.
The option of filtering by MAC is working fine for me, however this option does not allow me to filter also by target domain (ie, to make youtube or netflix avoid using the VPN)
It seems that either you filter by MAC or by domain, but not both. For that you need to use maybe the Customize Routing Rules.
Thanks for further clarification, I see, let's try to evaluate this.
Please let me know further info, such as, input the domain in the list with the mode 'do not use VPN', and trace the domain name to see how about the traffic of the domain goes to in the client PC.