sorry, I missed that too. I don't have time to try autofw, but this will
get you going for now

for port in 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080; do
  ipmasqadm portfw -a -P udp -L <Internet IP> $port -R 192.168.0.2 $port
done

Just add your ports to the for line.

In perl you can do a range 6070 .. 6080, but I don't know how to do it in
bash:)

hth
charles

On Wed, 4 Oct 2000, Nate W wrote:

> > From:    Jeremy Russell [EMAIL PROTECTED]
> >
> > I can successfully forward a single port using:
> >
> > ipmasqadm portfw -a -P tcp -L <Internet IP> <Port> -R <Local IP> <Local Port>
> >
> > I guess that maybe you are just missing the source IP address?
> 
> Yes and no.  Yes, I'm missing the source IP, but I've been trying to
> use "ipmasqadm autofw" instead of "ipmasqadm portfw" and the syntax is
> different.  There's no parameter for the source IP.  Go figure.
> 
> portfw works, but I have to forward ~30 contiguous ports, which means
> 30 commands.  autofw allows you to specify a range of ports in a
> single command, which would be considerably more elegant, if it
> actually worked. :-)
> 
> I guess this is why shell scripting was invented.





_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to