LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem with ports (https://www.linuxquestions.org/questions/linux-software-2/problem-with-ports-726888/)

miskec 05-18-2009 05:50 PM

Problem with ports
 
I install team speak server on my linux VPS.

I use

iptables -A INPUT -i eth0 -p tcp --sport 14534 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --sport 8767 -m state --state NEW,ESTABLISHED -j ACCEPT

To open tcp 14534 and tcp 8767 tcp ports. First is for web admin for team speak seccond is for team speak client

after that I run

service iptables restart

And all work fine I can access to my web admin http://ip addrreess:14534 and also I can connect to server with my teamspeak client by coling http://ip address:8767

But few minutes later (about 3-4 minutes) all stop working and I caan access to my web admin and I cannt log to teamspeak client

When I again call this function

service iptables restart

All work fine again but again for 3 or 4 minuts

Please help me. Seams that my ports close every 3-4 minutes I dont know what i to do

PLEASE HELP MEEE

JulianTosh 05-19-2009 04:13 AM

Kinda suprised it works at all. Shouldnt '--sport' be '--dport' ?


All times are GMT -5. The time now is 04:11 AM.