On Thu, Mar 29, 2001 at 05:40:28PM +0000, Dave Peters wrote:
> 
> Hi all,
> Just joined the list. 
> have found uses either ipfwd or ipportfw. I need to accomplish this with
> ipmasqadm. From what I understand the ipmasqadm replaced the ipfwd and
> ipportfw commands somewhere in the 2.2.x kernel. Is this right? 

you still need ipfwd
> 
> lets assume the server that I am trying to reach is: 10.0.0.99
> my linux box running nat, public ip is: 216.232.243.210
> I currently am able to forward tcp traffic to this with the following
> command:
> ipmasqadm portfw -a -P tcp -L 216.232.243.210 80 -R 10.0.0.99 80
> forwarding all www traffic to my internal box.
> 
> With PPTP I need to forward all traffic with Protocol ID of 47 (0x2F) in
> the same manner. The documentation I have found has the following
> example:
> 
> /sbin/ipfwd --masq 10.0.0.99 47 &

correct also add a --syslog and --debug for testing
> 
> I have tried the following:
> ipmasqadm portfw -a -P 47 -L 216.232.243.210 -R 10.0.0.99
> and
> ipmasqadm portfw -a -P ip -L 216.232.243.210 47 -R 10.0.0.99 47
> and
> ipmasqadm portfw -a -P 0x2F -L 216.232.243.210 -R 10.0.0.99

nope you don't need ahy of those just
ipmasqadm portfw -a -P tcp -L 216.232.243.210 1752 -R 10.0.0.99 1752
which will forward the pptp initialisation stuff

        Alsmo make sure you have the ip_masq vpn/pptp module loaded.

-- 
John Ferlito
Senior Engineer - Bulletproof Networks
ph: +61 (0) 410 519 382
http://www.bulletproof.net.au/

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to