ebtables -P OUTPUT ACCEPT
ebtables -P FORWARD ACCEPT
ebtables -F
ebtables -A FORWARD -p ipv4 --ip-dst xx.xx.xx.xx -i eth0 -j mark --set-mark 1 --mark-target CONTINUE --log-ip
ebtables -A FORWARD -p ipv4 --ip-dst yy.yy.yy.yy -i eth0 -j mark --set-mark 2 --mark-target CONTINUE --log-ip
I see in log packet when is marked. But I cant see packet in correct class .
tc:
tc qdisc
del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default
30
tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbit burst 15k
tc class
add dev eth0 parent 1:1 classid 1:10 htb rate 500kbit burst 15k
tc class add
dev eth0 parent 1:1 classid 1:20 htb rate 400kbit burst 15k
tc class add dev
eth0 parent 1:1 classid 1:30 htb rate 100kbit
tc qdisc add dev eth0
parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth0 parent 1:20
handle 20: sfq perturb 10
tc qdisc add dev eth0 parent 1:30 handle 30:
pfifo
tc filter
add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid 1:10
tc filter
add dev eth0 parent 1: protocol ip prio 3 handle 2 fw classid
1:20
Any advice ?
thanks