From: "Rob Sterenborg (lists)" <lists@sterenborg.info>
To: netfilter@vger.kernel.org
Subject: ipset & iptables
Date: Wed, 01 Feb 2012 17:32:48 +0100 [thread overview]
Message-ID: <1328113968.13053.18.camel@ns014530.dcyb.net> (raw)
Hello,
I have problems matching an ipset set using iptables. My configuration
is as follows:
# uname -r
2.6.39.1
# iptables -V
iptables v1.4.12.2
# ipset -V
ipset v6.11, protocol version: 6
The following 3 commands are executed immediately after each other:
# ipset create TEST hash:ip
# ipset add TEST 127.0.0.5
# iptables -A INPUT -m set --match-set TEST src
iptables: No chain/target/match by that name.
# lsmod|grep set
ip_set_hash_net 15884 3
ip_set_hash_ip 13584 2
ip_set 19151 2 ip_set_hash_net,ip_set_hash_ip
nfnetlink 3191 2 nf_conntrack_netlink,ip_set
# ipset list TEST
Name: TEST
Type: hash:ip
Header: family inet hashsize 1024 maxelem 65536
Size in memory: 8264
References: 0
Members:
127.0.0.5
I don't get it: ipset says the set exists and has a member (if that
matters anything), but iptables doesn't see it. What am I missing?
--
Rob
next reply other threads:[~2012-02-01 16:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 16:32 Rob Sterenborg (lists) [this message]
2012-02-01 18:52 ` ipset & iptables Jozsef Kadlecsik
2012-02-01 19:31 ` Rob Sterenborg (Lists)
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=1328113968.13053.18.camel@ns014530.dcyb.net \
--to=lists@sterenborg.info \
--cc=netfilter@vger.kernel.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