I bought a silly camera that uses activeX controls and needs ports 80,5000,5001 to function properly
Our wireless network only allows port 80,22 into the CSIR so I had to build some tunnels
On my machine I wrote a script called makecameratunnels
#!/bin/sh
ssh -L 80:meshy:11000 djohnson@meshy
ssh -L 5000:meshy:11001 djohnson@meshy
ssh -L 5001:meshy:11002 djohnson@meshy
On the machine: mechy, I wrote a script called camera-socat
#!/bin/sh
su
socat TCP4-LISTEN:11000,fork,reuseaddr TCP4:146.64.28.13:80 &
socat TCP4-LISTEN:11001,fork,reuseaddr TCP4:146.64.28.13:5000 &
socat TCP4-LISTEN:11002,fork,reuseaddr TCP4:146.64.28.13:5001 &
Then I looged into the camera by opening this site on my webbrowser
http://localhost
An behold all worked!