Giter Site home page Giter Site logo

iptables's People

Contributors

sirplease avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

iptables's Issues

DDOS attack still pass through

Hi,

I have been using this Iptables file for my game server (L4D) but some attacks still pass through. Recently I have captured it using tcpdump and tried to analyze it in Wireshark. The packet length is usually 50 Bytes with an error spamming in the game server console "Invalid split packet length 8". The traffic per second is 265 kbps and ~15000 packets/ 30 seconds. I have 5 pcap files that showed legit players usually only send up to ~5000 packets/30 seconds while DDOS attacks use so much more (in my case 15000 is the minimum). I wonder if we should add rules that use hit count such as this? Or if there is already a reason why we don't already have that rule?

iptables -I INPUT -p udp --dport $UDP_PORTS_PROTECTION -m state --state NEW -m recent --set
iptables -I INPUT -p udp --dport $UDP_PORTS_PROTECTION -m state --state NEW -m recent --update --seconds 30 --hitcount 8000 -j DROP

I'm still new to Iptables and not sure how I would integrate this into your existing bash script. I tried to append it to your "UDPfilter" chain but I got this error below instead:

iptables v1.8.7 (nf_tables):  RULE_APPEND failed (Invalid argument): rule in chain UDPfilter

Please help, thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.