From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HCTBk-0003cl-SC for garchives@archives.gentoo.org; Thu, 01 Feb 2007 04:04:45 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id l1143XLB000594; Thu, 1 Feb 2007 04:03:33 GMT Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id l113wgvt027072 for ; Thu, 1 Feb 2007 03:58:42 GMT Received: (qmail invoked by alias); 01 Feb 2007 03:58:41 -0000 Received: from unknown (EHLO smtp.bensa.ar) [200.125.122.55] by mail.gmx.net (mp043) with SMTP; 01 Feb 2007 04:58:41 +0100 X-Authenticated: #9792705 Received: from venkman.bensa.ar (venkman.bensa.ar [192.168.1.200]) by smtp.bensa.ar (Postfix) with ESMTP id 5A4AD20FB00; Thu, 1 Feb 2007 00:58:36 -0300 (ART) From: Norberto Bensa To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] IPtables question Date: Thu, 1 Feb 2007 00:58:35 -0300 User-Agent: KMail/1.9.6 References: In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5716928.sUhX54XOR1"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200702010058.35787.nbensa@gmx.net> X-Y-GMX-Trusted: 0 X-Archives-Salt: 01f11c09-3167-4fa2-aa56-ae3b77bf2b78 X-Archives-Hash: 72204eb97d60623d408610f2f2c082ee --nextPart5716928.sUhX54XOR1 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline James Colby wrote: > 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,=20 iptables -A INPUT -s ip-address-of-know-host --dport 22 -j ACCEPT > and to reject and log all other ssh=20 > attempts. =20 iptables -A INPUT --dport 22 -j LOG iptables -A INPUT --dport 22 -j REJECT Regards, Norberto --nextPart5716928.sUhX54XOR1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (GNU/Linux) iD8DBQBFwWVruW4an9W1spIRAml7AJ0XPe34R0gtra4u1Kd9yHCCu2RKSwCgkulB zFvvJRn0BOS2kq0C4XLMs2U= =EdE7 -----END PGP SIGNATURE----- --nextPart5716928.sUhX54XOR1-- -- gentoo-user@gentoo.org mailing list