daggs at gmx.com
2014-Apr-27 18:30 UTC
right match rule for port and address in sshd_config
Greetings, I want to create a set of rules that will be in affect when I connection originates from outside of my local lan (internet) and on a specific port, this is what I've wrote: Match LocalPort 11111, Address *,!10.0.0.0/24 but when I start ssh, I get this error: Invalid LocalPort '11111,' on Match line /etc/ssh/sshd_config line 176: Bad Match condition why is that? how can I solve it? Thanks.
On 27 Apr 2014 14:30, <daggs at gmx.com> wrote:> > Greetings, > > I want to create a set of rules that will be in affect when I connectionoriginates from outside of my local lan (internet) and on a specific port, this is what I've wrote:> Match LocalPort 11111, Address *,!10.0.0.0/24Try removing the trailing comma after the port number.