Skip to contentSkip to conversation

Mark packets based on nexthop?

LARTC Anton Yurchenko 2 participants 2 messages Jan 29, 2003 – Jan 30, 2003

lore
Share & tools
lore
#0 lore raw

hello,

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

Thnks

Signature · 6 lines
Anton Yurchenko<[email protected]>
Digital Generation

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw
Quoted 3 lines · Anton Yurchenko

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.

Signature · 5 lines
Jose Luis Domingo Lopez
Linux Registered User #189436     Debian Linux Sid (Linux 2.4.20-xfsip)
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/