sendright.blogg.se

Howto setup ssh tunnel a remote port to another computer
Howto setup ssh tunnel a remote port to another computer








howto setup ssh tunnel a remote port to another computer

configure a static ip on your wifi and remove the gateway address (unless you are doing advanced things) else you get two default routes and its very annoying. The default settings seemed good enough for me. (not just generic squid, I had too much trouble with building it) I used this for using my laptops 4g dongle to route internet to a raspberry pi with a fixed line connection to a wifi router. But here are the more detailed steps I used.

howto setup ssh tunnel a remote port to another computer

Traffic flow diagram 's answer was good enough for me to get it all down. This will allow Host B to access the internet through Host A. Ssh -R 3129:localhost:3128 you want to make persistent SSH tunnel, you can use autossh as follows:Īutossh -M 20000 -f -NT -R 3129:localhost:3128 above autossh command to work, you should be having SSH Keys setup from HostA to HostB Run the following SSH command from Host A Make sure the server is started on Host A (e.g.

  • Add the following entries to /etc/environmentĬreating SSH tunnel with Remote port forwarding.
  • howto setup ssh tunnel a remote port to another computer

    If Host A itself uses some proxy say 10.140.78.130:8080 to connect to internet then also add that proxy to /etc/squid/nf as follows:.Comment the http_access deny all then add http_access allow all in /etc/squid/nf.Just adding some more and clear steps to and answers.










    Howto setup ssh tunnel a remote port to another computer