Will this work?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux