PDA

View Full Version : Banning ips



Reus
9th September 2016, 22:15
Hello !

guys someone is adding bots in my server , server become full 64/64

how can i ban his ip from my vps?


what i should write in putty to ban his ip , and he cannot acces to servers or websites with my vps's ip , thx :)

mirzony
9th September 2016, 22:25
iptables -A INPUT -s xxx.xxx.xxx.xxx -j DROP

Reus
9th September 2016, 22:42
thank uuuuu ^^

and to unbann what is the command please?:)

kung foo man
10th September 2016, 03:32
iptables -D INPUT -s xxx.xxx.xxx.xxx -j DROP

Instead of -D you can use --delete as well

Also, if you like a post, just press the Thanks button lol

Reus
10th September 2016, 13:41
big thanks to you dude but i don't understand XDDDDDDDDDDDD :p !
ban command : iptables -A INPUT -s xxx.xxx.xxx.xxx -j DROP
unbann command :

write for me unbann command again please mate!:)

Reus
10th September 2016, 13:55
iptables --delete INPUT -s xxx.xxx.xxx-j DROP



this command doesn't work lol , help guys :D
to remove a ban

Ni3ls
10th September 2016, 14:37
Xx.xx.xx is the ip...

Reus
10th September 2016, 15:13
i know dude i'm not an asshole. :)
but iptables --delete INPUT -s xxx.xxx.xxx-j DROP
for this putty doesn't respond , unknown command or something like that

Mitch
10th September 2016, 15:25
i know dude i'm not an asshole. :)
but iptables --delete INPUT -s xxx.xxx.xxx-j DROP
for this putty doesn't respond , unknown command or something like that

Try switching to root (su) or using sudo iptables ...

Reus
10th September 2016, 15:41
okay mitch thank you :P

IzNoGoD
10th September 2016, 16:57
you seem to put no space between the ip and the -j. Put a space.

Reus
11th September 2016, 00:25
ah ok dude :)