Administration tool for IPv4 firewall rules
iptables -A {append} -C {check} -D {delete} -D {delete-2} -I {insert} ๐ append ๐ check ๐ delete ๐ delete-2 ๐ insert iptables -A {append} -C {check} -D {delete} -D {delete-2} -I {insert} Sandbox: execFile · Timeout: 30s
network.firewall.iptables | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
append | string | No | - | Append to chain | -A, --append |
check | string | No | - | Check for the existence of a rule | -C, --check |
delete | string | No | - | Delete matching rule from chain | -D, --delete |
delete-2 | string | No | - | Delete rule rulenum (1 = first) from chain | -D, --delete |
insert | string | No | - | Insert in chain as rulenum (default 1=first) | -I, --insert |
replace | string | No | - | Replace rule rulenum (1 = first) in chain | -R, --replace |
list | string | No | - | [chain [rulenum]] | --list |
list-rules | string | No | - | Print the rules in a chain or all chains | -S, --list-rules |
flush | string | No | - | Delete all rules in chain or all chains | -F, --flush |
zero | string | No | - | [chain [rulenum]] | --zero |
new | string | No | - | chain Create a new user-defined chain | --new |
delete-chain | string | No | - | [chain] Delete a user-defined chain | --delete-chain |
policy | string | No | - | Change policy on chain to target | -P, --policy |
rename-chain | string | No | - | old-chain new-chain Change chain name, (moving any references) | --rename-chain |
ipv4 | string | No | - | Nothing (line is ignored by ip6tables-restore) | --ipv4 |
ipv6 | string | No | - | Error (line is ignored by iptables-restore) | --ipv6 |
jump | string | No | - | target | --jump |
goto | string | No | - | chain | --goto |
match | string | No | - | match | --match |
numeric | integer | No | - | numeric output of addresses and ports | --numeric |
table | string | No | filter | table table to manipulate | --table |
verbose | string | No | - | verbose mode | --verbose |
wait | number | No | - | [seconds] maximum wait to acquire xtables lock before give up | --wait |
line-numbers | string | No | - | print line numbers when listing | --line-numbers |
exact | string | No | - | expand numbers (display exact values) | --exact |
modprobe | string | No | - | try to insert modules using this command | --modprobe |
set-counters | string | No | - | set the counter during insert/append | -c, --set-counters |
E | boolean | No | - | -E, -chain, -chain | |
X | boolean | No | - | chain | -X, -defined |
Basic usage with append
iptables ${append} Display help message
iptables --help iptables is a command-line utility for administration tool for ipv4 firewall rules.
iptables -A {append} -C {check} -D {delete} -D {delete-2} -I {insert}