Error 18446744073709551615 when running iptables in OpenVZ container

Posted by xsaero00 on Server Fault See other posts from Server Fault or by xsaero00
Published on 2010-12-17T17:01:49Z Indexed on 2010/12/27 20:55 UTC
Read the original article Hit count: 224

Filed under:
|

This is related to the question I asked before. Now I am getting a different error.

iptables: Unknown error 18446744073709551615

when trying to apply a simple rule in VZ container

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

I have done everything that was suggested to do on hardware node and container but the error persists.

On hardware node:

  • /etc/sysconfig/iptables-config

    IPTABLES_MODULES="ip_conntrack_netbios_ns ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"

  • /etc/vz/vz.conf

    IPTABLES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"

  • /etc/rc.local

    modprobe xt_tcpudp; modprobe ip_conntrack; modprobe xt_state

  • container config

    IPTABLES="ip_tables iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ip_conntrack_ftp ipt_state iptable_nat ip_nat_ftp "

I have restarted HN and container numerous times, but the error is still there. It seems like all config is in place but something like lack of some resources is preventing the rule from being applied.

Thanks for any help.

© Server Fault or respective owner

Related posts about iptables

Related posts about openvz