Bug 1211673

Summary: [RFE] Backport Match LocalAddress from OpenSSH 6.1 (and later)
Product: Red Hat Enterprise Linux 6 Reporter: Pat Riehecky <riehecky>
Component: opensshAssignee: Jakub Jelen <jjelen>
Status: CLOSED ERRATA QA Contact: Eva Mrakova <emrakova>
Severity: unspecified Docs Contact: Tomas Capek <tcapek>
Priority: high    
Version: 6.6CC: csieh, cww, emrakova, jlyle, misterbonnie, plautrba, riehecky, salmy, szidek
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openssh-5.3p1-113.el6 Doc Type: Enhancement
Doc Text:
The *LocalAddress* and *LocalPort* keywords are now supported for *Match* conditions in *sshd_config* Systems connected to several physical networks might require different access policies. With this update, you can enforce different policies for different local addresses or ports directly in *sshd_config*, without the need to run several services with different configuration files.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-10 19:28:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1172231    
Attachments:
Description Flags
Rebased upstream patch none

Description Pat Riehecky 2015-04-14 14:53:36 UTC
Description of problem:
OpenSSH 6.1 adds an additional Match condition set for LocalAddress and LocalPort

Can these conditions be backported to RHEL6?

Version-Release number of selected component (if applicable):openssh-5.3p1-104.el6_6.1


How reproducible:100%


Steps to Reproduce:
1.Look to use Match LocalAddress
2.
3.

Actual results:
feature not present

Expected results:
this is a backport request, so this feature - while useful - was not originally present within the 5.3 release.

Additional info:
http://www.openssh.com/txt/release-6.1

Comment 2 Jakub Jelen 2015-04-15 08:52:56 UTC
Thank you for taking time to fill this feature request. We appreciate the feedback and look to use reports such as this to guide our efforts at improving our products.
But this bug tracking system is not a mechanism for requesting support. Please, raise a ticket through your regular Red Hat Support to achieve correct attention and prioritization. Pushing new features requires appropriate business justification.

Comment 3 Jakub Jelen 2015-08-25 12:01:10 UTC
Please, connect with your regular support if it is still actual for you. Now moving to the next release.

Comment 4 Pat Riehecky 2015-08-25 13:25:25 UTC
I will reach out to those folks.

Comment 6 Jakub Jelen 2015-11-11 13:22:09 UTC
Created attachment 1092713 [details]
Rebased upstream patch

Rebased patch for our version from these upstream commits (with upstream test case):

    https://anongit.mindrot.org/openssh.git/commit/?id=fbcf827559b38f7992e1bd0bcdc4b4ccdf63bc74
    https://anongit.mindrot.org/openssh.git/commit/?id=301390316cf73fc50d769691ed7f95c21ea6646a

Upstream testsuite passes on my testing build. I think we can cover also this one in the next release. The patch is not large, makes the Match handling more transparent and doesn't look like breaking anything.

Comment 11 errata-xmlrpc 2016-05-10 19:28:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-0741.html