08.09.2016, 03:59
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:
But when I query server 2.2.2.2, I get:
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.
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]
Code:
[my ip] >2.2.2.2 1.1.1.1 > [my ip]
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.