PDA

View Full Version : Server port problem!


opticaltim
01-27-2007, 02:30 AM
Hello,
I am having a problem with a Day of Defeat Source server. I have had this server up and running for a while now just fine. I did a reboot on my dedicated server the other day and now it wont come online. I checked my logs and i found that the server is starting on the wrong port. I dont no what happened but i really need some help. In my command line I have -port 27023 but in the logs it saying it starting on 27026. I am almost possitive nothing else is using that 27023 port. If so is there a way to check in my ssh to see what is using that port and how to kill it. Or how i can open that port if it closed or blocked. If someone can please help me out i would really appriciate it.

Thanks,
Tim!

Seppuldura
01-27-2007, 03:30 AM
To check if the port is in use you can do a netstat -a to see all active ports or in your specific case netstat -a | grep 27023.

opticaltim
01-27-2007, 09:48 PM
For some reason that netstat command wont work. It just brings me down to the next line in my ssh. Do i need to install it or do something else.?

Seppuldura
01-27-2007, 11:48 PM
You have only used the netstat together with the grep right?
In this case it means that your port ist not used --> no output

Try netstat -a and you'll see that netstat works an gives you an output.

Now for your problem...i've no idea what to do...maybe do another reboot and see if it works then?

opticaltim
01-28-2007, 12:19 AM
Hello,
I have tryed all the netstat command i know they all equal with no output. There has to be a problem with netstat itself. I tryed netstat -a the other command to see if the port is in use, just netstat and i get nothing. I dont no what wrong there. Also my buddy told me to type this /sbin/iptables -I FORWARD -p tcp --dport 27023 -j DROP and see if that helped. I think that made the problem worse. I dont no what that command does but if it did makes things worse is there another command to fix that? It might not have changed anything but i dont no.

Thanks,
Tim!

Seppuldura
01-28-2007, 03:25 AM
Sorry...i have no experience with iptables. iptables is for filtering packets (firewall function). You have to wait for response from more experienced users here. Same goes for the netstat problem. I have no idea why it doesn't work for you.

kennycom
01-28-2007, 12:58 PM
/sbin/iptables -I FORWARD -p tcp --dport 27023 -j DROP

That would DROP the packet going to that port, you should have used ACCEPT

try turning to firewall off and see if the server works.

service iptables stop

You could do a google search on iptables, find sites like http://www.linuxguruz.com/iptables/howto/ and enlighten yourself on the inner workings of your server

NitOxYs
01-28-2007, 08:24 PM
yum remove iptables > Get a hardware firewall and allow the ports in the server configuration part at the top of this forum.