--- Ben Timby <[EMAIL PROTECTED]> wrote:

> Hello, I am using openssh 4.5_p1.
> 
> Is there a way to detect on an sshd server when a
> client has requested
> port forwarding?

You can use lsof.  ie:

# lsof -ni |grep ssh

This will return a bunch of processes/ports, including
the destination and source ports being forward, and
who is doing the forwarding.

An example of what might be returned:

sshd    8455 turk182   10u  IPv4 3087293       TCP
10.16.0.11:45052->10.16.0.12:80 (ESTABLISHED)

User turk182 is building a port forward where the
source is 10.16.0.12, port 80.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to