Delete the rules in iptables – Clear/Remove iptables rules.
Before you do general cleaning in iptables Make sure you know how to configure it according to your needs.
Clear Centos/Debian iptables rules .

The following command lines in the order below:
1. iptables -P INPUT ACCEPT
2. iptables -P FORWARD ACCEPT
3. iptables -P OUTPUT ACCEPT
4. iptables -F
5. iptables -X
6. iptables -t nat -F
7. iptables -t nat -X
8. iptables -t mangle -F
9. iptables -t mangle -X
iptables –help :
-P (policy) = chain target
–flush -F [chain] Delete all rules in chain or all chains
-table -t table table to manipulate (default: `filter’)
-X [chain] Delete a user-defined chain
Delete the rules in iptables – Clear/Remove iptables rules.
What’s New
About Stealth L.P.
Founder and editor Stealth Settings, din 2006 pana in prezent. Experienta pe sistemele de operare Linux (in special CentOS), Mac OS X , Windows XP > Windows 10 si WordPress (CMS).
View all posts by Stealth L.P.You may also be interested in...
How to configure Fail2Ban for WordPress (wp-login, xmlrpc)
See how you can install and configure Fail2Ban for WordPress. Secure WordPress authentication and xmlrpc.php.
[Rezolvare] The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG
Fix upgrade or update error: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key.
How we replace firewalld with iptables on Centos 7
Attacks with bots and malware applications on websites are the order of the day, and the companies that offer security solutions are still...
How to set “nano” editor text default, in locul “vim” or another editor
Daca esti utilizator novice de Linux, cel mai indemana editor text, este cu siguranta "nano". In acest tutorial o sa inveti cum setezi ...
Upgrade PHP 5.1.x la PHP 5.3 pe CentOS 5.6
Most CMSs, including WordPress, have as a minimum requirement to install a newer version of PHP 5.1.x on the web server. In ...
How to change mysql root password to Linux (SSH)
If you are in the situation where you want to change the root password of MySQL in Linux, from this tutorial you will learn step by step how you can do this...
How to establish SSH connection to a virtual server (Centos) installed on VirtualBox.
After seeing how CentOS can be installed on VirtualBox (tutorial), we will try to see how we can connect via SSH (via putty)...
FIX PROBLEM : Your server is running PHP version 5.1.6 but WordPress 3.2.1 requires at least 5.2.4.
Not everyone knows that in order to install or upgrade to a newer version of WordPress 3.2, it is necessary to...
Enable & Setup mod_rewrite in Apache/2.2.3 (CentOS) Server (httpd.conf settings)
After I installed LAMP on a LAN web server (CentOS 5.6 / Apache 2), I noticed that although the mod_rewrite module is activated, the pages...
Installation and Setup Centos 5.6 on VirtualBox (Windows 7, Vista & Windows XP)
VirtualBox (Oracle VM VirtualBox) is an application that allows us to create several virtual machines (virtual computers...
Create USB Bootable Stick with Centos/Redhat 5.x (ISO2UB) installation image
In some older tutorials I showed how to create and install Windows 7 and Windows XP from a USB Stick (Memory Stick) - tutorial ...
Installation and Setup Proftpd on Centos 5.x
ProFTPD is the most used FTP server software, especially by those who use cPanel/WHM.
In the default package, CentOS...
One thought on “Delete the rules in iptables – Clear/Remove iptables rules.”