Hi,
I get this error message when trying to restart iptables.
======================================== iptables failed. The error was: Udskriver brandmurs-regler: [ O.k. ]
Sætter kæder til retningslinje ACCEPT: filter [ O.k. ]
Fjerner iptables-moduler: [ O.k. ]
Indfører iptables brandmurs-regler: iptables-restore v1.2.9: Line 13 seems to have a -t table option.
Error occurred at line: 13 Try `iptables-restore -h' or 'iptables-restore --help' for more information. [MISLYKKEDES]
========================================
This is what netfilter has about such errors: --------------------------------------------- http://www.netfilter.org/documentation/FAQ/netfilter-faq-3.html#ss3.20
3.20 'iptables: Invalid argument' after kernel update (nat table)
You have just upgraded your kernel and suddenly some of the commands (especially in the 'nat' table), and you experience something like:
# iptables -A POSTROUTING -t nat -o ppp0 -j MASQUERADE iptables: Invalid argument
This happens when the structure size between kernel and userspace changes. You will need to recompile the iptables userspace program using the include files of your new kernel. This only happens if you (or the vendor of your kernel) has applied some patches either only to the old or only to the new kernel. It is not supposed to happen between vanilla kernel.org kernels. If it does, please inform the netfilter-devel mailinglist. ---------------------------------------------
But i am using plain vanilla fedora core 2 kernel and iptables an is trying to setup MASQUERADE
-t nat -A POSTROUTING -o ppp0 -j MASQUERADE
Mvh Hans Christian Studt Private +45 48 79 79 89 Mobile +45 29 23 54 14 Business +45 36 14 54 14 mailto:hc@studt.dk http://hc.studt.dk Powered by Linux 2.6.6-1.435.2.1
Am Mo, den 30.08.2004 schrieb Hans Christian Studt um 19:56:
Indfører iptables brandmurs-regler: iptables-restore v1.2.9: Line 13 seems to have a -t table option.
Error occurred at line: 13 Try `iptables-restore -h' or 'iptables-restore --help' for more information. [MISLYKKEDES]
But i am using plain vanilla fedora core 2 kernel and iptables an is trying to setup MASQUERADE
-t nat -A POSTROUTING -o ppp0 -j MASQUERADE
Mvh Hans Christian Studt
What is the content of /etc/sysconfig/iptables and especially line 13 in this file? Seems you have wrong syntax in there.
Alexander
On Mon, 30 Aug 2004 19:56:25 +0200, Hans Christian Studt wrote:
Hi,
I get this error message when trying to restart iptables.
======================================== iptables failed. The error was: Udskriver brandmurs-regler: [ O.k. ]
Sætter kæder til retningslinje ACCEPT: filter [ O.k. ]
Fjerner iptables-moduler: [ O.k. ]
Indfører iptables brandmurs-regler: iptables-restore v1.2.9: Line 13 seems to have a -t table option.
Error occurred at line: 13 Try `iptables-restore -h' or 'iptables-restore --help' for more information. [MISLYKKEDES]
The file format saved by iptables-save and loaded by iptables-restore is different from raw iptables commands. The file is *not* a shell script. At first glance, the differences may seem subtle, but they are important. A "-t nat" in there is a syntax error.