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'm following some instructions for Installing Tomcat. They require me to add the following line to my iptables file:

-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 8080 --syn -j ACCEPT

Having carefully read the man page for iptables, I have learned what the parameters do, except for the first one.

What does -A RH-Lokkit-0-50-INPUT do, and can you confirm that it is sensible in this case?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The -A RH-Lokkit-0-50-INPUT is adding it to the chain named RH-Lokkit-0-50-INPUT. Unless that chain exists, I would not use it.

You can see your existing rules with:

iptables -L -n

If you do not have the chain, you can simply use the following in its place:

iptables -A INPUT -p tcp -m tcp --dport 8080 --syn -j ACCEPT

If you do not have firewall rules setup in the first place, this rule is superfluous.

share|improve this answer
    
Many thanks, Warner. Doing what you suggested has worked. –  David Pinn Mar 5 '10 at 5:00

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.