Introduction Nginx comes with a nifty module that allows us to allow or deny access to directories served by the webserver. The module is named ngx_http_access_module to allow or deny access to IP address. The syntax can look as follows:…
Category: Secure your VPS
Java Security Settings
Debian – See all SSH login attempts
Easy add IP to be blocked by iptables
A question was asked over at www.lowendtalk.com on how to add ip addresses to iptables from a textfile. AnthonySmith found a simple but still effective way to solve this. The entry that were discussed was
1 2 |
iptables -A INPUT -s XXX.XXX.XXX.XXX -p udp -m udp --dport 28960:28965 -j DROP |
Let’s break it all…