IPtables Flashcards
1
Q
Dump iptables (with counters) rules to stdout
A
iptables-save -c >
2
Q
Restore iptables rules
A
iptables-restore
3
Q
List all iptables rules with affected and line numbers
A
iptables -L -v –line-numbers
4
Q
Flush all iptables rules
A
iptables -F
5
Q
Change default policy for rules that don’t match rules
A
iptables -P
6
Q
Allow established connection on INPUT
A
iptables -A INPUT -i -m state –state RELATED,ESTABLISHED -j ACCEPT
7
Q
Delete 7th inbound rule
A
iptables -D INPUT 7
8
Q
Increase throughput by turning off statefullness
A
iptables -t raw -L -n
9
Q
Drop all packets
A
iptables -P INPUT DROP