Is there a hierarchy for rules? If there are conflicts, which one has precedence? For example, 0.0.0.0 0.0.0.0 VPN would seem to send everything to VPN (although it doesn't seem to do that) is followed by 192.168.1.100 WAN what would happen? And what about local addresses that that are not in included in any rule? I tried 192.168.1.07 VPN 192.168.1.105 WAN (which worked for those addresses) and then accessed the net from another device for which there was not a rule and it resulted in WAN. Are these rules spelled out somewhere? Thanks
Think of it this way so it doesn't become confusing.
Source IP is your local network which refers to your devices on the network.
If you want specific IP address to go to VPN and all other IP goes to Local ISP you would put down a rule like this
Source IP 192.168.1.80/28 which allows IP range of 192.168.1.80-192.168.1.95
Destination IP will be any address from the Internet so putting 0.0.0.0 means all address.
lface is where you want the traffic to go to WAN for local IPS or VPN
so we can say this
192.168.1.80/28 0.0.0.0 VPN this means 192.168.1.80-192.168.1.95 will go to VPN and
all other IP address that are not those of the example will automatically get directed to local ISP
you can say this as well.
192.168.1.0/24 0.0.0.0 VPN this would put every IP address on VPN
then you can create a rule as follows for specific traffic to get directed to WAN
192.168.1.50 24.66.122.24 WAN
this rule says all traffic goes to VPN but when 192.168.1.50 sends email direct it via WAN
24.66.122.24 is an example if your email server was that address.
0.0.0.0 0.0.0.0 should work in theory but I guess it doesn't. I never tried it
I tried 192.168.1.07 VPN 192.168.1.105 WAN (which worked for those addresses) and then accessed the net from another device for which there was not a rule and it resulted in WAN. Are these rules spelled out somewhere? Thanks
You don't have to tell the router which IP goes to VPN and which IP goes to WAN
you reserve specific IP that will either go to WAN or VPN and the rest automatically get routed properly.
so if you say 192.168.1.80/28 0.0.0.0 VPN
these
IP address 192.168.1.80-192.168.1.95 will go to VPN and all the rest will go to WAN local ISP
there is no need to add other address which are not in the VPN range to go to WAN.
You would only do that if there are Internet address's that you want for specific devices weather they are on VPN or WAN
when a rule comes its way it will redirect the traffic according to the rules you set.
You can also say this
192.168.1.80/28 0.0.0.0 WAN
so IP range 192.168.1.80-192.168.1.95 will go to Local ISP and all other IP address will go to VPN
I hope that will make things clear for you.