Skip to content
WJunction - Webmaster Forum

Need Centos Iptables Help

Status
Not open for further replies.
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?
 

4 comments

Status
Not open for further replies.

About the author

C
Active Member · Joined
71
Messages
12
Reactions
8
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom