I am managing a game server prone to DDoS. I have kept the upstream IP secret and only published the addresses of 100 load balancers forwarding traffic via iptables:
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
sysctl -p
iptables -t nat -A PREROUTING -p tcp --dport 1010 -j DNAT --to-destination MAIN_GAME_SERVER_IP6:1010
iptables -t nat -A PREROUTING -p udp --dport 1010 -j DNAT --to-destination MAIN_GAME_SERVER_IP:1010
iptables -t nat -A PREROUTING -p udp --dport 1011 -j DNAT --to-destination MAIN_GAME_SERVER_IP:1011
iptables -t nat -A POSTROUTING -j MASQUERADE
Yet, my upstream IP address has been discovered.
What about my setup could have allowed this to happen?
- None of the load balancing addresses received DoS traffic.
- The upstream server is configured to only respond to traffic from the load balancers.
- My load balancers are reachable through addresses
x.x.x.20
throughx.x.x.60
, with the upstream server sitting atx.x.x.61
.