From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Mail List - Netfilter <netfilter@lists.netfilter.org>
Subject: Re: not [!] rule is not working
Date: Thu, 16 Aug 2007 17:07:39 +0200 [thread overview]
Message-ID: <46C4683B.3090702@plouf.fr.eu.org> (raw)
In-Reply-To: <46C46195.9070500@riverviewtech.net>
Hello,
Grant Taylor a écrit :
> On 08/16/07 00:56, pankaj jain wrote:
>
>>I have a machine with 3 interfaces
>>eth0: 10.19.0.102 mask (255.255.255.0)
>>eth1: 10.19.1.102 mask (255.255.255.0)
>>eth2: 10.29.51.102 mask (255.255.255.0)
> >
>>all three are connected in a same switch (no vlans configured). I
>>want arp requests to be responded by the associated interface only,
>>and not by other interfaces.
[...]
> Hum. I would not think that you even needed the ARPTables rules to
> prevent the wrong interface from responding to an ARP request for
> another IP.
The default behaviour is to reply on any interface for any local
address. It can be changed on a per-interface basis with the kernel
parameter /proc/sys/net/ipv4/conf/<interface>/arp_ignore. Definitions
and values are in Documentation/networking/ip-sysctl.txt :
arp_ignore - INTEGER
Define different modes for sending replies in response to
received ARP requests that resolve local target IP addresses:
0 - (default): reply for any local target IP address, configured
on any interface
1 - reply only if the target IP address is local address
configured on the incoming interface
2 - reply only if the target IP address is local address
configured on the incoming interface and both with the
sender's IP address are part from same subnet on this interface
3 - do not reply for local addresses configured with scope host,
only resolutions for global and link addresses are replied
4-7 - reserved
8 - do not reply for all local addresses
The max value from conf/{all,interface}/arp_ignore is used
when ARP request is received on the {interface}
next prev parent reply other threads:[~2007-08-16 15:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-14 6:45 not [!] rule is not working pankaj jain
2007-08-14 10:48 ` Gáspár Lajos
2007-08-14 12:28 ` pankaj jain
2007-08-14 14:24 ` Grant Taylor
2007-08-14 14:27 ` Grant Taylor
2007-08-14 14:36 ` Grant Taylor
2007-08-16 5:56 ` pankaj jain
2007-08-16 14:39 ` Grant Taylor
2007-08-16 15:07 ` Pascal Hambourg [this message]
2007-08-16 15:27 ` Grant Taylor
2007-08-16 21:47 ` Franck Joncourt
2007-08-17 8:09 ` pankaj jain
2007-08-17 13:54 ` Grant Taylor
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=46C4683B.3090702@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