½Ã½ºÅÛ»ó¿¡¼ ARP ÆÐŶ¿¡ ´ëÇÑ ÇÊÅ͸µ ¼³Á¤ÀÔ´Ï´Ù.
MAC Ư¼º»ó µ¿ÀÏ ½ºÀ§Ä¡¿¡¼¸¸ ¹ß»ýµÇ´Â ÁÖ¼Ò¸¸ Â÷´ÜµË´Ï´Ù.
arptables v0.0.8
Usage: arptables -[AD] chain rule-specification [options]
arptables -[RI] chain rulenum rule-specification [options]
arptables -D chain rulenum [options]
arptables -[LFZ] [chain] [options]
arptables -[NX] chain
arptables -E old-chain-name new-chain-name
arptables -P chain target [options]
arptables -h (print this help information)
Commands:
Either long or short options are allowed.
--append -A chain Append to chain
--delete -D chain Delete matching rule from chain
--delete -D chain rulenum
Delete rule rulenum (1 = first) from chain
--insert -I chain [rulenum]
Insert in chain as rulenum (default 1=first)
--replace -R chain rulenum
Replace rule rulenum (1 = first) in chain
--list -L [chain] List the rules in a chain or all chains
--flush -F [chain] Delete all rules in chain or all chains
--zero -Z [chain] Zero counters in chain or all chains
--new -N chain Create a new user-defined chain
--delete-chain
-X [chain] Delete a user-defined chain
--policy -P chain target
Change policy on chain to target
--rename-chain
-E old-chain new-chain
Change chain name, (moving any references)
Options:
--source -s [!] address[/mask]
source specification
--target -d [!] address[/mask]
destination specification
--arhln -a [!] length[/mask]
hardware address length
--source-hw -z [!] address[/mask]
source hardware address
--target-hw -y [!] address[/mask]
target hardware address
--arhln -a [!] length[/mask]
Hardware address length
--arpop -p [!] operation[/mask]
ARP operation
--arhrd -h [!] hrd[/mask]
ARP hardware address
--arpro -w [!] plen[/mask]
ARP protocol address format
--in-interface -i [!] input name[+]
network interface name ([+] for wildcard)
--jump -j target
target for rule (may load target extension)
--numeric -n numeric output of addresses and ports
--out-interface -o [!] output name[+]
network interface name ([+] for wildcard)
--table -t table table to manipulate (default: `filter')
--verbose -v verbose mode
--line-numbers print line numbers when listing
--exact -x expand numbers (display exact values)
--modprobe=<command> try to insert modules using this command
--set-counters PKTS BYTES set the counter during insert/append
[!] --version -V print package version.
Standard v0.0.8 options:
(If target is DROP, ACCEPT, RETURN or nothing)
mangle target v0.0.8 options:
--mangle-ip-s IP address
--mangle-ip-d IP address
--mangle-hw-s hardware (MAC) address
--mangle-hw-d hardware (MAC) address
--mangle-target target (DROP, CONTINUE or ACCEPT -- default is ACCEPT)
EX)
[root@mojily ~]# arptables -A IN -i eth1
[root@mojily ~]# arptables -nL
Chain IN (policy ACCEPT)
target source-ip destination-ip source-hw destination-hw hlen op hrd pro
0.0.0.0/0 0.0.0.0/0 00/00 00/00 any 0000/0000 0000/0000 0000/0000
Chain OUT (policy ACCEPT)
target source-ip destination-ip source-hw destination-hw hlen op hrd pro
Chain FORWARD (policy ACCEPT)
target source-ip destination-ip source-hw destination-hw hlen op hrd pro