5
2
I was wondering whether it is possible to get port forwarding without being root or ssh.
Currently I do
ssh -L 20080:othermachine:80 localhost
Using ssh can get you certain benefits like creating encrypted tunnels etc. In the above example I don't do that so using ssh seems unnecessary overhead. Is there an easier way to do this?
I suppose it is not that hard to create a program that reads all data on one socket and sends it to another and vice versa. There must be some tool that does that job better than I can ever write.
You wouldn't need root for that example. – Arjan – 2009-10-03T14:04:28.320
1I think I should have made clearer that I did not have a particular problem. It was more that although this worked, I thought there must be other solutions that could be better. (As for the root part, I would be able to use port forwarding with iptables, but that would require root.) – BlackShift – 2009-10-04T12:17:56.620