Remove rule from iptables
Check for a chain and line number you like to deleteiptables -L -n --line-numbers
Remove from chainiptables -D < chain > < line number >
If all correct, save iptablesiptables-save
Check for a chain and line number you like to deleteiptables -L -n --line-numbers
Remove from chainiptables -D < chain > < line number >
If all correct, save iptablesiptables-save
Quick notes into firewall
Basic command definitioniptables -A -i < interface > -p < protocol (tcp/udp) > -s < source > --dport < port no. > -j < target >
Check current iptables rullesiptables -L -v
Check iptables and their particular traffic
iptables -L -v
How to remove record from fail2ban database
Find chain/rule name with IP addressiptables -L -n
Find jailnamefail2ban-client status
iptables guifwbuilder
see ip tablesiptables -L
use: write a script some-settings.sh & runsh +x some-settings.sh
If u need to block a particular IP address within a linux firewall, than this command
iptables -A INPUT -s 65.55.44.100 -j DROP
remove rule from iptablesiptables -D INPUT -s 65.55.44.100 -j DROP
check iptablesiptables -S