it just wont work...
I want to block an ip-adress from accessing my webserver via WAN, since he's being refreshing a single page over 600 times a day the last 5 days
I tried the following things:
andiptables -D INPUT -s 1.1.1.1 -j DROP
these are from some google results, but that french guy is still refreshing!iptables -A INPUT -s 1.1.1.1 -j DROP
don't really have another clue how to ban him off, since I opened up port 80... so making an exeption?
full post firewall now:
can someone help me out?#!/bin/sh
iptables -D INPUT -j DROP
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
#rtorrent
iptables -I INPUT 1 -p tcp -i "$1" --syn --dport 51777:51780 -j ACCEPT
iptables -I INPUT 1 -p udp -i "$1" --dport 6881 -j ACCEPT
#block bad ip-adresses
iptables -D INPUT -s 91.121.111.28 -j DROP
iptables -A INPUT -j DROP![]()






Reply With Quote