THERE IS AN EASIER WAY

take excel...
and fill up 1 cel with :
ipmasqadm portfw -a -P tcp -L XXX.XXX.XXX.XXX XXXX -R YYY.YYY.YYY.YYY YYYY -p 10
2nd cel
ipmasqadm portfw -a -P tcp -L XXX.XXX.XXX.XXX XX+1 -R YYY.YYY.YYY.YYY YY+1 -p 10
now make them till the disired point
ipmasqadm portfw -a -P tcp -L 123.435.346.123 80 -R 10.0.0.0 80 -p 10
ipmasqadm portfw -a -P tcp -L 123.435.346.123 81 -R 10.0.0.0 81 -p 10
ipmasqadm portfw -a -P tcp -L 123.435.346.123 82 -R 10.0.0.0 82 -p 10
..
take notepad and copy + paste all cells into it.
save the file as makeports upload it to the server
move it with ssh to a disired location
chmod +x (filename)
./(filename)
and voila... 1 good mpdule till reboot..
if u want it to go trough the list every boot :
add the line :
./root/makeports
to /etc/rc.d/rc.local
reboot the pc or run the script.. look if everything went ALLRIGHT and voila

i could make u it easier

(except for making the file for u by meself and upload it etc etc etc

;))
i do advise u to save it somewhere no one else can look... coz info about the internal netword is very handy for crackerz...(not hackerz) it safes them time
