Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Banning ips

  1. #1
    Private Reus's Avatar
    Join Date
    Aug 2016
    Location
    Tunisia
    Posts
    32
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Banning ips

    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

  2. #2
    ... connecting
    Join Date
    Oct 2014
    Posts
    2
    Thanks
    2
    Thanked 1 Time in 1 Post
    iptables -A INPUT -s xxx.xxx.xxx.xxx -j DROP

  3. #3
    Private Reus's Avatar
    Join Date
    Aug 2016
    Location
    Tunisia
    Posts
    32
    Thanks
    6
    Thanked 0 Times in 0 Posts
    thank uuuuu ^^

    and to unbann what is the command please?
    Last edited by kung foo man; 10th September 2016 at 02:34. Reason: merge double post

  4. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Code:
    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
    timescale 0.01

  5. The Following User Says Thank You to kung foo man For This Useful Post:

    Reus (10th September 2016)

  6. #5
    Private Reus's Avatar
    Join Date
    Aug 2016
    Location
    Tunisia
    Posts
    32
    Thanks
    6
    Thanked 0 Times in 0 Posts
    big thanks to you dude but i don't understand XDDDDDDDDDDDD !
    ban command : iptables -A INPUT -s xxx.xxx.xxx.xxx -j DROP
    unbann command :

    write for me unbann command again please mate!

  7. #6
    Private Reus's Avatar
    Join Date
    Aug 2016
    Location
    Tunisia
    Posts
    32
    Thanks
    6
    Thanked 0 Times in 0 Posts
    iptables --delete INPUT -s xxx.xxx.xxx-j DROP



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

  8. #7
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Xx.xx.xx is the ip...

  9. #8
    Private Reus's Avatar
    Join Date
    Aug 2016
    Location
    Tunisia
    Posts
    32
    Thanks
    6
    Thanked 0 Times in 0 Posts
    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

  10. #9
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Reus View Post
    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 ...

  11. #10
    Private Reus's Avatar
    Join Date
    Aug 2016
    Location
    Tunisia
    Posts
    32
    Thanks
    6
    Thanked 0 Times in 0 Posts
    okay mitch thank you :P

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •