[CentOS] OT: closing a port on home router

Sun Sep 13 00:23:14 UTC 2015
Scott Robbins <scottro at nyc.rr.com>

On Sat, Sep 12, 2015 at 04:26:09PM -0700, John R Pierce wrote:
> On 9/12/2015 4:16 PM, Fred Smith wrote:


> >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.
> 
> inbound ports that aren't forwarded are closed by default on most
> any/all NAT routers, unless the router itself is listening to said
> port.

Isn't there any sort of portforwarding thing?  Such as forward port 2222 (I
wouldn't use that one, it's too common, but as an example) to 192.168.1.5,
and then have 192.168.1.5 listen on port 2222?  Then have a firewall rule
to allow access on that port and edit /etc/ssh/sshd_config to listen on
2222 instead of 22.

Looking at
http://nextgendigitalhome.com/1829/home-network/scalable-gateway/the-asus-rt-n16-router-firmware-part-4-advanced-wan-settings/
it seems as if it would allow this and it's described in the section WAN
Virtual Server/Port Fowarding.


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6