From: "Taylor, Grant" <gtaylor@riverviewtech.net>
To: kaber@trash.net
Cc: netfilter@lists.netfilter.org
Subject: Problem with two addrtype matches in one iptables rule.
Date: Mon, 16 May 2005 01:09:06 -0500 [thread overview]
Message-ID: <42883902.7030909@riverviewtech.net> (raw)
Hi, my name is Grant Taylor. I'm playing with your addrtype match extension to iptables. I must say that I like it very much. However I have a slight problem with it. Namely I am apparently only able to have one addrtype match in any given rule. I would like to use two addrtype matches, one for the source address, and one for the destination address in my iptables rules. Do you know of any limitations to the addrtype match extension that would be causing this? Below is an example rule of what I am currently using as well as what I would like to be able to do:
# current rule:
iptables -t filter -A INPUT -i eth1 -m pkttype --pkt-type broadcast -m addrtype --src-type broadcast -s 0.0.0.0 -d 255.255.255.255 -p udp --sport 68 --dport 67 -j ACCEPT
# desired rule:
iptables -t filter -A INPUT -i eth1 -m pkttype --pkt-type broadcast -m addrtype --src-type broadcast -m addrtype --dst-type broadcast -s 0.0.0.0 -d 255.255.255.255 -p udp --sport 68 --dport 67 -j ACCEPT
Any comments or suggestions would be greatly appreciated.
Grant. . . .
P.S. This email was sent to Patrick McHardy (directly) as well as CCed to the NetFilter (general) mailing list.
next reply other threads:[~2005-05-16 6:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-16 6:09 Taylor, Grant [this message]
2005-05-17 1:35 ` Problem with two addrtype matches in one iptables rule Patrick McHardy
2005-05-17 5:48 ` Taylor, Grant
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=42883902.7030909@riverviewtech.net \
--to=gtaylor@riverviewtech.net \
--cc=kaber@trash.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 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.