From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9818 invoked from network); 20 Nov 1998 15:31:14 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 20 Nov 1998 15:31:14 -0000 Received: from bic.invengen.com (dow.invengen.com [209.211.69.66]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA12100 for ; Fri, 20 Nov 1998 10:31:14 -0500 Reply-To: From: "Bob Fahey" To: 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 Message-ID: <000501be149a$8122c050$2578a8c0@themis.invengen.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 In-Reply-To: <19981120111846.28500.qmail@hotmail.com> Importance: Normal > 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)