Wifi client, port forwarding

Hi everyone,

I am looking for a solution with my strange network setup.
I configured RPI as a wifi client bridge, but I need to only access device and single port on the “wan” side.

My RPI wifi bridge is running openwrt now and I was able to setup connection to hotspot. However, I am not sure how to configure port forwarding. Most examples show how to forward lan to wan, but I need to do the opposite. What is the best configuration for this type of scenario?

I don’t really need a nat working for this setup, just want to be able to access a single port on my RPI that would route traffic to hotspot device.

Any help will be appreciated. Thanks.

I was able to solve this by enabled masquerading on both Lan → wan and wan → reject .

Also set forward chain to accept in wan zone.

And after that it’s just a simple port forwarding rule to route port on lan interface to port on wan interface, specifying target ip address.