The command to block a single IP is: iptables -I INPUT -s 211.1.0.0 -j The command for the DROP IP segment is: iptables -I INPUT -s 211.1.0.0/16 -j DROPiptables -I INPUT -s 211.2. 0.0/16 -j DROPiptables -I INPUT -s 211.3.0.0/16 -j DROP The command to seal the entire segment is: iptables -I INPUT -s 211.0.0.0/8 -j DROP The command for several segments is: iptables - I INPUT -s 61.37.80.0/24 -j DROPiptables -I INPUT -s 61.37.81.0/24 -j DROP 80 port: iptables -I INPUT -p tcp –dport 80 -s 124.115.0.0/24 -j DROP Unblocked words: iptables -D INPUT -s IP address -j REJECTiptables -F Cleared off If you want to boot automatically to block an IP, then edit the /etc/sysconfig/iptables file, add a line -I INPUT -s IP The address -j DROP then executes /etc/init.d/iptables restart to restart iptables.
DevOps is the key to more and more large companies and organizations, so it is important for us to r
For the daily use of the Linux system, it is necessary to use the command line to carry out, for ex
The linux shell has its own set of flow control statements, including conditional statements (if),
With Windows for a long time, it will inevitably start to lack freshness, so some people will try to
Modify IP, DNS and other network configurations under Linux operating system
Convert DOS batch files to shell scripts
Linux VI command interpretation
CentOS installs X Window with yum
Waiting queue implementation in Linux system
Linux shell logical operators, logical expressions detailed
Linux gcc and gdb simple operation command
Linux shell flow control (condition if, loop [for, while], select [case] statement instance
Serial communication study notes under Linux operating system
Why use a standard account instead of managing
What if the game cannot be full screen under Win7?
Setting method of Ruijie identity authentication software under Win7 platform
How to use the voice control that comes with Win8?
How does Win10 convert files to PDF for easy reading
Have you met? The 10 most prone to PC disasters (8)
Win8/8.1 view and delete wireless network configuration method
Solve the Windows Server 2008 System process occupying 80 ports