iptables

Program that allows configuration of tables, chains and rules provided…

iptables

Program that allows configuration of tables, chains and rules provided by the Linux kernel firewall.

sudo iptables -t {{table_name}} -vnL

sudo iptables -p {{chain}} {{rule}}

sudo iptables -A {{chain}} -s {{ip}} -j {{rule}}

sudo iptables -A {{chain}} -s {{ip}} -p {{protocol}} --dport {{port}} -j {{rule}}

sudo iptables -D {{chain}} {{rule_line_number}}

sudo iptables-save > {{path/to/iptables_file}}

Также может быть вам интересно:
LinuxFreeBSDТрюки BashТерминал/Консоль
← ipset isoinfo →