I'm trying figure out if it possible to use IPFW/PF to load-balancing traffic to random ports. I would like to have one port that is being open from firewall, IPFW or PF. For example port 5000/udp. all connections that go to this port will be load-balanced via round-robin to port 1194-1197/udp etc.
I used something similar with Linux/iptables before.
but I haven't found anything good in freebsd FreeBSD to achieve the same. Any suggestion?
I used something similar with Linux/iptables before.
Code:
-A PREROUTING -d 11.22.33.44/32 -i eth0 -p udp -m udp --dport 5000 -j REDIRECT --to-ports 1194-1197 --random