Tunnel Web Browsing to Remote Server over SSH

So I want to be able to test web access from outside our network. On my private server I have Squid running on port 3128 so:

ssh -L 3128:localhost:3128 jonny@myprivateserver.com

Then I can configure Firefox (with FoxyProxy) to use localhost port 3128 as a proxy. Then on the private server tail the squid access log

tail -f /var/log/squid/access.log

to check it is working.
To go that little step further it would also be possible to tunnel the DNS calls too with:

ssh -L 53:localhost:53 jonny@myprivateserver.com

Then edit /etc/resolv.conf adding my new DNS server:

nameserver 127.0.0.1

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>