Results 1 to 2 of 2

Thread: iptables do not work the way it should on 10.04

  1. #1
    Join Date
    Sep 2008
    Beans
    9

    iptables do not work the way it should on 10.04

    Hi all, i'm having a weird issue on 10.04. I have a bash script I wrote to drop incoming connections that are faster than a specified rate (6 per second in the example). I've been using the script successfully on 8.04LTS and CentOS for 2-3 year but it doesnt seem to work on 10.04

    Code:
    INTERVAL="2"
    HITCOUNT="6"
    
    iptables -A INPUT -d 123.123.123.123 -m state --state NEW -m recent --set
    iptables -A INPUT -d 123.123.123.123 -m state --state NEW -m recent --update --seconds $INTERVAL --hitcount $HITCOUNT -j DROP
    Thanks in advance

    Marc
    IPInfoDB

  2. #2
    Join Date
    Sep 2008
    Beans
    9

    Re: iptables do not work the way it should on 10.04

    My mistake... fixed

Bookmarks

Posting Permissions

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