I have several WiFi clients behind an Asus AC3200 running AsusWrt Merlin but only 2 of which I'd like to go out via the VPN but also be able to access local resources on the LAN.
The LAN is slightly complex because it consists of the following:-
WiFi Clients > Asus > Switch > Firewall > Internet
Wired Clients > Switch > Firewall > Internet
WiFi clients are on 192.168.2.x and clients wired into the switch are on 192.168.1.x. WiFi clients can currently access LAN resources on the 192.168.1.x network.
The Asus does DHCP for WiFi clients, then has an IP of 192.168.1.2 on its WAN interface. I also have the OpenVPN client configured.
Using policy based routing, what is best practice please with regards to sending a WiFi client through the tunnel but allowing it to access to the LAN at the same time?
Should I set the Policy Rules to Strict, and then rules for the cient as below...
- 192.168.2.11 to 0.0.0.0 Iface of VPN
- 192.168.2.11 to 192.168.1.0/24 Iface WAN
- 192.168.2.11 to 192.168.2.0/24 Iface WAN
...and then repeat for the other WiFi client, and a single client which is hardwired into the Asus. Or is there a better method I should be looking at please?
The LAN is slightly complex because it consists of the following:-
WiFi Clients > Asus > Switch > Firewall > Internet
Wired Clients > Switch > Firewall > Internet
WiFi clients are on 192.168.2.x and clients wired into the switch are on 192.168.1.x. WiFi clients can currently access LAN resources on the 192.168.1.x network.
The Asus does DHCP for WiFi clients, then has an IP of 192.168.1.2 on its WAN interface. I also have the OpenVPN client configured.
Using policy based routing, what is best practice please with regards to sending a WiFi client through the tunnel but allowing it to access to the LAN at the same time?
Should I set the Policy Rules to Strict, and then rules for the cient as below...
- 192.168.2.11 to 0.0.0.0 Iface of VPN
- 192.168.2.11 to 192.168.1.0/24 Iface WAN
- 192.168.2.11 to 192.168.2.0/24 Iface WAN
...and then repeat for the other WiFi client, and a single client which is hardwired into the Asus. Or is there a better method I should be looking at please?