Koozali.org: home of the SME Server

Port Forwarding Revisited

i8

Port Forwarding Revisited
« on: May 31, 2001, 09:44:49 AM »
I am setting up port forwarding on my e-smith server.  I have downloaded and installed the e-smith-ipportfw-0.1.1-1.noarch.rpm. and followed the instructions.  I am able to set up a single port forward with no problem using /sbin/e-smith/db configuration setprop masq TCPForwards 999,192.168.1.65 this will forward all incoming tcp traffic on port 999 to the correct machine.  

My problem is, I need a range of ports (999-2000)not just one.  I have tried
/sbin/e-smith/db configuration setprop masq TCPForwards 999:2000,192.168.1.65
and
/sbin/e-smith/db configuration setprop masq TCPForwards 999...2000,192.168.1.65
and
/sbin/e-smith/db configuration setprop masq TCPForwards 999-2000,192.168.1.65
and
/sbin/e-smith/db configuration setprop masq TCPForwards 999,192.168.1.65,1000,192.168.1.65,1001,192.168.1.65 all the way up to 1010

I am assuming none of the above syntax are correct since they didn't show up when I did a /usr/sbin/ipmasqadm portfw -n -l.  Only the 999 one does.  

after each attempt, i cleared the database (/sbin/e-smith/db configuration delprop masq TCPForwards) and refreshed it (/sbin/e-smith/signal-event remoteaccess-update )

If anyone knows how to open a range of ports (999-2000) to a machine (192.168.1.65) please respond, I have spent 3 hours doing this and I just can't seem to figure it out.

Thank you in advance

i8