Tag: iptables

Simple SSH bruteforce prevention using iptables

Since I like to learn more about scripting, I decided to write my own SSH bruteforce prevention script instead of installing a plug-and-play tool. You can run the script manually or have it run every hour or so using crontab. As root, create a new directory for the script and files, name it for example […]

How to block IP and Ports with IPtables

How to block IP and/or Ports with IPtables under Linux? Blocking an incoming port First you have to know the port number which you want to block, for a list of port numbers you can use /etc/services as a reference. The syntax is as follow (make sure you are root or have root privileges): # […]

Ads

Ads