Re: ssh as proxy?

James Miller
2005-02-16T03:47:56Z

On Tue, 15 Feb 2005, Eric Bambach wrote:

> Yep, you're 95% of the way there.
> Instead of the -L option try the -D option. This works to circumvent IRC
> restrictions for me in school ;)
> Im not too well read on ssh forwarding so I dont know the technical difference
> between them, but it seems -D will get you by just fine at least for web.
>
> Open console, type ssh -l username -D6667 mysshserver.com
>
> Then ssh will act as a socks4/socks5 proxy. Set up application appropriately
> and it will go!

Thanks for the feedback. I'm looking for ways to test this out, and in
order to do so I need to be able to close all ports on the test machine
except 443. Is there some comand(s) I can issue that would do this? This
would be on a workstation, Debianish machine without any sort of firewall
running. Short of a command(s), what would be the simplest way to
accomplish this port blocking for testing purposes? Is there a system-wide
config I could edit?

Thanks, James