Hello guys,

I have a customer and he needs a range of ports opened to his internal ip which in my case is 10.8.1.1

Normally to forward one port i use this command:

iptables -t nat -A PREROUTING -j DNAT -p tcp --dport 12000 --to 10.8.1.1:12000

But if i need like range of ports opened like from 12000 to 22000 which command should i use?
coolsam Reviewed by coolsam on . Need Centos Iptables Help Hello guys, I have a customer and he needs a range of ports opened to his internal ip which in my case is 10.8.1.1 Normally to forward one port i use this command: iptables -t nat -A PREROUTING -j DNAT -p tcp --dport 12000 --to 10.8.1.1:12000 But if i need like range of ports opened like from 12000 to 22000 which command should i use? Rating: 5