From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pascal Hambourg Subject: Re: no ssh on eth0 Date: Sun, 30 Jul 2006 14:37:22 +0200 Message-ID: <44CCA802.2090403@plouf.fr.eu.org> References: <1154239260.5429.2.camel@nirvana.aurokruti.in> <87fygje700.fsf@newton.gmurray.org.uk> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: netfilter@lists.netfilter.org Hello, Jan Engelhardt a =E9crit : >>> >>>I want to prevent ssh on eth0. >>> >>>Howto do it ? >> >>iptables -I INPUT -i eth0 -p tcp --dport 22 -j DROP If the goal is to prevent *incoming* SSH connections on eth0. > If > eth0 10.0.0.1 > eth1 192.168.222.3 > then > /etc/ssh/sshd_config: >=20 > ListenAddress 192.168.222.3 This alone is not enough to prevent connections on eth0. You can connect=20 to any host address on any interface. E.g. connect to eth1 address on=20 eth0 interface and vice versa.