X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=ipfw%2Fadd_rules;fp=ipfw%2Fadd_rules;h=1f90c75727b6ea30ae32800a45432226d9fd4c7b;hb=1c3dc9f45532c25adc21f297422f0f5a7420b8ca;hp=0000000000000000000000000000000000000000;hpb=1b35833989100dd8cac70db6d29748006023aeba;p=ipfw.git diff --git a/ipfw/add_rules b/ipfw/add_rules new file mode 100755 index 0000000..1f90c75 --- /dev/null +++ b/ipfw/add_rules @@ -0,0 +1,25 @@ +#!/bin/bash + +PRG=./ipfw + +myfun() { + $PRG add 10 count icmp from any to 131.114.9.128 + $PRG add 20 count icmp from 131.114.9.128 to any + $PRG add 20 count icmp from any to 131.114.9.130 + $PRG add 30 count icmp from 131.114.9.130 to any + $PRG add 40 count icmp from any to 131.114.9.129 + $PRG add 50 count icmp from 131.114.9.129 to any + $PRG add 60 count icmp from 131.114.9.236 to any + sleep 1 + $PRG del 10 + $PRG del 20 + $PRG del 20 + $PRG del 30 + $PRG del 40 + $PRG del 50 + $PRG del 60 +} + +for ((i=0;i<100;i++)) ; do + myfun +done