I have the following:
iptables -t nat -A PREROUTING -p tcp --dport 25565
-m statistic --mode nth --every 3 --packet 0 -j REDIRECT --to-port 25565
iptables -t nat -A PREROUTING -p tcp --dport 25565
-j REDIRECT --to-port 25564
With this, what I do is redirect every 3 packages from port 25565 to 25564 , with this I distribute user connections between 2 different processes.
Now I need this to work with 3 or 4, that is, go to port 25565, then 25564, then 25563 and then 25562, and then start again.
Is it possible and how is it done?
Greetings.