help with negative patterns in Match

Christoph Anton Mitterer calestyo at scientia.net
Tue Feb 24 12:28:25 AEDT 2015


On Tue, 2015-02-24 at 10:15 +1100, Damien Miller wrote: 
> otherwise you need to have at least one matching term in the predicate, e.g.
> Match User foo LocalAddress *,!10.0.0.1,!fe80:abba::0
Ah,.. great :) Thanks a lot, that did the trick.


> > Also, it seems that hostnames can generally not be used with
> > LocalAddress,.. is this expected? Cause that would be kinda nice.
Well the nice part about that would be that one can use a hostname,
which is e.g. set in /etc/hosts something like:
1.2.3.4  eth0.localhost
and use that in the ListenAddress and e.g. Match patterns.

Now when the host moves to another address, all one has to do is
exchange one entry in /etc/hosts, instead of many in other places =)


Cheers,
Chris. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5313 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20150224/b861ef79/attachment-0001.bin>


More information about the openssh-unix-dev mailing list