Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer

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

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.