Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Dragos-Anton Manolescu <dragos.manolescu@acm.org>
Subject: ipfwadm (Was: masquerading with 2.0.35)
Date: 1998/12/11	[thread overview]
Message-ID: <m3lnketh84.fsf_-_@hoth.ncsa.uiuc.edu> (raw)
In-Reply-To: 33e67fb248%hhv@node102bd.A2000.nl

>>> Huib Verweij writes:

Hi,

>> has anyone got ip forwarding or masquerading to work under Linux/Alpha?  i
>> must have tried 4 different kernels, 3 different kinds of Alphas with no
>> avail!  keep getting: setsockopt failed: Invalid argument

hv> Try the 2.3.0-5 rpm from RedHat.

Well, I got the source rpm, compiled it on a RH5.2 and I still get the
same error:

# ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
ipfwadm: setsockopt failed: Invalid argument

I'm running the 2.0.36 kernel compiled with the options mentioned in
IP-Masquerading mini-HOWTO. Here's the log for the ipfwadm build:

# rpm --rebuild ipfwadm-2.3.0-5.src.rpm 
Installing ipfwadm-2.3.0-5.src.rpm
Executing: %prep
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf ipfwadm-2.3.0
+ /bin/gzip -dc /usr/src/redhat/SOURCES/ipfwadm-2.3.0.tar.gz
+ tar -xvvf -
drwxrwxr-x root/root         0 1996-07-30 06:54 ipfwadm-2.3.0/
-rw-r--r-- root/root     17982 1996-07-30 06:54 ipfwadm-2.3.0/COPYING
-rw-r--r-- root/root      4049 1996-07-30 06:54 ipfwadm-2.3.0/ChangeLog
-rw-r--r-- root/root      1544 1996-07-30 06:54 ipfwadm-2.3.0/Makefile
-rw-r--r-- root/root      3780 1996-07-30 06:54 ipfwadm-2.3.0/README
-rw-r--r-- root/root     19365 1996-07-30 06:54 ipfwadm-2.3.0/ipfw.4
-rw-r--r-- root/root     13022 1996-07-30 06:54 ipfwadm-2.3.0/ipfwadm.8
-rw-r--r-- root/root     51930 1996-07-30 06:54 ipfwadm-2.3.0/ipfwadm.c
-rw-r--r-- root/root       423 1996-07-30 06:54 ipfwadm-2.3.0/ipfwadm.lsm
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd ipfwadm-2.3.0
+ chown -R root .
+ chgrp -R root .
+ chmod -R a+rX,g-w,o-w .
+ echo Patch #0:
Patch #0:
+ patch -p1 -s
+ exit 0
Executing: %build
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd ipfwadm-2.3.0
+ make COPTS=-O2
gcc -Wall -O2 -o ipfwadm ipfwadm.c
ipfwadm.c: In function `read_procinfo':
ipfwadm.c:1635: warning: long unsigned int format, different type arg (arg 12)
ipfwadm.c:1635: warning: long unsigned int format, different type arg (arg 13)
+ exit 0
Executing: %install
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd ipfwadm-2.3.0
+ rm -rf /var/tmp/ipfwadm-root
+ mkdir -p /var/tmp/ipfwadm-root/sbin
+ mkdir -p /var/tmp/ipfwadm-root/usr/man/man4
+ mkdir -p /var/tmp/ipfwadm-root/usr/man/man8
+ install -m 755 ipfwadm /var/tmp/ipfwadm-root/sbin
+ install -m 755 ipfw.4 /var/tmp/ipfwadm-root/usr/man/man4
+ install -m 755 ipfwadm.8 /var/tmp/ipfwadm-root/usr/man/man8
+ exit 0
Processing files: ipfwadm
Executing: %doc
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd ipfwadm-2.3.0
+ DOCDIR=/var/tmp/ipfwadm-root/usr/doc/ipfwadm-2.3.0
+ export DOCDIR
+ rm -rf /var/tmp/ipfwadm-root/usr/doc/ipfwadm-2.3.0
+ /bin/mkdir -p /var/tmp/ipfwadm-root/usr/doc/ipfwadm-2.3.0
+ cp -pr COPYING ChangeLog README ipfwadm.lsm /var/tmp/ipfwadm-root/usr/doc/ipfwadm-2.3.0
+ exit 0
Finding provides...
Finding requires...
Requires: ld-linux.so.2 libc.so.6.1
Wrote: /usr/src/redhat/RPMS/alpha/ipfwadm-2.3.0-5.alpha.rpm
Executing: %clean
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd ipfwadm-2.3.0
+ rm -rf /var/tmp/ipfwadm-root
+ exit 0
Executing: --clean
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf ipfwadm-2.3.0
+ exit 0

Any clues?

TIA,

-Dragos



  reply	other threads:[~1998-12-11  5:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-10  5:00 masquerading with 2.0.35 Marco Benton
1998-12-10  5:00 ` mw52
1998-12-11  5:00 ` Huib Verweij
1998-12-11  5:00   ` Dragos-Anton Manolescu [this message]
1998-12-12  5:00     ` ipfwadm (Was: masquerading with 2.0.35) Huib Verweij
1998-12-16  5:00       ` Mike Powers
1998-12-16  5:00         ` Richard Payne
1998-12-12  5:00 ` masquerading with 2.0.35 Raymond Doetjes
1998-12-14  5:00   ` Marco Benton
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