Mark packets based on nexthop?
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/
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/