Port Forwarding on Dragino Yun Shield

Hi! So what I am trying to do is have my Yun shield port forward anything on a port (say 12345) that it recieves via WiFi, to the ethernet port on the shield, where I have a Raspberry PI running motioneyeos with a webcam. I have the internet connection from WiFi shared to the ethernet port already, I just can't seem to make the port forward part work... Thanks!

You cannot forward a port to an interface but only to another IP. If you know the IP address of the Raspberry Pi connected to the Ethernet interface you can forward any port to it.

You can do that even with the web interface (luci), just choose Firewall from the menu Network and click on the tab "Port Forwards".

pylon:
You cannot forward a port to an interface but only to another IP. If you know the IP address of the Raspberry Pi connected to the Ethernet interface you can forward any port to it.

You can do that even with the web interface (luci), just choose Firewall from the menu Network and click on the tab "Port Forwards".

Sorry, I should have specified that. I am trying to port forward anything recieved on 192.168.1.111:12345 (The Yun shield's IP address on my local home network) to 192.168.241.2 (The Raspberry PI's address on the ethernet interface, with no port in particular). I have tried to use the luci interface to do so, but all I get is a "page cannot be reached" when I try to connect via my browser on my computer

I am trying to port forward anything recieved on 192.168.1.111:12345 (The Yun shield's IP address on my local home network) to 192.168.241.2 (The Raspberry PI's address on the ethernet interface, with no port in particular).

That's not possible, you have to forward to a specified port. Else, how would the Yun shield find out what to do with a packet received on port 12345? Forwarding always needs a target IP and a target port. The port number may be the same but it must be predefined.

I have tried to use the luci interface to do so, but all I get is a "page cannot be reached" when I try to connect via my browser on my computer

That sounds like a network problem. How did you configure the Yun shield? Did you set the WiFi interface to be the internet connection?

pylon:
That's not possible, you have to forward to a specified port. Else, how would the Yun shield find out what to do with a packet received on port 12345? Forwarding always needs a target IP and a target port. The port number may be the same but it must be predefined.

That sounds like a network problem. How did you configure the Yun shield? Did you set the WiFi interface to be the internet connection?

I did not know it needed to be forwarded to a specific port, not just the address. As for the luci interface, I can access it fine, both from the WiFi on my local network of via the ethernet connection. I was meaning trying to connect to 192.168.1.111:12345 (which I thought would've been forwarded to the PI) resulted in the "page cannot be reached". I just reconfigured the PI to have its http listen on port 12345 and forwarded anything on 192.168.1.111:12345 to 192.168.241.3:12345 and I can now access the web interface and camera stream of the PI through the Yun shield just the way I was on the local network! Thanks! (This is an important step in a 3g-networked-go-anywhere-remotely-with-a-cell-connection-bot :slight_smile: )