* ipfwadm problems
@ 1998-07-16 4:00 theodore brace
1998-07-16 4:00 ` Paul Tomblin
1998-07-16 4:00 ` Paul Tomblin
0 siblings, 2 replies; 8+ messages in thread
From: theodore brace @ 1998-07-16 4:00 UTC (permalink / raw)
Hello,
I have an AS200 with RedHat 5.1 installed. I can't seem to get ipfwadm
to forward packets (masquerade). I've done this countless times on
my intel redhat (4.1) box, but on the alpha 5.1 box I always get:
ipfwadm: setsockopt failed: Invalid argument
Is this a RH 5.1 problem, a glibc problem, or an alpha kernel problem?
I would greatly appreciate any and all help.
-TB
--
--------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ipfwadm problems
1998-07-16 4:00 ipfwadm problems theodore brace
1998-07-16 4:00 ` Paul Tomblin
@ 1998-07-16 4:00 ` Paul Tomblin
1 sibling, 0 replies; 8+ messages in thread
From: Paul Tomblin @ 1998-07-16 4:00 UTC (permalink / raw)
In a previous article, theodore brace <brace@servtech.com> said:
> ipfwadm: setsockopt failed: Invalid argument
>
>Is this a RH 5.1 problem, a glibc problem, or an alpha kernel problem?
>I would greatly appreciate any and all help.
>
Probably a "I didn't recompile the kernel with ipfw enabled" problem. It
works just fine for me. (Ok, I'm still using RH 5.0, but others on AXP list
are using 5.1)
--
Paul Tomblin, ptomblin@xcski.com.
"An appointment is an engagement to see someone, while a morningstar is a
large lump of metal used for viciously crushing skulls. It is important not
to confuse the two, isn't it, Mr. --?" - Terry Pratchett
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ipfwadm problems
1998-07-16 4:00 ` Paul Tomblin
@ 1998-07-16 4:00 ` theodore brace
1998-07-16 4:00 ` Kent Kuhler
1998-07-17 4:00 ` B. James Phillippe
1 sibling, 1 reply; 8+ messages in thread
From: theodore brace @ 1998-07-16 4:00 UTC (permalink / raw)
No, I recompiled. Tried both 2.0.34, and 2.0.30. Same results with
both ....
-TB
Paul Tomblin <ptomblin@canoe.xcski.com> wrote:
: In a previous article, theodore brace <brace@servtech.com> said:
: > ipfwadm: setsockopt failed: Invalid argument
: >
: >Is this a RH 5.1 problem, a glibc problem, or an alpha kernel problem?
: >I would greatly appreciate any and all help.
: >
: Probably a "I didn't recompile the kernel with ipfw enabled" problem. It
: works just fine for me. (Ok, I'm still using RH 5.0, but others on AXP list
: are using 5.1)
: --
: Paul Tomblin, ptomblin@xcski.com.
: "An appointment is an engagement to see someone, while a morningstar is a
: large lump of metal used for viciously crushing skulls. It is important not
: to confuse the two, isn't it, Mr. --?" - Terry Pratchett
--
--------------------------------------------------------------------------
Ted Brace | Now with the strength of
brace at servtech.com | ten grinches, plus two.
--------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ipfwadm problems
1998-07-16 4:00 ipfwadm problems theodore brace
@ 1998-07-16 4:00 ` Paul Tomblin
1998-07-16 4:00 ` theodore brace
1998-07-17 4:00 ` B. James Phillippe
1998-07-16 4:00 ` Paul Tomblin
1 sibling, 2 replies; 8+ messages in thread
From: Paul Tomblin @ 1998-07-16 4:00 UTC (permalink / raw)
In a previous article, theodore brace <brace@servtech.com> said:
> ipfwadm: setsockopt failed: Invalid argument
>
>Is this a RH 5.1 problem, a glibc problem, or an alpha kernel problem?
>I would greatly appreciate any and all help.
>
Probably a "I didn't recompile the kernel with ipfw enabled" problem. It
works just fine for me. (Ok, I'm still using RH 5.0, but others on AXP list
are using 5.1)
--
Paul Tomblin, ptomblin@xcski.com.
"An appointment is an engagement to see someone, while a morningstar is a
large lump of metal used for viciously crushing skulls. It is important not
to confuse the two, isn't it, Mr. --?" - Terry Pratchett
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ipfwadm problems
1998-07-16 4:00 ` theodore brace
@ 1998-07-16 4:00 ` Kent Kuhler
0 siblings, 0 replies; 8+ messages in thread
From: Kent Kuhler @ 1998-07-16 4:00 UTC (permalink / raw)
I am also quite sure it is not a kernel compile issue. I am having the same
problem with 5.1 on a multia. It had worked with RH 5.0, but stopped
working on 5.1. I am fairly sure it is not a kernel issue because I found
that one thing DID work. If you use:
ipfwadm -F -p accept -m
The command is completed without error, and it indeed sets the default
policy to masquerade. My other computers can now access the net, but this
is hardly secure. I would also appreciate any suggestions to rectify this.
It seems that any command that specifies -S or -D fail. The same is true
for other commands including -I and -O. I have attempted to download and
recompile ipfwadm, but get too many errors.
Kent
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ipfwadm problems
1998-07-16 4:00 ` Paul Tomblin
1998-07-16 4:00 ` theodore brace
@ 1998-07-17 4:00 ` B. James Phillippe
1998-07-18 4:00 ` Kent Kuhler
1 sibling, 1 reply; 8+ messages in thread
From: B. James Phillippe @ 1998-07-17 4:00 UTC (permalink / raw)
To: Paul Tomblin
On 16 Jul 1998, Paul Tomblin wrote:
> In a previous article, theodore brace <brace@servtech.com> said:
> > ipfwadm: setsockopt failed: Invalid argument
> >
> >Is this a RH 5.1 problem, a glibc problem, or an alpha kernel problem?
> >I would greatly appreciate any and all help.
> >
>
> Probably a "I didn't recompile the kernel with ipfw enabled" problem. It
> works just fine for me. (Ok, I'm still using RH 5.0, but others on AXP list
> are using 5.1)
It's a bug in glibc for RedHat-5.1. struct ip_fw in <netinet/ip_fw.h>
defines byte and packet counters as u_int32_t whereas they are (64-bit)
longs in the kernel <linux/ip_fw.h>. This makes the size of struct ip_fw
too small and that's why setsockopt() fails from ipfwadm. This is also the
source of the unaligned trap. You can fix the problem by _temporarily_
changing this line in <netinet/ip_fw.h>:
u_int32_t fw_pcnt, fw_bcnt;
Change the u_int32_t to long and rebuild ipfwadm. I've complained about
this problem but havn't heard anything back yet (btw, netstat appears to
suffer similar problems). Perhaps if more people complain, someone
responsible will do something about it. :)
cheers,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ipfwadm problems
1998-07-17 4:00 ` B. James Phillippe
@ 1998-07-18 4:00 ` Kent Kuhler
1998-07-20 4:00 ` Paul J Jarosz
0 siblings, 1 reply; 8+ messages in thread
From: Kent Kuhler @ 1998-07-18 4:00 UTC (permalink / raw)
When I try to compile ipfwadm (with or without the change), I get tons of
error messages. Is there and alpha specific copy of the ipfwadm source ??
If I can't get it to compile, could you send me a copy of the compiled
executable?
Thanks
Kent Kuhler
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ipfwadm problems
1998-07-18 4:00 ` Kent Kuhler
@ 1998-07-20 4:00 ` Paul J Jarosz
0 siblings, 0 replies; 8+ messages in thread
From: Paul J Jarosz @ 1998-07-20 4:00 UTC (permalink / raw)
To: Kent Kuhler
> When I try to compile ipfwadm (with or without the change), I get tons of
> error messages. Is there and alpha specific copy of the ipfwadm source ??
> If I can't get it to compile, could you send me a copy of the compiled
> executable?
>
> Thanks
>
> Kent Kuhler
>
ipfwadm binary compiled for Alpha Red Hat 5.1...
http://www.cs.buffalo.edu/~pjjarosz/linux.htm
Paul
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1998-07-20 4:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-16 4:00 ipfwadm problems theodore brace
1998-07-16 4:00 ` Paul Tomblin
1998-07-16 4:00 ` theodore brace
1998-07-16 4:00 ` Kent Kuhler
1998-07-17 4:00 ` B. James Phillippe
1998-07-18 4:00 ` Kent Kuhler
1998-07-20 4:00 ` Paul J Jarosz
1998-07-16 4:00 ` Paul Tomblin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox