List rules with line numbers:
iptables -L INPUT --line-numbers
Add rule: (replace 10 with line number)
iptables -I INPUT 10 -s 192.168.1.100 -j ACCEPT
Save changes:
service iptables save
Categorieën
UNIX