[Bug 1552] New: Patch to log tunnel information

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sat Jan 31 08:20:54 EST 2009


https://bugzilla.mindrot.org/show_bug.cgi?id=1552

           Summary: Patch to log tunnel information
           Product: Portable OpenSSH
           Version: 5.1p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: sshd
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: jblaine at kickflop.net


First, all credit to Vladimir Parkhaev as this is his code.  He may
have
submitted this before for all I know, but I for one definitely would
like
to see this end up in the codebase, so I'm submitting it.

*** openssh-5.1p1/serverloop.c  Fri Jul  4 09:10:49 2008
--- openssh-5.1p1-RCFHACKS/serverloop.c Thu Jan 29 08:56:11 2009
***************
*** 957,962 ****
--- 957,968 ----
        c = channel_connect_to(target, target_port,
            "direct-tcpip", "direct-tcpip");

+     if (c == NULL){
+         verbose("Tunnel denied: user '%s' from %s to %s:%d",
the_authctxt->user, get_remote_ipaddr(), target, target_port);
+     } else {
+         verbose("Tunnel opened: user '%s' from %s to %s:%d",
the_authctxt->user, get_remote_ipaddr(), target, target_port);
+     }
+
        xfree(originator);
        xfree(target);

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list