[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

NATing a range of IPs



Hello folks,

Is it possible to NAT a range of IPs?  Like for example:

iptables -t nat -A PREROUTING -p tcp -s <range of IPs> --dport 80 -j REDIRECT --to-port 13001

As you can see what I would like to do is redirect port 80 from the range of IPs (in this case 65.18.71.1 - 65.18.71.240) to port 13001. It works great is I try one IP, or the whole block, I'm just unsure of how you represent a range? I see references to a IP range in the man pages, but no examples.

Thanks,

Matt



Reply to: