On Wed, 2007-01-31 at 15:36 -0500, James Colby wrote:
> List members -
> 
> I have a small home server that I have connected to the internet
> through a linksys router and cable modem.  The linksys router is
> currently forwarding all ssh traffic to my gentoo box.  What I would
> like to do is set up iptables to only allow ssh logins from a small
> number of internet hosts, and to reject and log all other ssh
> attempts.  Can someone please help me out with this.  All of the
> tutorials and documentation that I have found are setting up a fully
> functioning firewall / NAT / proxy, and I think that is a little
> overkill for my needs.s

If you don't want the whole iptables suite you might want to consider
good ole hosts.allow/hosts.deny as an alternative.  They work fine with
sshd if you have tcpwrappers enabled.


-- 
gentoo-user@gentoo.org mailing list

Reply via email to