Results 1 to 10 of 28

Thread: [Q3 FIX] Q3 fake clients fix

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    Well done, thanks for sharing this Mitch!
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by RobsoN View Post
    Well done, thanks for sharing this Mitch!
    Thanks. I just edit my code so people with a valid guid are always accepted.

    I am now using iptables to limit the number of connect each second. (same rules as limiting getstatus)

    PHP Code:
    iptables -N CQUERY-BLOCK
    iptables 
    -A CQUERY-BLOCK -m recent --set --name cblocked-hosts -j DROP
    iptables 
    -N CQUERY-CHECK
    iptables 
    -A CQUERY-CHECK -p udp -m string ! --string "connect" --algo bm --from 32 --to 39 -RETURN
    iptables -A CQUERY-CHECK -m recent --update --name cblocked-hosts --seconds 30 --hitcount 1 -j DROP
    iptables 
    -A CQUERY-CHECK -m hashlimit --hashlimit-mode srcip --hashlimit-name cod2connect --hashlimit-above 2/second -j CQUERY-BLOCK
    iptables 
    -A INPUT -p udp --dport 27960:29000 -j CQUERY-CHECK 
    Last edited by Mitch; 4th October 2016 at 17:24.

  3. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    RobsoN (26th February 2014),Rocky (15th August 2014)

Posting Permissions

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