Send UDP packets with size > MTU to force packet fragmentation
[platform/core/test/security-tests.git] / src / nether-tests / setup-nether-tests-nns.sh
index 32273cb..6ddf174 100644 (file)
@@ -29,6 +29,8 @@ ip netns exec $1 ifconfig lo 127.0.0.1
 ip netns exec $1 ifconfig veth1 10.1.0.2 netmask 255.255.255.252
 ip netns exec $1 route add -net 224.0.0.0 netmask 224.0.0.0 veth1
 
+# force mtu size (we want to test that Nether's rules can deal with fragmentation)
+ifconfig veth0 mtu 1500
 ifconfig veth0 10.1.0.1 netmask 255.255.255.252
 route add -net 224.0.0.0 netmask 240.0.0.0 veth0