Linux Iptables: Add / Delete An IP Address Remotely Using A Shell Script

Posted on in Categories , , , , , , , , last updated October 22, 2009

I’ve root ssh access and need to add / delete a few IP address on fly using the IPtables command via local shell script. How do I add or delete an IP address remotely over the SSH session under CentOS / Redhat / RHEL / Debian / Ubuntu Linux?