From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jose Luis Domingo Lopez Date: Thu, 30 Jan 2003 22:07:50 +0000 Subject: Re: [LARTC] Mark packets based on nexthop? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Wednesday, 29 January 2003, at 14:35:41 +0200, Anton Yurchenko wrote: > is there a patch or a way to mark packets with IPtables marking based on > the nexthop for the packet? > You can mark packets on the FORWARD chain (mangle table), based on the outgoing interface (there should be a one-to-one association of outgoing interface to nexthop IP). iptables -t mangle -A FORWARD --out-interface eth0 --jump MARK --set-mark 1 Hope it helps. -- Jose Luis Domingo Lopez Linux Registered User #189436 Debian Linux Sid (Linux 2.4.20-xfsip) _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/