Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can use 31 chars chain name in Debian 6 (iptables 1.4.8), but in Ubuntu 11 (iptables 1.4.10), I can't... Is it possible to let Ubuntu support 30+ chars chain name?

share|improve this question
Do you really need names that long? – Zoredache Apr 7 '12 at 22:56
On CentOS this limit is defined in the netfilter source (header) files. Specifically, #define XT_FUNCTION_MAXNAMELEN 30 in /usr/include/linux/netfilter/x_tables.h. – cyberx86 Apr 8 '12 at 3:47
up vote 3 down vote accepted

Yes it's possible. You'll have to download the source from or get your distro's soure code. once you've done that make a suitable change and recompile.

Now you have an unsupported, private version of netfilter/iptables which brings all kinds of it's own problems with patches, updates and dependencies.

It really would be much better and supported if you just used shorter names.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.