A userspace application that filters DHCP floods to protect a DHCP server. It uses the Netfilter userspace packet queuing API.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dhcp_protect.conf 944B

12345678910111213141516171819202122232425262728293031323334353637
  1. # max_pkt_per_interval
  2. # maximum number of packets authorised per time interval.
  3. max_pkt_per_interval=30
  4. # interval
  5. # measurement time interval in seconds.
  6. interval=30
  7. # debug
  8. # enable debugging, warning, very verbose
  9. debug=0
  10. # blacklist_time
  11. # number of seconds this client will be ignored once
  12. # it exceeded the max_pkt_per_interval per interval
  13. blacklist_time=55
  14. # queue number
  15. # refers to the queue-num of iptables.
  16. # -A FORWARD -p udp -m udp --dport 67 -j NFQUEUE --queue-num 67 --queue-bypass
  17. queue=67
  18. # dryrun
  19. # if dryrun is set to 1 it will accept all packets no matter what.
  20. # this can be used for testing, syslog will still display the blacklisting
  21. # actions.
  22. # Set to 0 for production.
  23. dryrun=0
  24. # stats file and interval (seconds)
  25. # the stats file will be overwritten every n seconds
  26. # as defined below. The counters are absolute AND
  27. # relative (both included).
  28. stats_file=/var/run/dhcp_protect_status.json
  29. stats_interval=10