netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Manuel Scheub <manuel.scheub@kraftcom.de>
To: netfilter@vger.kernel.org
Subject: iptables deactivate "getportbyname"
Date: Tue, 15 Jan 2013 13:14:52 +0100	[thread overview]
Message-ID: <50F5483C.9050807@kraftcom.de> (raw)

Hello,

after an upgrade of iptables from version 1.4.3.2 to 1.4.16.3, some 
rules doesn't work anymore.
e.g. all rules with protocol UDP an port information:

#iptables -A INPUT -p udp -i eth0 --dport 67 --sport 68 -j ACCEPT
#iptables v1.4.16.3: Port "67" does not resolve to anything.

If I replace the port with the resolving name defined in /etc/services, 
all rules will be accepted:

#iptables -A INPUT -p udp -i eth0 --dport bootps --sport bootpc -j ACCEPT

I saw a "getportbyname" in the source code - is it possible to 
deactivate this "feature"?
I would like to still use numbers instead of names, because if there are 
some special portforwarding rules in my network, it is not guaranteed 
that there is an entry in /etc/services for that port.

Any help would be greatly appreciated!

Greetz
Manu


             reply	other threads:[~2013-01-15 12:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-15 12:14 Manuel Scheub [this message]
2013-01-15 12:51 ` iptables deactivate "getportbyname" Jan Engelhardt
2013-01-15 14:26   ` Manuel Scheub
2013-01-15 14:35     ` Jan Engelhardt
2013-01-15 15:57       ` Manuel Scheub
2013-01-15 18:22         ` Jan Engelhardt
2013-01-16 10:52           ` Manuel Scheub

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=50F5483C.9050807@kraftcom.de \
    --to=manuel.scheub@kraftcom.de \
    --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;
as well as URLs for NNTP newsgroup(s).