From: Mr Dash Four <mr.dash.four@googlemail.com>
To: netfilter@vger.kernel.org
Subject: Re: kernel helper modules parameters
Date: Wed, 08 Feb 2012 03:11:15 +0000 [thread overview]
Message-ID: <4F31E7D3.5060203@googlemail.com> (raw)
In-Reply-To: <4F31B772.2040102@googlemail.com>
> I would like to do some testing with the (t)ftp, sip, h323 and
> possibly netbios_ns module helpers. I am most definitely not going to
> use the standard ports these protocols operate on, so need to know,
> among other things, how can I reconfigure the helpers and the degree
> of leverage I have (i.e. what I can/cannot get away with). Thanks.
-bash~# ipset n test hash:ip family inet timeout 0 hashsize 128
-bash~# ipset a test 10.99.99.1
-bash~# iptables -A OUTPUT -t raw -p tcp --dport 17021 -m set
--match-set test dst -j CT --helper ftp
-bash~# iptables -t raw -L OUTPUT -vn
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
0 0 CT tcp -- * * 0.0.0.0/0
0.0.0.0/0 tcp dpt:17021 match-set test dst CT helper ftp
-bash~# iptables -D OUTPUT -t raw -p tcp --dport 17021 -m set
--match-set test dst -j CT --helper ftp
-bash~# ipset x test
-bash~# ipset n test hash:ip,port family inet timeout 0 hashsize 128
ipset a test 10.99.99.1,tcp:17021
-bash~# iptables -A OUTPUT -t raw -m set --match-set test dst,dst -j CT
--helper ftp
*iptables: No chain/target/match by that name.*
-bash~# iptables -A OUTPUT -t raw -p tcp -m set --match-set test dst,dst
-j CT --helper ftp
-bash~# iptables -t raw -L OUTPUT -vn
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
0 0 CT tcp -- * * 0.0.0.0/0
0.0.0.0/0 match-set test dst,dst CT helper ftp
-bash~# iptables -A OUTPUT -t raw -p udp -m set --match-set test dst,dst
-j CT --helper ftp
*iptables: No chain/target/match by that name.*
Anyone kind enough to enlighten me why do I have to specify a protocol
(which matches the ipset type exactly!) in order for iptables to accept
and create that rule? For the filter table there is no such constraint.
next prev parent reply other threads:[~2012-02-08 3:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-07 23:44 kernel helper modules parameters Mr Dash Four
2012-02-08 3:11 ` Mr Dash Four [this message]
2012-02-08 3:55 ` Jan Engelhardt
2012-02-08 3:59 ` Mr Dash Four
2012-02-08 5:39 ` Jan Engelhardt
2012-02-08 14:19 ` Mr Dash Four
2012-02-08 14:37 ` Jan Engelhardt
2012-02-08 15:16 ` Mr Dash Four
2012-02-08 15:49 ` Jan Engelhardt
2012-02-08 16:20 ` Mr Dash Four
2012-02-13 9:06 ` Pablo Neira Ayuso
2012-02-13 9:38 ` Jan Engelhardt
2012-02-14 0:24 ` Pablo Neira Ayuso
2012-02-14 1:07 ` Jan Engelhardt
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=4F31E7D3.5060203@googlemail.com \
--to=mr.dash.four@googlemail.com \
--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