IP Ban script

Results 1 to 7 of 7
  1. #1
    Account Upgraded | Title Enabled! Exotic2012 is offline
    MemberRank
    Nov 2010 Join Date
    Niles, Ohio, UnLocation
    353Posts

    IP Ban script

    Here is a simple ip ban script I made using iptables to ban and unban IPS from your server.

    Download Download IPBan.rar for free on Filesonic.com

    Extract and upload to /root of your server
    Change file permissions on both to 755
    Now when want to ban an ip you just type in command line
    ./ban_ip IPADDRESS and its banned using iptables
    to unban type
    ./unban_ip IPADDRESS and its now unbanned

    To make it stick so it dont remove itself after restarting server

    Type
    service iptables save
    service iptables restart

    Hope you find it useful, is easier to remember than the actual commands to do the same thing


  2. #2
    ~Hunter~ Dragganta is offline
    MemberRank
    Sep 2005 Join Date
    live in VWLocation
    515Posts

    Re: IP Ban script

    Quote Originally Posted by Odin1973 View Post
    Here is a simple ip ban script I made using iptables to ban and unban IPS from your server.

    Download Download IPBan.rar for free on Filesonic.com

    Extract and upload to /root of your server
    Change file permissions on both to 755
    Now when want to ban an ip you just type in command line
    ./ban_ip IPADDRESS and its banned using iptables
    to unban type
    ./unban_ip IPADDRESS and its now unbanned

    To make it stick so it dont remove itself after restarting server

    Type
    service iptables save
    service iptables restart

    Hope you find it useful, is easier to remember than the actual commands to do the same thing
    yesss.. nice work but better maybe do from mac address ???

  3. #3
    Crystal Moon goldrush is offline
    MemberRank
    Jul 2005 Join Date
    278Posts

    Re: IP Ban script

    nice.. it will help many server owner

    filesonic is crap site.. 4 time after image verification it send me to 30 sec delay and image verification again..

    mirror please

  4. #4
    xHTML/CSS/JS/Ruby LostSpirit is offline
    MemberRank
    Feb 2008 Join Date
    $ gem search -rLocation
    482Posts

    Re: IP Ban script

    Quote Originally Posted by Dragganta View Post
    yesss.. nice work but better maybe do from mac address ???
    Only if you buy a hardware firewall...
    I suggest buying a cisco =p

  5. #5
    ~Hunter~ Dragganta is offline
    MemberRank
    Sep 2005 Join Date
    live in VWLocation
    515Posts

    Re: IP Ban script

    Quote Originally Posted by goldrush View Post
    nice.. it will help many server owner

    filesonic is crap site.. 4 time after image verification it send me to 30 sec delay and image verification again..

    mirror please
    pahh 30 sec .. lucker my first try send me 15 min again ...lol

  6. #6
    Account Upgraded | Title Enabled! Exotic2012 is offline
    MemberRank
    Nov 2010 Join Date
    Niles, Ohio, UnLocation
    353Posts

  7. #7
    Crystal Moon goldrush is offline
    MemberRank
    Jul 2005 Join Date
    278Posts

    Re: IP Ban script

    lol@Dragg

    thank you for the mirror



Advertisement