I have to add redirect rules for several thousand IP ranges but I am complete newbie when it comes to IP tables and want to make sure I got this right..
iptables -t nat -A PREROUTING -p tcp -m iprange --src-range 111.222.333.64-111.222.333.140 --dport 25 -j REDIRECT --to 1025
If I understand correctly, that will forward any IP between
111.222.333.140 that was destined for port
25 to redirect instead to port
1025, is this correct?