Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
1  
Do you really need names that long? –  Zoredache Apr 7 '12 at 22:56
2  
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

1 Answer 1

up vote 3 down vote accepted

Yes it's possible. You'll have to download the source from netfilter.org 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

 
discard

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.