Skip to content

Commit

Permalink
fix(ns-api): set snort queue_maxlen
Browse files Browse the repository at this point in the history
Set the default queue_maxlen value to 4096.
This change should lower the risk to have errors like:
  nfnetlink_queue: nf_queue: full at 1024 entries, dropping packets(s)
  • Loading branch information
gsanchietti committed Dec 6, 2024
1 parent 62e1d2f commit 3154d18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ns-api/files/ns.snort
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def setup(enabled, set_home_net = False, include_vpn = False, ns_policy = 'balan
uci.set('snort', 'snort', 'method', 'nfq')
uci.set('snort', 'snort', 'external_net', '!$HOME_NET')
uci.set('snort', 'nfq', 'chain_type', 'forward')
uci.set('snort', 'nfq', 'queue_maxlen', '4096')

# always set the number of threads to the number of CPUs
# if the hardware changes, a new setup is required
Expand Down

0 comments on commit 3154d18

Please sign in to comment.