-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iptables: clarify usage and add additional common options (#2208)
- Loading branch information
1 parent
4a2d83c
commit 827eb62
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ | |
|
||
> Program that allows configuration of tables, chains and rules provided by the Linux kernel firewall. | ||
- See chains and rules for specific table: | ||
- View chains, rules, and packet/byte counters for all tables: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
navarroaxel
Member
|
||
|
||
`sudo iptables -t {{table_name}} -vnL` | ||
`sudo iptables -vnL` | ||
|
||
- Set chain policy rule: | ||
|
||
|
@@ -22,6 +22,10 @@ | |
|
||
`sudo iptables -D {{chain}} {{rule_line_number}}` | ||
|
||
- Save iptables configuration: | ||
- Save iptables configuration of a given table to a file: | ||
|
||
`sudo iptables-save > {{path/to/iptables_file}}` | ||
`sudo iptables-save -t {{tablename}} > {{path/to/iptables_file}}` | ||
|
||
- Restore iptables configuration from a file: | ||
|
||
`sudo iptables-restore < {{path/to/iptables_file}}` |
correction here: should be "for 'filter' table" instead of "for all tables"