Score:0

can't get iptables to handle more than 1.5 million nat sessions

pk flag

I am trying to see how many NAT sessions I can handle in a single linux machine using iptables. I am testing it using a large number of udp packets but I can't seem to pass 1.5 million. I set net.netfilter.nf_conntrack_max to 4194304 and /sys/module/nf_conntrack/parameters/hashsize to the same value. is there any other config I can change to make it support more sessions?

Ginnungagap avatar
gu flag
How many remote hosts are you connecting to?
pk flag
currently only 1 for the test, production setup should have a lot more. why does it matter?
John Mahowald avatar
cn flag
1.5 million packets over what time interval? How many connections according to `conntrack --count` ?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.