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 trying to configure my VPS so it'll host a teamspeak server, but I've hit a snag with correctly configuring iptables to allow connections in. I attempted to do it myself, but I ended up allowing TCP in instead of UDP. How do I go about deleting this and/or inputting in an allow UDP on 9987 rule?

'ACCEPT tcp -- anywhere anywhere tcp dpt:9987'

share|improve this question

iptables -A INPUT -p udp --dport 9987 -j ACCEPT

-A means "Append to the end of the named chain" -p means "what protocol?" --dport lets you specify port and -j means "jump to this chain."

share|improve this answer
-A actually means "Append" to the end of the named chain. Conversely, -I means "Insert" to the top of the chain. – fukawi2 Jan 6 '13 at 4:25
Fixed in the answer, thank you – Joel E Salas Jan 6 '13 at 5:33

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.