Re: OpenSSH dynamic port forwarding
- From: "Nico Kadel-Garcia" <nkadel@xxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 09:12:40 -0400
gnomee wrote:
Hi guys,
I have this problem. At work I am behind firewall but there is a
server that's outside out trusted network. Thing is, that I cannot
connect to this server (called "server2") directly, I have to do it
through another server (called "server1"). I managed to set static
port forwarding for IRC for example.
ssh -f -L 5551:localhost:5551 user@server1 ssh -f -L
5551:localhost:5551 user@server2 ssh -f -N -L
5551:efnet.demon.co.uk:6667 user@localhost
Then if I connect to localhost:5551 in my IRC client, it is forwarded
to efnet.demon.co.uk:6667. This works just fine. Problem is how to set
connection for FTP or BitTorrent, which use more than one port. Is
possible to set Dynamic Port Forwarding (ssh -D port ...) same way as
this static port forwarding? Through two servers?
I'd really appreciate some tips.
Thanks a lot.
Peter
Talk to your local IT staff about opening up a hole for you for FTP or
Bittorrent. Seriously, if this is their security policy, I'm reluctant to
help you start poking holes in it, and you should be cautious about doing it
let you demonstrate that you're so sharp, you're cutting yourself. They may
have actually have real policies for being this uptight: I've previously
been asked to set up a site's firewalls in such a way to prevent outgoing
FTP to avoid people exporting private internal documents, or using work's
wonderful bandwidth for loading up their MP3 libraries, and if I had opened
up an external SSH port for you in such a situation and noticed from the
bandwidth logs that you were channeling in big amounts of data, I'd be upset
with you.
I've not tried to do exactly what you're asking to do, so I'm not sure it
will work well. But why not do the downloads to the external machine, then
grab them with scp or sftp or rsync when the transfer is complete?
.
- Follow-Ups:
- Re: OpenSSH dynamic port forwarding
- From: Nico Kadel-Garcia
- Re: OpenSSH dynamic port forwarding
- References:
- OpenSSH dynamic port forwarding
- From: gnomee
- OpenSSH dynamic port forwarding
- Prev by Date: OpenSSH dynamic port forwarding
- Next by Date: Re: OpenSSH dynamic port forwarding
- Previous by thread: OpenSSH dynamic port forwarding
- Next by thread: Re: OpenSSH dynamic port forwarding
- Index(es):
Relevant Pages
|
|