From: Sergey Alexanov <freak@volia.net>
Cc: netfilter@lists.netfilter.org
Subject: Re: ip_conntrack hashsize problem
Date: Tue, 06 Feb 2007 19:37:12 +0200 [thread overview]
Message-ID: <45C8BCC8.3090808@volia.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0702061810530.30216@yvahk01.tjqt.qr>
Jan Engelhardt пишет:
> On Feb 6 2007 17:33, Sergey Alexanov wrote:
>
>>can anybody suggest me in the following issue:
>>
>># grep ip_conntrack /etc/modprobe.conf
>>options ip_conntrack hashsize=2097152
>>
>># modprobe ip_conntrack
>># lsmod | grep ip_conntrack
>>ip_conntrack 53924 0
>>
>># cat /proc/sys/net/ipv4/netfilter/ip_conntrack_max
>>16777216
>># cat /proc/sys/net/ipv4/netfilter/ip_conntrack_buckets
>>2097152
>>
>>looking fine..
>>
>>but if i try to insert above 16000 rules with connection tracking i getting an
>>error:
>
>
> "number of rules" is completely different to "ip_conntrack_max".
>
>
>
> Jan
Jan, im not completely understand what you mean...
i try to aplly large set of rules without connection tracking,
# wc -l ./firewall2.sav
32771 ./firewall2.sav
#less ./firewall2.sav
*mangle
-A PREROUTING -p tcp -d xx.yy.240.0 --dport 80 -j MARK --set-mark 80
-A PREROUTING -p tcp -s xx.yy.240.0 --sport 80 -j MARK --set-mark 80
[..skipped..]
-A PREROUTING -p tcp -d xx.yy.255.255 --dport 82 -j MARK --set-mark 82
-A PREROUTING -p tcp -s xx.yy.255.255 --sport 82 -j MARK --set-mark 82
COMMIT
and whooalah:
# iptables-restore < ./firewall2.sav
without errors and warnings
# iptables -t mangle -L -n | wc -l
32782
in addition to connection tracking issues,
in messages log file arised following warning all time when i try to
apply ruleset with connection tracking:
kernel: allocation failed: out of vmalloc space - use vmalloc=<size> to
increase size.
unfortunately i dont have strong knowledge about tuning memory
allocation and kernel hacking.. :(
--
Sergey Alexanov
SA1215-RIPE
freak@volia.net
prev parent reply other threads:[~2007-02-06 17:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-06 15:33 ip_conntrack hashsize problem Sergey Alexanov
2007-02-06 17:11 ` Jan Engelhardt
2007-02-06 17:37 ` Sergey Alexanov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45C8BCC8.3090808@volia.net \
--to=freak@volia.net \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox