Click to See Complete Forum and Search --> : port forwarding for a range


podexrex
11-15-2004, 07:49 PM
I am trying to forward all traffic from a range of ports (as opposed to a single port) to an ip/host on my network.
Example>>> 2000 to 2999 forwarded ONLY to 192.168.2.13
I have tried using several of the POSTROUTING commands, etc with no luck.
I was thinking I could just do something like this>>>
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2000:2999 -j ACCEPT
(not sure if the 2000:2999 syntax is correct???)
I think if I do it like above, it may just open up that range of ports to the whole network...which I do not want.

So I am sure I need to use forwarding, but really not sure where to start???

Any clues??

Thanks!

JohnT
11-17-2004, 03:53 PM
I would suggest trying from.... 2000-2999

podexrex
11-17-2004, 06:33 PM
...so use a dash ( - ) instead of a colon ( : ) ?

Thanks!