Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: How to restrict remote forwarding ports in SSH2? |
|---|---|
| Date: | Wed, 29 Nov 2006 11:01:02 -0700 |
You're quite right. Netcat is included in most unices (to get full bidirectional port forwarding, you would actually need two shell commands & a pipeline). Socat is quite a bit more versatile, and would do the forward in a single command. I think it's available by default in some unices, and should compile on nearly anything you're likely to encounter.
Netcat is of course also available as a Windows binary, although doing a bidirectional port forward is a bit trickier (does anyone know how to do the equivalent of mkfifo in Windows?).
Cheers Mark
If I understand what you're asking, it's probably worth pointing out that it's already possible to do this kind of port redirection in general with TCP/IP without dealing with SSH's port redirection... there's not much you can do to prevent it. Anyone capable of writing socket code in C can write a program to redirect any port to anywhere in maybe a couple of dozen lines. ... Someone's probably already written a free program to do this kind of port redirection, which can be downloaded freely. It might even have pre-comiled binaries for your platform(s).>
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Disabling sshd's account lock check, Brian McNally |
|---|---|
| Next by Date: | Re: Disabling sshd's account lock check, Lamont Granquist |
| Previous by Thread: | Re: How to restrict remote forwarding ports in SSH2?, Derek Martin |
| Next by Thread: | Disabling sshd's account lock check, Brian McNally |
| Indexes: | [Date] [Thread] [Top] [All Lists] |