Skip to content

Instantly share code, notes, and snippets.

@boina-n
Last active October 24, 2018 13:21
Show Gist options
  • Save boina-n/5b48bf81485555047b58f0ed419737ba to your computer and use it in GitHub Desktop.
Save boina-n/5b48bf81485555047b58f0ed419737ba to your computer and use it in GitHub Desktop.
internet_over_ssh.txt
#For Concourse VM
ssh [email protected] -g -R \*:60001:localhost:8080
ssh -i .ssh/[email protected] -g -R \*:8081:0.0.0.0:60001
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 127.0.0.1:8081
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j DNAT --to 127.0.0.1:8081
curl -x http://localhost:3128 -L pivotal.io -v |head
curl -x http://localhost:3128 -L google.Com -v
#apt.conf
##add this for apt to use the proxy : \
Acquire::http::Proxy "http://localhost:3128";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment