I need to port forward with translation on a range of ports.
If I do:
iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 2000:3000 -j DNAT --to 192.168.1.41:4000-5000
it doesn't work as it should. If I connect to WANIP:2001 it tries to connect to 192.168.1.41:4000 instead that 192.168.1.41:4001.
Is there any way to do this without creating 1000 iptables rules?