ssh and port redirection...

Marc Nozell marc at nozell.com
Thu Jul 10 10:53:45 EDT 2003


On Thu, Jul 10, 2003 at 09:49:40AM -0400, pll at lanminds.com wrote:
> regardless of destination IP?
> 
> For example, I don't have a direct net connection on my laptop, but 
> my server at home does.  I don't have the time to set up iptables to 
> do this correctly, and I want to surf the web.  Can I do something 
> like:
> 
> 	ssh -L 8080:*:80 server
> 
> and have all port 80 requests go to port 8080 on localhost?
> Thanks,

This is simpler than wrestling with iptables.


1) Run squid on your homeserver (port 3128 by default)
2) Configure your web browser to use the proxy on localhost:8080 for 
   http/https/ftp
3) Create a ssh tunnel from localhost:8080 to homeserver:3128
   (ssh -f -C -L 8080:127.0.0.1:3128 -l pll homeserver sleep 7200)
4) Profit! Er, browse!

-marc
--
Marc Nozell <marc at nozell.com>		http://www.nozell.com/blog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20030710/2334adba/attachment.bin


More information about the gnhlug-discuss mailing list