Tenho meu servidor hospedado na CarbonHost e recebo ataques direto de IPs estrangeiros, jб procurei tutoriais de como bloquear IPs estrangeiros mais nenhum deu certo, jб usei o search e tambйm nгo achei um tutorial que ainda esteja funcionando, alguйm que manja em mexer com VPS pode me ajudar? (detalhe: sou meio novato em mexer com VPS)
|
iptables -N RANGE iptables -A RANGE -j DROP iptables -A RANGE -s 177.0.0.0/8 -j ACCEPT iptables -A RANGE -s 179.0.0.0/8 -j ACCEPT iptables -A RANGE -s 186.0.0.0/8 -j ACCEPT iptables -A RANGE -s 187.0.0.0/8 -j ACCEPT iptables -A RANGE -s 189.0.0.0/8 -j ACCEPT iptables -A RANGE -s 200.0.0.0/8 -j ACCEPT iptables -A RANGE -s 201.0.0.0/8 -j ACCEPT iptables -A RANGE -s 131.0.0.0/8 -j ACCEPT iptables -A RANGE -s 136.0.0.0/8 -j ACCEPT iptables -A RANGE -s 152.0.0.0/8 -j ACCEPT iptables -A RANGE -s 136.0.0.0/8 -j ACCEPT iptables -A RANGE -s 191.0.0.0/8 -j ACCEPT iptables -A RANGE -s 8.8.8.8 -j ACCEPT iptables -A RANGE -s 8.8.8.4 -j ACCEPT iptables -I INPUT -j RANGE
Tente as regras abaixo:
Код:
iptables -N RANGE iptables -A RANGE -j DROP iptables -A RANGE -s 177.0.0.0/8 -j ACCEPT iptables -A RANGE -s 179.0.0.0/8 -j ACCEPT iptables -A RANGE -s 186.0.0.0/8 -j ACCEPT iptables -A RANGE -s 187.0.0.0/8 -j ACCEPT iptables -A RANGE -s 189.0.0.0/8 -j ACCEPT iptables -A RANGE -s 200.0.0.0/8 -j ACCEPT iptables -A RANGE -s 201.0.0.0/8 -j ACCEPT iptables -A RANGE -s 131.0.0.0/8 -j ACCEPT iptables -A RANGE -s 136.0.0.0/8 -j ACCEPT iptables -A RANGE -s 152.0.0.0/8 -j ACCEPT iptables -A RANGE -s 136.0.0.0/8 -j ACCEPT iptables -A RANGE -s 191.0.0.0/8 -j ACCEPT iptables -A RANGE -s 8.8.8.8 -j ACCEPT iptables -A RANGE -s 8.8.8.4 -j ACCEPT iptables -I INPUT -j RANGE |
Tente as regras abaixo:
Код:
iptables -N RANGE iptables -A RANGE -j DROP iptables -A RANGE -s 177.0.0.0/8 -j ACCEPT iptables -A RANGE -s 179.0.0.0/8 -j ACCEPT iptables -A RANGE -s 186.0.0.0/8 -j ACCEPT iptables -A RANGE -s 187.0.0.0/8 -j ACCEPT iptables -A RANGE -s 189.0.0.0/8 -j ACCEPT iptables -A RANGE -s 200.0.0.0/8 -j ACCEPT iptables -A RANGE -s 201.0.0.0/8 -j ACCEPT iptables -A RANGE -s 131.0.0.0/8 -j ACCEPT iptables -A RANGE -s 136.0.0.0/8 -j ACCEPT iptables -A RANGE -s 152.0.0.0/8 -j ACCEPT iptables -A RANGE -s 136.0.0.0/8 -j ACCEPT iptables -A RANGE -s 191.0.0.0/8 -j ACCEPT iptables -A RANGE -s 8.8.8.8 -j ACCEPT iptables -A RANGE -s 8.8.8.4 -j ACCEPT iptables -I INPUT -j RANGE |