How to block an IP address

Menù di navigazione
  • Home
  • Contacts
HOME | Index |

How to block an IP address

How to block a specific IP address



To block a specific IP address first make sure IPTables is running:

/etc/init.d/iptables restart

Then add the following rule:

/sbin/iptables -A INPUT --source 1.2.3.4 -j DROP

assuming that 1.2.3.4 is the IP address to block.

Labs
  • CentOS + BlueQuartz
  • Installing Spamassassin ClamAv and Mailscanner on Bluequartz
  • SARE Rules & RulesDuJour
  • Installing MRTG
  • Mass Change IP
  • CCED problems
  • Deleting old logfiles
  • POP3 problems
  • Recalculate Quotas
  • How to block an IP address
  • NAMED and DNS
  • PHP
  • Enabling safe mode per-directory
  • Howto install php4 & php5 on Apache2
  • Linux
  • Automating Mysql backups
  • Restoring MySQL dumps
  • Replacing Text In Files
  • Firefox and flash on x86_64
  • Find user's files
  • Lines of code
  • Vsftp with virtual users
  • MSN
  • RandomCase

Home | Contacts | E.R.WEB Official Site