Bind multiple ips to SA:MP server
#1

Hi. I have a server which has 2 ips. The problem is that samp only responds to the default eth0 ip, not the requesting ip.

For example, supposing I have two ips assigned to the same server: 1.1.1.1 and 2.2.2.2. The first is the default.

When I query to the first IP (using samp client), when dumping packets I get the following:

Code:
[my ip] > 1.1.1.1
1.1.1.1 > [my ip]
But when I query server 2.2.2.2, I get:
Code:
[my ip] >2.2.2.2
1.1.1.1 > [my ip]
So, I get a response from 1.1.1.1, but I queried IP 2.2.2.2, not 1.1.1.1!

The only way I got ip 2.2.2.2 responding my request was "bind 2.2.2.2" in server.cfg, but, if I do this, ip 1.1.1.1 stop working.
So, what I need is a way to make SAMP respond to the requesting IP.

I tried running a TS3 server and a Minecraft server, both works as expected (i.e responding to requesting ip).

Note: Both IPs 1.1.1.1 and 2.2.2.2 are OVH failover ips.

I know this is possible, because some servers got it working, see:
- IPs 158.69.137.222:7777 and 198.27.88.127:7777 redirect to the same server (fenixzone 2)
- IPs 167.114.34.10:7777 and 167.114.28.244:7777 also redirect the same server (unplayer)

the machine is running on CentOS 6.
Thanks for reading.
Reply


Messages In This Thread
Bind multiple ips to SA:MP server - by lucesita - 08.09.2016, 03:59
Re: Bind multiple ips to SA:MP server - by Sew_Sumi - 08.09.2016, 04:07
Respuesta: Re: Bind multiple ips to SA:MP server - by lucesita - 08.09.2016, 04:13
Re: Bind multiple ips to SA:MP server - by Mark™ - 08.09.2016, 05:30
Re: Bind multiple ips to SA:MP server - by Sew_Sumi - 08.09.2016, 06:20
Re: Bind multiple ips to SA:MP server - by Sublime - 08.09.2016, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)