Firewall rule to allow a specific website through a specific vpn gateway
Hi guys !
I have setup PIA vpn and it works like a charm. All the traffic goes through the vpn with no errors.
I want to allow a pc to use vpn for most of the traffic , and use the regular interface (no vpn) to access a couple of websites (aws for example, so i can restrict ips).
I don't know how to do that using rules.
Pack all the websites you want to access over the WAN gateway in an alias. Firewall > Aliases > IP.
Add a firewall rule to the top of the LAN interface (or to this one which is facing to the pc) rule set:
protocol: to fit your needs
source: your pc
dest: the alias you've added before
open the advanced options, go to gateway and select the WAN gateway. Save it.
Ensure that the rule is placed above the default allow-any-to-any rule.