Two IP addresses, one server, please help.
Here in Brazil we have some serious issues with routing hence most players from ISP X will likely lag a lot more than players from ISP Y, fortunately I got two connections, one is a 35Mbps vdsl with 5Mbps upload and the other one is a regular dsl 15Mbps with 1Mbps upload.
My server has two nics, ISP #1 is 192.168.1.10 and ISP #2 is 10.0.0.10, both behind routers and properly forwarded. I can connect from either internal IPs just fine but I can't connect from the external IP of the second IP for nothing, I've set the "ip 0.0.0.0" so HLDS will listen on all IPs but no luck. If I disable the ISP #1 ethernet adapter the ISP #2 works just fine. What I can't understand is the fact I can connect from both internal IPs just fine which shows me HLDS can handle more than an IP but why the traffic forwarded from ISP #2 wont hit the HLDS server? Thanks |
Re: Two IP addresses, one server, please help.
Neither of those IPs are assigned by your ISP(s). It's just not possible. Both of those IPs are reserved for internal private networks. Only those connected to your router directly (wired or wireless or maybe VPN) will be able to access those IPs.
See: Reserved IP Addresses |
Re: Two IP addresses, one server, please help.
Both are directly connected to my two routers and forwarded as I mentioned in the first post.
The 2 IP addresses are accessible outside by an external IP address which is acquired by my routers but HLDS refuses to work externally with ISP #2 unless I shut down ISP #1. |
Re: Two IP addresses, one server, please help.
So, the computer that is running HLDS has two network cards? Maybe HLDS can only interact with one at a time.
|
Re: Two IP addresses, one server, please help.
Yep, it has two network cards, I thought the same but the internal LAN IP addresses are both working to connect with HLDS.
Since the router redirects the traffic to the internal IP I don't see why it shouldn't work but it's not, that's what getting me confused! |
Re: Two IP addresses, one server, please help.
HLDS binds itself to 1 IP and only 1 IP. You can attempt to bind it to 0.0.0.0 and see if it will then accept traffic from both. If it doesn't, you can always try and use iptables to redirect the trafic, I've never done it with IPs before, just ports.
If this doesn't work, then you will need to accept that it is not possible |
Re: Two IP addresses, one server, please help.
You can play with some nat rules on iptables (only linux) to let all packets go to hlds ip/port.
The problem is the response will try to go out with just 1 ip address. That can be fixed if you route SOME USERS to ISP1 and OTHER USERS to ISP2 in your internal network. |
Re: Two IP addresses, one server, please help.
Ok, thank you for the helpful responses so far.
HLDS does accept connections from many IP addresses within the local LAN however it doesn't respond to more than one WAN external IP for some unknown reason. I've successfully made it work with both WANs and my players are very happy, they can now choose which connection is less laggy for them and that's great for me since I am balancing the load between them. pfSense did the trick, a FreeBSD based firewall I set up on a mini-itx box with a dual lan intel motherboard plus a dual wan pci-e low profile card. Works wonderfully, either IPs accept connections and I've been using it for a couple of days. Was pretty easy, except for finding the low profile gbit card. Thank you :) |
Re: Two IP addresses, one server, please help.
Quote:
|
| All times are GMT -4. The time now is 23:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.