Fehlermeldung beim Start von iptables

Rund um die Sicherheit des Systems und die Applikationen
Post Reply
andyc
Posts: 5
Joined: 2002-12-19 10:28
 

Fehlermeldung beim Start von iptables

Post 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
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Fehlermeldung beim Start von iptables

Post 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.
Post Reply