This repo is obsolete, please see git://git.code.sf.net/p/dummynet/code@master
[ipfw.git] / ipfw / add_rules
1 #!/bin/bash
2 #
3 # A test script to add rules
4
5 PRG=./ipfw
6
7 myfun() {
8         $PRG add 10 count icmp from any to 131.114.9.128
9         $PRG add 20 count icmp from 131.114.9.128 to any
10         $PRG add 20 count icmp from any to 131.114.9.130
11         $PRG add 30 count icmp from 131.114.9.130 to any
12         $PRG add 40 count icmp from any to 131.114.9.129
13         $PRG add 50 count icmp from 131.114.9.129 to any
14         $PRG add 60 count icmp from 131.114.9.236 to any
15         sleep 1
16         $PRG del 10
17         $PRG del 20
18         $PRG del 20
19         $PRG del 30
20         $PRG del 40
21         $PRG del 50
22         $PRG del 60
23 }
24
25 for ((i=0;i<100;i++)) ; do
26         myfun
27 done