Transparent WIFI to ETH routing via RPi

Hi,

Please I need your help.

I have following problem, and wanted to ask your advise how to solve it.
I have BOX that needs access to port the 80 from Internet, but has only Ethernet connectivity.

I would like to use RPi to interconnect WIFI to ETH and have following set-up:

Internet <=> Router @ WIFI <=> WIFI @ RPi @ ETH <=> ETH @ BOX

I found this RPi WIFI to ETH Bridge set-up, and it works.
https://willhaley.com/blog/raspberry-pi-wifi-ethernet-bridge/

I even added fixed IP address assignment BOX, but the problem its that there is other network created by DNSMASQ on RPi for the ETH, and devices on ETH are not accessible from outside Internet or WIFI in first place.

I somehow need either RPi to be fully transparent to access port 80 of the box from outside:

  • Is there a solution to create WIFI to ETH Bridge on RPi that is fully transparent - doesn’t have own DHCP, and the DHCP which is giving IP address to RPi would also give other IP address to a device connected to the RPi ETH port?
  • Is there kind of two level port forwarding possible (one on main router from Internet to RPi and other on RPi from WIFI NW to which RP is connected to ETH NW created under RPi)?
  • Or I’m on the wrong way and need to use completely different solution for this problem?

Regards,
Janis

Linux won’t route packets by default, get to the part about “Enabling forwarding in /etc/sysctl.conf” and you should be on your way. You shouldn’t need to NAT based on your diagram.

https://arstechnica.com/gadgets/2016/04/the-ars-guide-to-building-a-linux-router-from-scratch/

Good luck.

This might point you in the right direction

https://pimylifeup.com/raspberry-pi-wifi-bridge/

How To: Wifi to Ethernet Bridge

Share WiFi With Ethernet Port on a Raspberry Pi