/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */
This is interesting, I tried the portfw sample from the howto like
so:
--------------------------------------
port=2000
while [ $port -lt 2020 ]
do
/usr/local/sbin/ipmasqadm portfw -a -P tcp -L 10.1.2.3 $port -R
192.168.0.10 $port
port=$((port+1)
done
--------------------------------------
It didn't work. So I modified it like so:
--------------------------------------
PORT=2000
while [ $PORT -lt 2019 ]
do
/usr/sbin/ipmasqadm portfw -a -P tcp -L <my ext ip> $PORT -R
<internal icq user ip> $PORT
PORT=`expr $PORT + 1`
done
--------------------------------------
This worked fine. Now I see another way from Jesper Jenson like
this:
--------------------------------------
port=2000
while [ "$port" -le 2100 ]
do
/usr/sbin/ipmasqadm portfw -a -P tcp -L HereIsMyLinuxBoxIP "$port" -R
192.168.0.2 "$port"
let port="$port"+1
done
--------------------------------------
I'm running RedHat 6.0 and using the bash shell. Will different
systems and shells require different syntax?
Ken
(An intermediate Linux user and firewalling neophyte.)
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- THIS INCLUDES
UNSUBSCRIBING!
or email to [EMAIL PROTECTED]
PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.