I have an ISP router with IP 192.168.1.254.
I installed OpenWrt on my Raspberry PI 3 B.
Raspberry is connected to the ISP router via ethernet
On the Raspberry I configured 2 networks:
- wan
- wifi
WAN
- DHCP client on the same ISP router network => can go on internet
WIFI
- static ip on a different subnet 192.168.2.1
- bridged network
- DHCP server enabled
Firewall zone
I associated the following firewall zone to the wifi network:
input: accept
output: accept
forward: accept
destination zone: wan
In this way if I connect to the wifi network with a client I receive a 192.168.2.* address, and this is what I desire.
The connected client can reach internet through wan network.
Now I want to intercept all the traffic coming from a client connected to the wifi network 192.168.2.* and redirect it to a static address.
I tried several things but I can't make it working.
What is the right way to try?