

Now wget will work and so will sudo apt-get so you can install packages. 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. (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. 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. Sometimes, in pressure situations, I can shoot it out of my toes. 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 With Andrew Roth, Laurel Schroeder, Eric Bryant, Chad Eric Smith. 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.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.ħ35 # regex matching client name ħ36 # acl aclname dstdom_regex \.foo\.com …ĩ68 # Example rule allowing access from your local networks.ĩ69 # Adapt to list your (internal) IP networks from where browsingĩ71 #acl localnet src 10.0.0.0/8 # RFC1918 possible internal networkĩ72 #acl localnet src 172.16.0.0/12 # RFC1918 possible internal networkĩ73 #acl localnet src 192.168.0.Just adding some more and clear steps to and answers. ħ33 # Destination server from URL ħ34 # acl aclname srcdom_regex \.foo\.com. (xx:xx:xx:xx:xx:xx notation)ħ31 # reverse lookup, from client IP ħ32 # acl aclname dstdomain.

# IP address the client connected to ħ17 # acl aclname arp mac-address. # URL host's IP address ħ15 # acl aclname localip ip-address/mask. # range of addresses ħ14 # acl aclname dst ip-address/mask. # clients IP address ħ13 # acl aclname src addr1-addr2/mask. Skipping profile in /etc/apparmor.d/disable: ħ12 # acl aclname src ip-address/mask. Processing triggers for ureadahead (0.100.0-19). Processing triggers for systemd (229-4ubuntu21.16). Processing triggers for libc-bin (2.23-0ubuntu10). Selecting previously unselected package squid. Selecting previously unselected package ssl-cert. Selecting previously unselected package squid-common. Selecting previously unselected package squid-langpack. 160684 files and directories currently installed.) Selecting previously unselected package libecap3:amd64. Libecap3 squid squid-common squid-langpack ssl-certĠ upgraded, 5 newly installed, 0 to remove and 64 not upgraded.Īfter this operation, 10.9 MB of additional disk space will be used.

The following NEW packages will be installed: Squidclient squid-cgi squid-purge smbclient ufw winbindd openssl-blacklist Libecap3 squid-common squid-langpack ssl-cert

The following additional packages will be installed: DoneThe following packages were automatically installed and are no longer required:linux-headers-4.4.0-141 linux-headers-4.4.0-141-generic linux-image-4.4.0-141-genericUse 'apt autoremove' to remove them. DoneBuilding dependency treeReading state information. Next, at the terminal prompt, enter the following command to install the Squid ~]# apt install squid Get:1 xenial-security InRelease Hit:2 xenial InReleaseHit:3 xenial InReleaseGet:4 xenial-updates InRelease Get:5 xenial-backports InRelease Fetched 325 kB in 0s (567 kB/s)Reading package lists.
