Skip to contentSkip to conversation

Will this work?

LARTC Sorin Panca 1 participant 1 message Nov 24, 2005

lore
Share & tools
lore
#0 lore raw

Hi people! Will this filter work?

# the traffic for MAN - match IP & MARK
$tc filter add dev $EXT1 parent 1: protocol ip prio 0 handle 0x1 fw u32
match ip src $IP flowid 1:B$hIP
$tc filter add dev $INT1 parent 1: protocol ip prio 0 handle 0x1 fw u32
match ip dst $IP flowid 1:B$hIP
# the traffic for Internet - match IP only (what is left after MAN filter)
$tc filter add dev $EXT1 parent 1: protocol ip prio 0 u32 match ip src
$IP flowid 1:C$hIP
$tc filter add dev $INT1 parent 1: protocol ip prio 0 u32 match ip dst
$IP flowid 1:C$hIP

# $hIP is the last byte of the IP address, written in hexa
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc