Re: OT: closing a port on home router

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, Sep 13, 2015 at 4:46 AM, Fred Smith
<fredex@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi all!
>
> I'm wanting to close port 22 (ssh) on my home router, and I don't see any
> facilities in its GUI for doing that.
>

man sshd_config; this option is perhaps your solution "ListenAddress."
 So explicitly mention your LAN port(s).

<quote>
ListenAddress
             Specifies the local addresses sshd(8) should listen on.
The following forms may be used:

                   ListenAddress host|IPv4_addr|IPv6_addr
                   ListenAddress host|IPv4_addr:port
                   ListenAddress [host|IPv6_addr]:port

             If port is not specified, sshd will listen on the address
and all prior Port options specified.  The
             default is to listen on all local addresses.  Multiple
ListenAddress options are permitted.  Addition-
             ally, any Port options must precede this option for
non-port qualified addresses.
</quote>

HTH
-- Arun Khan
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux