Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2019-09-14,master
commit fbaa5a2317b3e1109473fa021a0cad45964323c3 Author: Sven Eckelmann sven@narfation.org Date: Sun Mar 3 19:36:23 2019 +0000
doc: batman-adv/Extended-isolation: don't reference deprecated sysfs files
fbaa5a2317b3e1109473fa021a0cad45964323c3 batman-adv/Extended-isolation.textile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/batman-adv/Extended-isolation.textile b/batman-adv/Extended-isolation.textile index 7aeaff7..32f8f42 100644 --- a/batman-adv/Extended-isolation.textile +++ b/batman-adv/Extended-isolation.textile @@ -22,8 +22,6 @@ With these commands, all the the packets coming in through _eth1_ will be marked
The next step it is to configure batman-adv properly, meaning that the user must tell the kernel module which is the value to match in the _skb->mark_ field when detecting isolated clients. <pre> -# echo 6/0xffffffff >/sys/devices/virtual/net/bat0/mesh/isolation_mark -or # batctl isola 0x06/0xFFFFFFFF # VALUE/MASK </pre>
@@ -49,12 +47,12 @@ h3. How to drop broadcast traffic Following the example reported in the previous sections, a set of tc commands can help to drop all the broadcast packets having been marked with a given fwmark: <pre> # tc qdisc add dev eth1 root handle 1: prio -# tc qdisc add dev eth1 parent 1:3 handle 30: netem loss 100%25 +# tc qdisc add dev eth1 parent 1:3 handle 30: netem loss 100% # tc filter add dev eth1 parent 1:0 protocol all prio 1 handle 6 fw classid 1:3 </pre>
With this instructions two task are accomplished: -# a netem queue is created telling to drop 100%25 of the packets entering it +# a netem queue is created telling to drop 100% of the packets entering it # a filter rule is added in order to redirect all the traffic matching the specified mark to the netem queue.
Note that _tc_ is used instead of iptables because the latter would only be able to work on frames carrying IPv4/6 packets, while in this case the target is the entire traffic.