All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables deactivate "getportbyname"
@ 2013-01-15 12:14 Manuel Scheub
  2013-01-15 12:51 ` Jan Engelhardt
  0 siblings, 1 reply; 7+ messages in thread
From: Manuel Scheub @ 2013-01-15 12:14 UTC (permalink / raw)
  To: netfilter

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-16 10:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-15 12:14 iptables deactivate "getportbyname" Manuel Scheub
2013-01-15 12:51 ` 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

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.