Hey, thanks for your script. Maybe add a command to enable IP-forwarding.
My problem is to make the web-ui available on 192.168.1.0/24 (local network). Can you give me some iptables-rules or point me in the right direction?
Hi, sorry for the late response. Actually changing the last line:
socat tcp-listen:$PORT,reuseaddr,fork,range=127.0.0.1/32 tcp-connect:10.100.0.2:$PORT &to
socat tcp-listen:$PORT,reuseaddr,fork,range=192.168.1.0/24 tcp-connect:10.100.0.2:$PORT &should be sufficient as long iptables allows $PORT.
In the past I used nginx to proxy to localhost, this was on a remote machine. Meanwhile I switched to rtorrent and Flood/rutorrent. Since rtorrent does the socket stuff out of the box I don't need the last line anymore.
Yes!! Thanks, works perfectly.