From Fedora Project Wiki

(Created page with "{{header|qa}} {{QA/Test_Case | description=this case test the basic functions of arptables, show rules and change rules |actions= 1. Add an arptables rule (append the rule at...")
 
No edit summary
 
Line 26: Line 26:
# no error happens when run above commands
# no error happens when run above commands
}}
}}
[[Category:package_arptables_test_cases]]

Latest revision as of 07:13, 6 November 2018

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