for list of parameters visit Iptables command options and parameters on linux
To find your network interface run the following command:
in the bellow examples the network interface eth0
Display the List of currently configured iptables rules:
To clear all the currently configured iptables rules, you can issue the flush command:
To Block connection from Specific ip-address run the command for example block ip 1.1.1.0:
To Block SSH connection from Specific ip-address run the command for example block ip 1.1.1.0:
Allow Incoming SSH only from a Sepcific Network as example allow ssh connection from 192.168.1.x network:
Ping iptables rules:
Allow Ping from Outside to Inside
Allow Ping from Inside to Outside
Allow All Incoming HTTP and HTTPS:
Allow MySQL connection only from a specific IP-address:
Allow outbound DNS:
iptables rule will help you prevent the Denial of Service (DoS) attack on your webserver:
Saving iptables Changes:
The changes that you make to your iptables rules will be revoked next time that the iptables service restarted unless you execute a command to save the changes. This command can differ depending on your distribution Linux os:
Each failover IP address will need its own line in the configuration file. The configuration…
What is mdadm? The mdadm utility can be used to create and manage storage arrays…
There are several scenarios that you might need to increase or decrease your php maximum…
What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…
Python normally installed on all cPanel hosting server because most of Centos/red hat update system…
Usually CentOS 7 comes in a numbers of variants, For most users, there are two…