View Full Version : linux server:issues with setting WAN IP
wong5860
12-26-2007, 03:49 PM
Ok.. first off i'm new to this server and semi new to linux. I have run many old servers before and i have this server up and run'n on the local net. My linux server is fully exposed to the correct port range.. the fire wall server is working SELinux is allowing the correct access to the bin file.. CHECK..
how ever i can't get it to work on the public net. Every time I set the ip to my WAN ip i get an error that that IP is in use.. it trys for the standard 10 port cycle and then times out. I can set it as the local IP.. but this dosn't work for trying to run it via the internet .. at least not that i know..
starting server with ./cod4_lnxded +set dedicated 2 +set net_ip 88.888.88.88 +exec dedicated.cfg (optained by different posts in these forums) +map_rotate
.. now if i try to set the WAN ip and it gets the errors.. the server isn't up and run'n after loading a map with
map mp_crash for i.e... has to restart and set to local ip..
HOW do i fix this.. its not a router issue.. i have done everything inc. plug the machine in naked to the net standalone.. and i'm familar with setting up forward ranges.. DMZ hosts.. the server is already runing many public services..PLEASE HELP ME
anything.. link that points to the answer.. things i can test.. something i might be over looking.. thanks for your time guys
-wong
wong5860
12-26-2007, 07:40 PM
No one knows? i hate to say this but i have posted on 4 different forums and no one is responding. this means 2 things to me.. either A.. my problem is so old its common knowlage .. if so please clue me in .. point me in some direction.. this can't be that hard of a problem
B.. to many lazys.. i'm not a complete noobi.. even if you don't have time to explain the entire process.. or if you need better information from me please ASK.. i would love a little back and forth if that is what it will take to get my dump server box up and run'n.. there has to be someone out there that has had this problem or understands what i'm talking about.. please anyone add to my question .. link it to someone if they know alot about run'n servers.. someone i'm going to lose it and just run the damn thing on an extra windows server.. but i hate windows and i hate run'n things on there server OS.. ...
Scrapie
12-26-2007, 08:02 PM
not a cod problem... check your router config ou your firewall, and you dont need to set ip. if u can connect to your server trough your lan ip, thers no cod problem
try connecting a modem and turn off your router and firewall...it will work:)
MajorWoody
12-26-2007, 09:32 PM
Don't set your WAN ip at all, the game will detect the local IP, then your router will forward accordingly.
You only need to set an IP if you have more than one on a box.
wong5860
12-28-2007, 02:32 PM
well i have tried rebooting the router.. and i have triple checked the cfg of the router and its not working as far as i can tell.. thanks for letting me know about setting the WAN IP.. this is were i'm at a loss.. I can connect to this linux server from the internet on any port i set up.. i can connect form my office to setup virtual hosts.. the web server is working i can open ports for the ftp portal as well as my SSH work.. It seems the only thing that isn't working correctly is this COD4 server. so maybe i'll leave a little more info about the router.. maybe a known issue or something again i'm over looking.
Its a Linksys WRT54GS. All that i can think of doing with this routers given menu set is to either open up all ports with something like DMZ host.. or to use the forward range and open up the ports for the COD4 server.. I didn't think doing both would do anything other then conflict, so i am trying (for testing purpose only) to run this under the DMZ host.. So if thats working for so many other services it makes me think there is something wrong with the linux firewall.. but i disable it and still not working.. I thank you guys again for your time... i know there is something dumb i'm not connecting the dots on, but with the DMZ host on and the firewall turned off.. the server works on the local net.. why can't i add this internet ip as a fav on the game client and connect.. i just don't get it i will try again to plug it into the modem directly but then i'll need someone else to connect to the server sense my local net won't be able to access the internet unless i turn this linux box into a router/gateway .. which i would rather not have it setup like that at this time.
-wong
wong5860
12-28-2007, 04:16 PM
also figured i would show what ports i have open on the server firewall just in case I'm doing something wrong here as well. (even tho while testing i disable the Linux firewall through the gnome tools that came with the new fedora release. so this shouldn't be an issue)
20510 - 20510 tcp/udp
20600 - 20610 tcp/udp
27900 - 27900 tcp/udp
28900 - 28970 tcp/udp
wong5860
01-14-2008, 02:21 AM
ok.. so its been over a week guys.. no reply.. every forum i read its all the same.. someone asks for the help.. people say its has to be your router or fire wall.. i'm not a network noobie here.. and i'm capable of disabling the fire wall and make'n the router allow a pure connection to the game server and none of this is working.. again the server is FINE!! on the local net.. so i too think it has to be something with the firewall.. but i have opened up all the correct ports.. i have disabled both the fire wall and the ip tables.. 4/6 .. and still no results.. if this is something a lot of you admin's know how to fix please take the time to point me in a direction .. or at this point i would even like to see others saying they just don't know.. .. this can't be that hard of a problem yet it seems hard for me 8( .. anyone .. anyone out there care to help me?
btw,, 6 posts.. almost all mine.. and 178 view.. sounds like i'm not the only one with the server issue.. yet no one is responding.. so whats the deal people..
rudedog
01-14-2008, 06:56 AM
I to think it's a network setting.
If you can setup and see the server fine via LAN - then it's a network setting
If you can setup and see the server fine via LAN - it's not the firewall - as long as you can see and connect via another box.
Just for shits and giggles, have you tried updating the routers firmware?
I've had some weird issues with ping and tracert and it was my router (god I hate linksys but have gone back to them time and time again over the years....)
Have you tried simply plugging the box into the cable/dsl/isdn modem directly? Make sure you can ping/traceroute and or get to a url from that box before trying the server?
Can you also see and or resolve the mastercod4.activision.com server (normally in the cod4 console window when the server is started)?
Many people may have read your thread simply to offer help and once they read all the things you have done already simply don't have anything to add.
One last thing, you said you have setup other servers, I would assume these are game servers on the same connection/lan/home network? Also this is a simply network with only one router?
good luck, I don't know what else to ask.
MajorDay
01-14-2008, 01:45 PM
Try setting it to your Lan ip address 192.168.0.??? or whatever (it does work)
+set net_ip 192.168.0.???
also add +set net_port 28960
By using your WAN address ppl are trying to connect to your router,not the machine the game is on.
I don't think i need to tell you this,but i will,make sure whatever lan address you use is static.ie: disable dhcp
Then go here and see if your server is listed:
http://stats.callofduty.com/
wong5860
01-14-2008, 03:47 PM
I have set the lan ip manualy .. how ever watching the server start up i see that it gets the local comp ip just fine.. (192.168.1.105).. mmm basicly it works fine on the lan i'm not sure how to test it if i plug that box into the net.. as i will not be able to use my local machines to test once there not on the internet.. so i guess my Q is ..if i plug the linux server directly into the cable modem.. how do i test that its open to the internet without haveing someone else try to connect to the box.. thanks guys for the info..
fyi the command line i'm use'n is basic.. +set dedicated 2 +set net_ip 192.168.1.105 +exec dedicated.cfg +map_rotate and as before i can't see it on the local tab in the ingame browser.. i can if i take the +set dedicated 2 part out.. figured sense dedicated 2 made it an internet server thats why its not on the local browser.. i can connect to it via command line or making it a favorite.. but thats what made me think it was setup correctly.. as for an internet only server i should not be able to see it on the local tab for the ingame browsers.. atleast thats how i have always thought it to be for other game servers.. I used to run quite a few back in the day but after setting up this new office and moving its been a few years sense i have hosted a game server.. anyways thanks again guys for your time.. i'm wondering if there is any information i could provide that would help please let me know i'll be more then happy to provide anything i can. again for the ipv4/6 tables i have disabled them .. and checked the cfg files to make sure the proper ports were open.. still no luck there. i have even called linksys to see if there was a firm ware issue.. (as thats normaly what the problems are with weird router issues) and have been told it should be working fine via there product.. back to the board here. --- info below
Server = Linux Fedora 8 ( SELinux is disabled default ) - used both GUI firewall utilitys as well as manual console edits.
Client = Vista box.. i use this to play on the net normaly.. and i can connect to the server via lan.. 1.4 patch etc working just fine..
router = Linksys -WRT54GS Wireless G broadband router...
internet = comcast..
and again i run web hosting from this box.. SSH servers.. FTP servers.. DNS server and everything else i run works 100% fine so i feel pretty confedent i can open ports and such correctly.. yet not with this issue.. mmmm please let me know what other info would be helpfull
wong5860
01-14-2008, 05:34 PM
well .. i have all the fire walls disabled .. still tweeking with the router.. starting to think maybe its the routers fault.. this is the results of check'n if my server is listed..
Searching for **.***.**.**
If your server isn't listed restart it
If your server is red you need to not set the protocol in your config files
If your server is blue you need to stop your server for at least 30 minutes and then restart
Click on the server address for more detailed info
Name Address Game Ver Proto Listed Players Last Seen
76.105.53.66:28960 No response
before the fire walls were disabled.. it didn't even find the server so.. i guess there has been some progress.. how ever i'm not sure why its not responding.. maybe my router is broken? i dunno tho pretty new and never had problems yet .. mm what do these results mean to you guys? is it a cfg issue maybe?
MajorWoody
01-14-2008, 09:39 PM
Got and replied to the PM. Been busy with holidays and classes starting back up. Ignore the PM and let's figure it out here for the benefit of others :)
Is selinux running?
wong5860
01-14-2008, 11:50 PM
No i have SELinux disabled.. not passive at all pure disabled.. .. I had a friend looking at the settings via ssh this afternoon .. he dosn't know much about game servers but he knows how to double check my linux box to make sure SELinux as well as the fire walls were down.. he said i had them down just fine.. i asked him to look at the ports in the iptables to make sure they were correctly entered he said they looked fine.. but sense i had it disabled it shouldn't be a problem. mmm :confused:
thanks again for your time guys
let me know if you wish for me to post anything else via my server settings.. cfg files.. firewall settings.. services.. i'll be more then happy to disclose everything i can i just don't wanna fill up the thread with useless info.. i'll be working on it all night .. look forward to your responses..
:salute:
MajorWoody
01-16-2008, 12:16 AM
I can take a look tomorrow evening. I'll need SSH access though.
I guess we're back to PMing ;)
wong5860
01-16-2008, 09:09 PM
I'll make ya a deal if you can get it up and running with me.. lets time something out i'll be more then happy to give you access .. and after its up and run'n i'll write a new thread to help .. i have done quite a bit of search'n and there arn't that many good linux treads out there.. so maybe sense i had so much fun working on this project i'll have to try my best and make some sorta check list for others to refer to .. so that no one else has such issues
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.