Re: Port forwarding from the ip-up scripts
On 14 Aug 2001 13:17:45 +0100, Ben Tullis wrote:
> Hello folks.
> I am having some degree of trouble getting port forwarding to work
> seamlessly. The firewall is a potato box running ipchains and the default
> ipmasq scripts.
> I can manually run:
> ipmasqadm portfw -a -P tcp -L (current IP address of ppp0) 80 -R
> 192.168.1.50 80
> without any problem, but I have been trying to get it to initialise from the
> ip-up scripts.
> Like this
> # This script is /etc/ppp/ip-up.d/fw
> ipmasqadm portfw -f
> ipmasqadm -p tcp -L $4 80 -R 192.168.1.50 80
It looks like you are missing a few things in the above line. I THINK it should be:
ipmasqadm portfw -a -P tcp -L $4 80 -R 192.168.1.50 80
You have it right on your above line that you manually run.