I wrote this to redirect all ports to a single machine, but I don't know if it is working properly. Is it possible to direct the entire port range to a single machine like DMZ Logic?
Code:
post-up iptables -t nat -A PREROUTING -p tcp --dport 0:8005 -j DNAT --to-destination 192.168.128.185:0-8005
post-down iptables -t nat -D PREROUTING -p tcp --dport 0:8005 -j DNAT --to-destination 192.168.128.185:0-8005
post-up iptables -t nat -A PREROUTING -p tcp --dport 8007:65535 -j DNAT --to-destination 192.168.128.185:8007-65535
post-down iptables -t nat -D PREROUTING -p tcp --dport 8007:65535 -j DNAT --to-destination 192.168.128.185:8007-65535