Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@lists.netfilter.org
Subject: Re: no ssh on eth0
Date: Sun, 30 Jul 2006 14:37:22 +0200	[thread overview]
Message-ID: <44CCA802.2090403@plouf.fr.eu.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0607301343450.23827@yvahk01.tjqt.qr>

Hello,

Jan Engelhardt a écrit :
>>>
>>>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:
> 
> 	ListenAddress 192.168.222.3

This alone is not enough to prevent connections on eth0. You can connect 
to any host address on any interface. E.g. connect to eth1 address on 
eth0 interface and vice versa.


  reply	other threads:[~2006-07-30 12:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-30  6:01 no ssh on eth0 varun
2006-07-30 10:12 ` Graham Murray
2006-07-30 11:44   ` Jan Engelhardt
2006-07-30 12:37     ` Pascal Hambourg [this message]
     [not found]       ` <facccfbd353e38901017e6dee5a54a99@former03.de>
     [not found]         ` <44CCE712.4070907@plouf.fr.eu.org>
2006-07-30 17:17           ` former03 | Baltasar Cevc
2006-07-30 20:04             ` Pascal Hambourg
2006-07-30 22:57               ` former03 | Baltasar Cevc
2006-07-31 13:44                 ` Pascal Hambourg
2006-07-31 15:51                   ` former03 | Baltasar Cevc
     [not found]                     ` <44CE7878.2020007@rtij.nl>
2006-07-31 21:54                       ` former03 | Baltasar Cevc
2006-08-02 14:15             ` varun
2006-07-30 10:41 ` Michael Weinert
2006-07-31 15:29   ` varun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44CCA802.2090403@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.org \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox