Posts tagged as:

iptables

How Do I Block An IP Address On Linux Server ?

by lifeLinux on January 31, 2012

I run CentOS on my server, and I often find that my server is being attacked by other computers. Brute force SSH attacks, port scanning, viruses scanning for the ability to spread, things like that. In this article, I’ll show you how to block an IP address on Linux server using IPTables.

{ 0 comments }

By default iptables firewall stores its configuration at /etc/sysconfig/iptables file. Type the following command to see its # cat /etc/sysconfig/iptables

{ 0 comments }

How To Save/Restore Iptables Rules

by lifeLinux on May 18, 2011

Save Iptables rules Rules created with the iptables command are stored in memory. If the system is restarted before saving the iptables rule set, all rules are lost. To save netfilter rules, type the following command as root: # /etc/init.d/iptables save

{ 0 comments }

Iptables should be installed by default on all CentOS 3.x, 4.x and 5.x installations. You can check to see if iptables is installed on your system by: # rpm -q iptables

{ 0 comments }

Anti SYN Flood with IPTables

by lifeLinux on April 21, 2011

#!/bin/sh # A simple shell to build a Firewall anti SYN Flood # Under CentOS, Fedora and RHEL / Redhat Enterprise Linux # servers. # —————————————————————————- # Written by LongVNIT # (c) 2009 lifeLinux under GNU GPL v2.0+ IPT=”iptables” MODPROBE=”modprobe” IF=”eth0″ IP=”192.168.1.112″ PORT=”22 80 443″ CHECK_TIME=60 BAN_TIME=120 HITCOUNT=10 MOD=”ip_tables ip_conntrack iptable_filter ipt_state” # Load Module […]

{ 1 comment }