I have a raspberry pi at a remote site which is connected to the wider internet using a USB 3g/4g modem (its very slow, but works) I have root ssh access to this device, RPi is accessible via sitename.ddns.net, the IP address changes randomly, but the DDNS works well, connected to the RPi via eht0 is a server, server IP address is 10.64.92.24, eht0 has static address 10.64.92.26. I can remote access this at the moment by opening an SSH tunnel and using socks5 proxy in the browser to tunnel thru to the device ... but im trying to set up port forwarding so that I can just use sitename.ddns.net:8089 to access the server on the far side of the RPi
I have tried various combinations of IPTABLES -R or -L but can seem to get any of these to work, server at the far end is on port 80, I would rather not use for 80 on the pi, perhaps 8089 just to be a bit random.
is this the right thing to be looking at or should this be done using some sort of bridge between wwan0 (or ppp0) to eth0
any help would be appreciated.
diagrammatic explanation ... (dunno if it should be wwan0 or ppp0)
(home/office) ----3g----(wwan0 - pi - eth0 10.64.92.26)----cat5----(server 10.64.92.24)