iptables-ebtables
| Newsgroups | gmane.linux.network.bridge.ebtables.user |
|---|---|
| Message-ID | <[email protected]> |
Hi I like to build a Qos by mixing iptables-ebtables.Here is one of my scripts: ifconfig eth0 0.0.0.0 up brctl addbr breth0 brctl addif breth0 eth0 ifconfig breth0 192.168.4.1 up iptables -t mangle -N new_output iptables -t mangle -A POSTROUTING -o breth0 -m physdev --physdev-out eth0 -j new_output iptables -t mangle -A new_output -d 192.168.4.2 -j MARK --set-mark 19 ebtables -t nat -A POSTROUTING --logical-out breth0 --mark 19 -d 00:01:4A:05:F0:E6 -j mark --set-mark 20 tc qdisc add dev eth0 root handle 1: htb default 26 tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbit tc class add dev eth0 parent 1:1 classid 1:20 htb rate 100kbit ceil 200kbit prio 0 tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10 tc filter add dev eth0 parent 1:0 prio 0 protocol ip handle 20 fw flowid 1:20 I could use ebtables also for the destination ip but i need iptables for more advanced marking (layer7 etc).The problem is that ebtables rule seems not to match the mark from iptables.It works without the mark match but not with this.I think that for no bridged packets breth0 POSTROUTING chain comes after iptables POSTOROUTING chain so i used this order.Is it legal to try to change a mark? Thanks a lot. ---------------------------------------------------- This mail was sent through http://my.ceid.upatras.gr ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click