All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Mark packets based on nexthop?
@ 2003-01-29 12:35 Anton Yurchenko
  2003-01-30 22:07 ` Jose Luis Domingo Lopez
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Yurchenko @ 2003-01-29 12:35 UTC (permalink / raw)
  To: lartc

hello,

is there a patch or a way to mark packets with IPtables marking based on 
  the nexthop for the packet?

Thnks
-- 

Anton Yurchenko<phila@dg.net.ua>
Digital Generation

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Mark packets based on nexthop?
  2003-01-29 12:35 [LARTC] Mark packets based on nexthop? Anton Yurchenko
@ 2003-01-30 22:07 ` Jose Luis Domingo Lopez
  0 siblings, 0 replies; 2+ messages in thread
From: Jose Luis Domingo Lopez @ 2003-01-30 22:07 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-30 22:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-29 12:35 [LARTC] Mark packets based on nexthop? Anton Yurchenko
2003-01-30 22:07 ` Jose Luis Domingo Lopez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.