Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.