mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 12:55:32 +02:00
arptables: add page (#16197)
* arptables: add page * arptables: update link to comply with man page link policy Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * arptables: use option placeholder for list example Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * arptables: update append rule example Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pages/linux/arptables.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pages/linux/arptables.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pages/linux/arptables.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pages/linux/arptables.md Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> --------- Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
ae436c1b00
commit
3abe273c94
1 changed files with 29 additions and 0 deletions
29
pages/linux/arptables.md
Normal file
29
pages/linux/arptables.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# arptables
|
||||
|
||||
> Manage ARP filtering rules using the `nftables` backend.
|
||||
> Part of the `xtables-nft` suite for ARP packet filtering.
|
||||
> More information: <https://manned.org/arptables>.
|
||||
|
||||
- List all ARP rules in the filter table:
|
||||
|
||||
`sudo arptables {{[-L|--list]}}`
|
||||
|
||||
- Append a rule to drop ARP packets from a specific IP address:
|
||||
|
||||
`sudo arptables {{[-A|--append]}} INPUT {{[-s|--source-ip]}} {{192.168.0.1}} {{[-j|--jump]}} DROP`
|
||||
|
||||
- Delete a specific rule from the INPUT chain by its rule number:
|
||||
|
||||
`sudo arptables {{[-D|--delete]}} INPUT {{rule_number}}`
|
||||
|
||||
- Flush all rules in the filter table:
|
||||
|
||||
`sudo arptables {{[-F|--flush]}}`
|
||||
|
||||
- Set the default policy of the OUTPUT chain to ACCEPT:
|
||||
|
||||
`sudo arptables {{[-P|--policy]}} OUTPUT ACCEPT`
|
||||
|
||||
- Save the current ARP rules to a file:
|
||||
|
||||
`sudo arptables-save > {{path/to/file}}`
|
Loading…
Add table
Reference in a new issue