You are not logged in.
Our home LAN is controlled by a wireless ADSL router, dishing out IP addresses 172.17.2.***. My Arch laptop 172.17.2.100 hosts videos for the LAN on NFS shares.
For over a year, I've had a Raspberry Pi connected via ethernet to the laptop, as wireless is a bit unreliable on the Pi. I set up Internet Connection Sharing on the laptop so the Pi can scrape TV and Movies, get weather forecasts etc. as well as stream movies from NFS. The ethernet uses 10.0.0.2 (Arch laptop) and 10.0.0.3 (Pi). I control the Pi with a USB remote.
The Pi can also be controlled by a web interface, so from the laptop I browse to 10.0.0.3.
My question: what is the most obvious/simplest way of "forwarding" the web interface to any device on the 172.17.2.*** LAN? I'd like to either browse to the Arch laptop which is forwarding web traffic, or browse the IP address of the Pi which would be exposed to the LAN. Would some Iptables rules do it? Do I want a bridge? Tunneling proxy?
Anyway, I don't want to set off on the wrong path if someone can point me in the right direction.
TIA
Solved, solution I'm using:
On Arch laptop
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 10.0.0.3:80
Last edited by vacant (2014-05-23 11:11:40)
Offline