Can iptables be used to load balance incoming traffic b/w L4 ports?
Hello Guys,
We have an application that can be initialized to listen for incoming udp traffic at any L4 port like 9997 or 9998 etc. We are receiving traffic at the server side (hosting the instances of the application) on port 9996 however if we run a single instance of the application listening on port 9996 to handle all this traffic we run into stability issues, we require to divide incoming traffic on port 9996 among ports 9997, 9998 and 9999 etc (a separate instance of the application will be listening on these ports) equally. I was wondering if we can use iptables as a L4 load-balancer for achieving this? Any help in this regard would be much appreciated.
PFB iptable config at server side:
Chain PREROUTING (policy ACCEPT)
num target prot opt source destination
Chain INPUT (policy ACCEPT)
num target prot opt source destination
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
num target prot opt source destination
Regards,
aaa847
|