I am relatively new to this community and am hopeful that somebody can help me with my problem.
My network setup is the following
Router, IP 192.168.1.1, two interfaces:
wlan1
Subnet: 192.168.1.0
Mask: 255.255.255.0
Gateway: 192.168.1.1
DNSmasq: DHCP Range 192.168.1.100-92.168.1.150
wlan2
Subnet: 192.168.2.0
Mask: 255.255.255.0
Gateway: 192.168.2.1
DNSmasq: DHCP Range 192.168.2.100-92.168.2.150
VPN Gateway, IP 192.168.1.2
(connected to wlan1, static ip)
I would like all clients connected to wlan2 to use the VPN Gateway with the IP 192.168.1.2 as their standard internet gateway. This IP is on a different subnet.
I have read a lot about a gateway being on a different subnet and I think it can be achieved by using static routing rules.
Unfortunately I am unable to build the needed rules. Is anybody able to help me?
Thanks!