From: Willy Tarreau Subject: Re: [PATCH] Nexthop match Date: Sun, 23 Nov 2003 12:03:54 +0100 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20031123110354.GA23247@alpha.home.local> References: <18729960090.20031123024241@alarit.com> <20031123082906.GB23141@alpha.home.local> <373135098.20031123124741@alarit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@lists.netfilter.org Return-path: To: Igor Fuks Content-Disposition: inline In-Reply-To: <373135098.20031123124741@alarit.com> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org On Sun, Nov 23, 2003 at 12:47:41PM +0200, Igor Fuks wrote: > >> > >> iptables -A OUTPUT -m nexthop --nexthop 10.1.1.5 -s 10.1.10.0/24 -j DROP > >> > >> Means stations in 10.1.10.0/24 net will have not connectivity via 10.1.1.5 > >> neighbour. > > WT> It should have been in POSTROUTING or FORWARD for this, isn't it ? > > It works for POSTROUTING, FORWARD and OUTPUT. Sorry, I meant that the above rule only matches locally generated packets (OUTPUT), which is a bit in contradiction with the comment 'stations in...'. > WT> Does it also match packets going TO the gateway, or only packets routed > WT> THROUGH the gateway ? > > Not only THROUGH, it match packets going TO the gateway(s) too. Thanks for this clarification. Regards, Willy