I have two network interfaces, eth0 and eth1. eth0 has a public ip, eth1 has 172.16.0.254/24.
I'd like to do the following mapping:
172.16.0.1:22 -> eth0's public ip:2001 172.16.0.2:22 -> eth0's public ip:2002 172.16.0.3:22 -> eth0's public ip:2003 ... 172.16.0.100:22 -> eth0's public ip:2100
I read that iptables supports ranges, but I don't get it working.
How can I achieve this?