Now wget will work and so will sudo apt-get so you can install packages. To create a direct TCP forward tunnel, we have to use the -L option on the command line: ssh -L bindaddress:port:host:hostport userremotesshserver. make sure your wifi router is not using the same .y range (configure a different "x" in this case) ssh -R 8080:localhost:8080 the PI export http_proxy= with visudo add the text: Defaults env_keep = "http_proxy https_proxy ftp_proxy" 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. Log into that machine, open a terminal window and issue the command: sudo nano /.ssh/config. ![]() (not just generic squid, I had too much trouble with building it) Once you are certain of this, configure the jump. The ssh command provides the -D option in order to create a proxy. 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. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |