All of lore.kernel.org
 help / color / mirror / Atom feed
* connection tracking and kernel dropping packets
@ 2024-10-29 15:11 Matt Zagrabelny
  2024-10-29 15:47 ` Slavko
  2024-10-29 16:11 ` Kerin Millar
  0 siblings, 2 replies; 8+ messages in thread
From: Matt Zagrabelny @ 2024-10-29 15:11 UTC (permalink / raw)
  To: netfilter

Hello,

The kernel of my DNS server is dropping packets:

kernel: [48074703.302657] nf_conntrack: table full, dropping packet.

I've followed this knowledge base article:

https://kb.isc.org/docs/aa-01183

for configuring iptables to not track the connections of DNS packets.

...but it is still dropping packets due to the CT.

I know I could bump the conntrack memory, but I'd still like to know
why my iptables rules aren't sufficient for not dropping DNS packets.

I'm running Linux 3.2.0-4-amd64

Here are my iptables rules:

# iptables -vnL -t raw
Chain PREROUTING (policy ACCEPT 24M packets, 2112M bytes)
 pkts bytes target     prot opt in     out     source               destination
  16M 1153M CT         udp  --  *      *       0.0.0.0/0
0.0.0.0/0            udp dpt:53 CT notrack
3723K  701M CT         udp  --  *      *       0.0.0.0/0
0.0.0.0/0            udp spt:53 CT notrack

Chain OUTPUT (policy ACCEPT 24M packets, 5436M bytes)
 pkts bytes target     prot opt in     out     source               destination
3760K  327M CT         udp  --  *      *       0.0.0.0/0
0.0.0.0/0            udp dpt:53 CT notrack
  16M 4680M CT         udp  --  *      *       0.0.0.0/0
0.0.0.0/0            udp spt:53 CT notrack

# iptables -vnL
Chain INPUT (policy DROP 45173 packets, 2842K bytes)
 pkts bytes target     prot opt in     out     source               destination
  23M 2065M ACCEPT     all  --  *      *       0.0.0.0/0
0.0.0.0/0            ctstate RELATED,ESTABLISHED,UNTRACKED
   11   804 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0
    4   284 ACCEPT     udp  --  *      *       0.0.0.0/0
0.0.0.0/0            udp dpt:53
 709K   37M ACCEPT     tcp  --  *      *       0.0.0.0/0
0.0.0.0/0            tcp dpt:53

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 24M packets, 5439M bytes)
 pkts bytes target     prot opt in     out     source               destination

Any ideas what I'm missing?

Thanks for the help!

-m

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-11-11 19:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-29 15:11 connection tracking and kernel dropping packets Matt Zagrabelny
2024-10-29 15:47 ` Slavko
2024-10-29 15:57   ` Matt Zagrabelny
2024-11-06 17:44   ` Matt Zagrabelny
2024-11-08 17:04     ` Slavko
2024-11-10 21:47     ` Florian Westphal
2024-11-11 19:14       ` Matt Zagrabelny
2024-10-29 16:11 ` Kerin Millar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.