

The following command that corresponds with the distribution you are running in your machine. You need to upgrade your Linux system and install the required xtables-addons dependencies. If it doesn’t find one,Īlso, with the help of a module called xt_geoip, which consists of an iptablesĮxtension ( xtables-addon) and the GeoIP database, we can performĬountry-based traffic filtering to help block or allow the trafficįrom a specific country. Iptables looks for a matching rule in its list. When a connection tries to establish itself on your system, Iptables is a command-line firewall utility that uses policy chains to allow Mapped with the IP addresses allocated for a specific organization, city, GeoIP is a collection of IP addresses corresponding with the geographical locations PrerequisitesĮnsure that the GeoIP module is installed with iptables-addons. Use it to prevent DOS and DDoS attacks originating from certain countries. Such as by using the GeoIP database and Linux® iptables. This article describes how to block traffic originating from specific country IPs,
