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: Limiting SSH reverse tunnels? |
|---|---|
| Date: | Mon, 03 Oct 2005 11:13:40 -0700 |
Chris Jensen wrote:
Having said that, TCP Forwarding (number 2) can be disabled with the AllowTcpForwarding option in the servers sshd_config. The style employed by 1 and 3, is harder to prevent, you can try using something like rssh or scponly to restrict the shell so that they can't execute the tunnelling programs, or you can try locking down the server - make sure they can't write to /bin directories, and make anywhere they can write (eg /tmp, /home, /var) non executable (mount -o noexec)
However, I would strongly recommend trying to deal with this as a people problem rather than a technical one - if they've figured out how to tunnel, they may well figure out another way once you lock down tunnelling. If this is a security issue then take it to management and ask them to treat it appropriately, reprimanding people where necissary for breaching the policy.
As the sshd_config man page says: Note that disabling TCP forwarding does not improve security unless users are also denied shell access, as they can always install their own forwarders.
Regards, Chris
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Problem compiling OpenSSH 4.2p1 on Tru64 UNIX 4.0F, Eric Liszka |
|---|---|
| Next by Date: | Re: howto port forward w/out remote session?, Conrad Schilbe |
| Previous by Thread: | Re: Limiting SSH reverse tunnels?, Chris Jensen |
| Next by Thread: | Re: Limiting SSH reverse tunnels?, Leif Nixon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |