Koozali.org: home of the SME Server

Port Forwarding a range of ports

Dan

Port Forwarding a range of ports
« on: July 23, 2002, 01:39:29 PM »
Hi,
   Can anyone show me an easy way to forward a range of ports (For example TCP 2400 - 2500) to another machine?  I have the Port Forwarding RPM and it works fine but it is painful to try to set up more than a few port forwards one at a time through the server manager.
 Can I hand edit the apropriate file (No I don't know which one! ) and restart the service?

All ideas are appreciated.

Dan

David Davis

Re: Port Forwarding a range of ports
« Reply #1 on: July 23, 2002, 07:47:07 PM »
I also use the port forwarding user panel and the way I forwarded a range in the past is instead of specifying a single port, I specify the range (i.e. 2400-2500).  I think this works, although I am not certain.

Dan

Re: Port Forwarding a range of ports
« Reply #2 on: July 24, 2002, 01:12:03 PM »
Thanks for the reply but after looking at the reponse to        
 /usr/sbin/ipmasqadm portfw -n -l

It looks like xxxx-yyyy only forwards the first port in the range.

Anyone else got any ideas?

Dan