Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Bob Fahey" <bob@invengen.com>
To: <axp-list@redhat.com>
Subject: RE: Anyone else have problems with ip_masq and Alpha Linux kernel 2.0.35??
Date: Fri, 20 Nov 1998 10:29:03 -0500	[thread overview]
Message-ID: <000501be149a$8122c050$2578a8c0@themis.invengen.com> (raw)
In-Reply-To: <19981120111846.28500.qmail@hotmail.com>

> Hello,
> 
> I'm getting a 'invalid argument' when I attempt to setup ip_masq. I read 
> somewhere that there might be a problem with the new Alpha kernel. Does 
> anyone else have more info?? 
> 
> I do have the correct options set when i compiled my kernel. But after a 
> reboot and trying the following..
> 
> ipfwadm -F -p deny
> ipfwadm -F -a m -D 192.168.0.0/24 -S 0.0.0.0/0
> 
> and then I get the 'invalid argument' error. I've checked with several 
> postings that the syntax of the command is correct. 

GREAT question.  I spent about the last 3 days on my Alpha trying to
figure out the exact same problem.

The problem is that, from what I can tell, one of the includes with
glibc 2.0.7 is incorrect, since it assumes you're running on a 32-bit
machine.  This problem still exists even in 2.0.7-29, and needs to be
fixed in the next release, IMHO.  Comments?

I changed /usr/include/netinet/ip_fw.h, and recompiled ipfwadm.  Now
it works just fine.  The change is in the struct ip_fw -- there are
2 arguments, fw_pcnt and fw_bcnt that are defined as u_int32_t.  If
you change these to long, and recompile ipfwadm, it should work fine.

On the same note, when you set up masquerading, don't forget to change
/etc/sysconfig/network, setting FORWARD_IPV4 to true.  I didn't find
a reference to this in the IP-Masquerading HOWTO, but maybe it is
in some other documentation somewhere....

-bob fahey
(bob@invengen.com)


  reply	other threads:[~1998-11-20 15:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-20 11:18 Anyone else have problems with ip_masq and Alpha Linux kernel 2.0.35?? Designer 7
1998-11-20 15:29 ` Bob Fahey [this message]
1998-11-20 16:25 ` jhohertz
1998-11-20 16:45   ` Michael
  -- strict thread matches above, loose matches on Subject: below --
1998-11-20 20:25 Designer 7
1998-11-20 22:09 ` Bob Fahey
1998-11-21  5:54 Designer 7
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox