From Fedora Project Wiki

QA.png


Description

this case test the basic functions of arptables, show rules and change rules


How to test

1. Add an arptables rule (append the rule at the end of the table)

 # arptables -A INPUT -i eth1 -j DROP

2. insert an arptables rule before all of the currect rules

 # arptables -I INPUT -i eth0 -j ACCEPT

3. Dump arptables rules

 # arptables -L 

4. dump the rules with statistics

 # arptables -L -n -v

5. Delete the arptables rule with specified number, delete the second number of arptables for example

 # arptables -D INPUT 2

6. create your own chain and then jump to this chain

 # arptables -N MYCHAIN
 # arptables -A INPUT -i eth1 -j MYCHAIN

Expected Results

  1. no error happens when run above commands