View Full Version : Banning ips
Reus
9th September 2016, 21: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, 21:25
iptables -A INPUT -s xxx.xxx.xxx.xxx -j DROP
Reus
9th September 2016, 21:42
thank uuuuu ^^
and to unbann what is the command please?:)
kung foo man
10th September 2016, 02: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, 12: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, 12: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, 13:37
Xx.xx.xx is the ip...
Reus
10th September 2016, 14: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, 14: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, 14:41
okay mitch thank you :P
IzNoGoD
10th September 2016, 15:57
you seem to put no space between the ip and the -j. Put a space.
Reus
10th September 2016, 23:25
ah ok dude :)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.