From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Simon Lodal" Subject: Re: Automatic forwarding to own interfaces Date: Tue, 23 Sep 2003 08:23:06 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <200309230823.AA53674022@mirrormind.com> Reply-To: Mime-Version: 1.0 Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: netfilter@lists.netfilter.org >That's a "normal" Linux behaviour. Linux answers packets destined to any >of its own IPs own any interface, as long as your INPUT filtering rules >allows it. You can set something like : > > iptables -A INPUT -d 192.168.1.5 -i ! eth1 -j DROP > iptables -A OUTPUT -s 192.168.1.5 -o ! eth1 -j DROP Hmm... I was afraid this was the case. So in the common small scale setup with one box acting as router, firewall and internal web and smtp server, this is an absolute must. Or your "internal" web and smtp services will in fact be open to anyone. So what is the point in configuring daemons to listen only on specific addresses? This is probably a surprise to some, as it is to me. Quite a few firewall packages and setups miss this point. Simon