Bug 1233 - "Tunnel" should pass device-name to "LocalCommand"
Summary: "Tunnel" should pass device-name to "LocalCommand"
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: -current
Hardware: All All
: P2 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_7_7
  Show dependency treegraph
 
Reported: 2006-09-18 22:22 AEST by h.goebel
Modified: 2021-04-23 14:55 AEST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description h.goebel 2006-09-18 22:22:06 AEST
"Tunnel" should pass the name of the used to "LocalCommand". This would allow things like:

  LocalCommand /sbin/ifup %d
Comment 1 Damien Miller 2007-06-22 15:19:32 AEST
Fair point - I'll look at this once the tunnel forwarding bugs are fixed, so my diffs don't collide.
Comment 2 Daniel Kahn Gillmor 2010-07-20 06:22:18 AEST
This could also be implemented by resolving #1766, and letting LocalCommand read the OpenSSH_tunnel environment variable.
Comment 3 Damien Miller 2011-01-24 12:30:45 AEDT
Retarget unclosed bugs from 5.7=>5.8
Comment 4 Damien Miller 2011-09-06 10:34:09 AEST
Retarget unresolved bugs/features to 6.0 release
Comment 5 Damien Miller 2011-09-06 10:36:24 AEST
Retarget unresolved bugs/features to 6.0 release
Comment 6 Damien Miller 2011-09-06 10:38:57 AEST
Retarget unresolved bugs/features to 6.0 release

(try again - bugzilla's "change several" isn't)
Comment 7 Damien Miller 2012-02-24 10:34:17 AEDT
Retarget from 6.0 to 6.1
Comment 8 Damien Miller 2012-02-24 10:37:55 AEDT
Retarget 6.0 => 6.1
Comment 9 Damien Miller 2012-09-07 11:37:39 AEST
Retarget uncompleted bugs from 6.1 => 6.2
Comment 10 Damien Miller 2012-09-07 11:40:05 AEST
Retarget bugs from 6.1 => 6.2
Comment 11 Damien Miller 2013-03-08 10:23:13 AEDT
retarget to openssh-6.3
Comment 12 Damien Miller 2013-07-25 12:17:13 AEST
Retarget to openssh-6.4
Comment 13 Damien Miller 2013-07-25 12:20:03 AEST
Retarget 6.3 -> 6.4
Comment 14 Damien Miller 2014-02-06 10:17:28 AEDT
Retarget incomplete bugs / feature requests to 6.6 release
Comment 15 Damien Miller 2014-02-06 10:19:16 AEDT
Retarget incomplete bugs / feature requests to 6.6 release
Comment 16 Damien Miller 2014-04-12 14:49:09 AEST
Retarget to 6.7 release, since 6.6 was mostly bugfixing.
Comment 17 Damien Miller 2014-04-12 14:54:46 AEST
Remove from 6.6 tracking bug
Comment 18 Damien Miller 2014-08-30 04:38:13 AEST
Retarget incomplete bugs to 6.8 release.
Comment 19 Damien Miller 2014-08-30 04:40:02 AEST
These bugs are no longer targeted at the imminent 6.7 release
Comment 20 Damien Miller 2015-03-03 07:59:13 AEDT
OpenSSH 6.8 is approaching release and closed for major work. Retarget these bugs for the next release.
Comment 21 Damien Miller 2015-03-03 08:01:42 AEDT
Retarget to 6.9
Comment 22 Damien Miller 2015-08-11 22:59:22 AEST
Retarget pending bugs to openssh-7.1
Comment 23 gsomlo 2017-10-23 05:02:16 AEDT
I noticed the last update on this bug is from 2015. I recently tested
a patch in this thread:

https://lists.mindrot.org/pipermail/openssh-unix-dev/2017-October/036318.html

... and it seemed to work quite well. Any chance that patch could be
pushed upstream anytime soon?
Comment 24 Damien Miller 2017-10-23 16:27:23 AEDT
This is in -current and will be in OpenSSH 7.7

commit b7548b12a6b2b4abf4d057192c353147e0abba08
Author: djm@openbsd.org <djm@openbsd.org>
Date:   Mon Oct 23 05:08:00 2017 +0000

    upstream commit
    
    Expose devices allocated for tun/tap forwarding.
    
    At the client, the device may be obtained from a new %T expansion
    for LocalCommand.
    
    At the server, the allocated devices will be listed in a
    SSH_TUNNEL variable exposed to the environment of any user sessions
    started after the tunnel forwarding was established.
    
    ok markus
    
    Upstream-ID: e61e53f8ae80566e9ddc0d67a5df5bdf2f3c9f9e
Comment 25 Damien Miller 2021-04-23 14:55:47 AEST
closing resolved bugs as of 8.6p1 release