Re: Logging port forwarding

From: Darren Tucker (dtucker_at_gate.dodgy.net.au)
Date: 11/27/05

  • Next message: Nico Kadel-Garcia: "Re: issue with name resolution"
    Date: 27 Nov 2005 11:07:30 GMT
    
    

    On 2005-11-25, Witold Rugowski <witold.rugowski@hp.com> wrote:
    > I'm trying to figure out wheter on OpenSSH is simple way to log all
    > opened forwarded connenctions via ssh. I'm thinking about something like
    > "Event log" in putty, but server-side:
    >
    > 2005-11-24 12:03:18 Opening forwarded connection to 10.x.x.x:3389
    > 2005-11-24 12:07:26 Forwarded port closed
    >
    > This is required to allow matching network activity with user accounts
    > on ssh host. In system log on ssh host there are no traces of such
    > logging... Is this possible at all without patching sshd code ?

    Connection establishment is logged at level "debug1", so setting "LogLevel
    DEBUG1" or higher in sshd_config will put in in syslog (along with a
    bunch of other stuff). Not sure if it connection termination will be
    logged, though.

    Note that if you're using it for audit purposes, it's possible to bypass
    it with a user-run forwarder, eg "ssh yourhost nc remotehost 22".

    If your OS has some kind of kernel-level accounting you might want to
    investigate that.

    -- 
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
        Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.
    

  • Next message: Nico Kadel-Garcia: "Re: issue with name resolution"

    Relevant Pages

    • RE: RE : RE : X11Forwarding problem on Solaris.
      ... The program is using the display environment variable. ... First i use ssh to connect from node2 to node4 and then I start the PROGRAM ... debug1: Connection established. ... Subject: RE: RE: X11Forwarding problem on Solaris. ...
      (SSH)
    • Solaris->Fedora6 unidirectional problem
      ... I have a strange unsolved unidirectional problem using ssh from Solaris to Fedora6: ... I have a couple FC6 behind the Solaris boxes ... debug2: fd 4 setting O_NONBLOCK ... debug1: fd 4 clearing O_NONBLOCK ...
      (SSH)
    • [SLE] Slow SSH login
      ... A> ssh B ... second delay no matter the authentication mechanism ... debug1: Authentication succeeded. ...
      (SuSE)
    • UPDATE2: SSH problem to Solaris 10 : Resource temporarily unavailable]
      ... I truss-ed the client ssh call and managed to identify the exact ... debug1: Rhosts Authentication disabled, originating port will not be trusted. ... debug1: We proposed langtags, ctos: en-US ...
      (SunManagers)
    • Problems with passwordless ssh/scp (W2K client , Solaris 8 server).
      ... configuration for the ssh client and server. ... The SSH server configuration is a pretty standard configuration (Solaris ... Rhosts Authentication disabled, ... debug1: Connection established. ...
      (SSH)