Page 1 of 1

Fehlermeldung beim Start von iptables

Posted: 2003-04-05 13:46
by andyc
Hallo,

habe IAM lt. FAQ installiert. Beim Starten von iptables bekomme ich folgende Fehlermeldung:

Code: Select all

web:/usr/local/iam # /etc/init.d/iptables start
Starting iptables ip accounting: iptables v1.2.7a: invalid TCP port/service `-j' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.2.7a: invalid TCP port/service `-j' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.2.7a: invalid TCP port/service `-j' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.2.7a: invalid TCP port/service `-j' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables.
web:/usr/local/iam #
Irgendwie kennt iptables den Schalter -j nicht, oder ? ;-(

Andreas

Re: Fehlermeldung beim Start von iptables

Posted: 2003-04-05 14:35
by dodolin
Irgendwie kennt iptables den Schalter -j nicht, oder ?
Doch, den kennt er, aber nur, wenn er an der richtigen Stelle sitzt.
Ohne deine Regeln zu kennen, wird das aber schwierig werden...

Vermutlich hast du sowas ähnliches gemacht:

Code: Select all

iptables -A CHAIN -p tcp --dport -j TARGET
d.h. nach dem --dport oder --sport muss auch eine Portnummer kommen und nicht gleich dein -j. Die Fehlermeldung sagt dir ja, dass er -j für einen TCP port/service hält und das natürlich anmeckert, weil es keiner ist.