Help linux centos home server
Hi dear users,
After half year learning the linux basics and protocol basics, i come today asking for help from more experienced users. I have a game server, wich NEEDS an public ip address, wich means i already tried DMZ on my router, and didnt work. So, i need to setup my centos with a public ip address. Wich is actually easy, if we have a modem, not a router doing NAT. But unfortunatly thats what i have, i have a router with 1 external ip assigned to it, and it doint nat to several computers. Now, this is were my problems start, i tryed alot of things, but my knowledge is not enough. What i wanted is to assigned a public ip to my centos and keep the router doing nat. I tryed out an android app, wich gives me an external ip while connecting to the router. So how can i do the same thing but in my centos server? I hope i provided every info, and someone could help me. If not, just ask, ill answer asap. At this moment, i have no configuration done waiting for instructions. |
Quote:
Public IP is determined by the availability of it and the router (assuming it is your dhcp server) is authorized to issue that. How many public IPs are you granted by the ISP ? Fixing one system to a dedicated public IP can be done by assigning an IP to the system's MAC address; this is easily configured static from/in the router itself. The same thing you may do if you wish to assign/dedicate particular subnet address into single machine. Hope this at least throws a little shed over the problem. Hope it helps. Good luck. |
Quote:
|
this game server, does it have a set range of ports that the user connects or a single port? in either case just setup port forwarding on the router and be done with it. zero reason for the game server to be exposed publicly.
this is not different then setting up for external access via ssh to your server. |
Quote:
|
Surely you can just forward the ports for both servers using your router? I have, for example, forwarded port one port to SSH on one machine and port 80 to a VM with Apache running -- anyone connecting from the outside doesn't need to know whether they're different machines or not.
with game servers you sometimes have problems because each client is given a different port to connect to but this can usually be got around by forwarding a range of ports which I've always seen as an option on the routers I've used. I think the DMZ is supposed to expose all ports and ought to be a good answer but my experience is that, unless my understanding of what the DMZ is is flawed, they simply do not work as advertised on home routers. |
Quote:
|
No, I'm not suggesting you put the loginserver in a VM I though you said it was a separate machine? If these are just server processes on the same machine then they can use the same IP and you just forward the relevant ports.
Why can't you forward the relevant ports in your router's config? |
Quote:
how about some details, what kind of game server is this, and what specific ports are you needing to gain access? |
Quote:
And i apologise, i cant name the gameserver. and the ports are 4001 for loginserver and 4110 for gameserver. These are just an example, the ports are not hardcoded, they are in a config file, wich is read once i start them |
well, no answer for me i presume. Its ok, thanks for trying.
|
How do you tell the LoginServer the IP address of the GameServer? Would you not just replace the internal IP with the external one in the LoginServer's config file? (leaving the relevant ports forwarded in your router, of course)
This Android app you mention -- I take it you mean that it shows you the external IP address of your home network as given by your ISP? If so then it will likely attach to a website called something like whatsmyip.com and open a page there which shows the IP of any machine connecting to it. I've not used one of these sites as I set my own up so I can't give you a reliable name for one. |
yes 273 has it correct. again this is exactly what port forwarding is for. this is 100% its design. this way you can have MULTIPLE SERVICES, read that SERVERS, behind a SINGLE WAN side IP address.
it sounds to me like you are either making this much more complicated then it needs to be, or you are trying to run an illegal game server for something like World of Warcraft or the like. again properly configured port forwarding will resolve this issue for you 100%. if your router is not capable of performing the desired task, then you need to upgrade/replace your router with something that can perform proper port forwarding. |
Quote:
In the latter case the answer is to ask for your money back if it doesn't work on your system. |
Quote:
|
All times are GMT -5. The time now is 11:33 AM. |