* ipmasq on 2.0.35
@ 1998-08-03 4:00 J. Daniel Powell
1998-08-06 4:00 ` B. James Phillippe
0 siblings, 1 reply; 2+ messages in thread
From: J. Daniel Powell @ 1998-08-03 4:00 UTC (permalink / raw)
I had IP Masquerading working on my 2.0.30 kernel, but now that I have upgraded
to 2.0.35, I am getting errors trying to use ipfwadm. The kernel compiled
without error, and I am confident that I included all the correct config
options, and when I do a ipfwadm -F -p deny, it works fine. It is when I
try ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0 that I get
ipfwadm: setsockopt failed: Invalid argument. Any help is appreciated.
--
J. Daniel Powell
jdpowel2@unity.ncsu.edu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ipmasq on 2.0.35
1998-08-03 4:00 ipmasq on 2.0.35 J. Daniel Powell
@ 1998-08-06 4:00 ` B. James Phillippe
0 siblings, 0 replies; 2+ messages in thread
From: B. James Phillippe @ 1998-08-06 4:00 UTC (permalink / raw)
To: J. Daniel Powell
On 3 Aug 1998, J. Daniel Powell wrote:
> fine. It is when I try ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
> that I get ipfwadm: setsockopt failed: Invalid argument. Any help is
> appreciated.
There is a bug in glibc in that <netinet/ip_fw.h> has the packet and byte
counters hard-coded at 32-bit ints (u_int32_t), whereas the kernel defines
and expects "long" for those values. This makes the glibc-structure
too small and setsockopt() returns EINVAL. You can use the ipfwadm from
RedHat-5.0 or the one from ftp.terran.org.
cheers,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-08-06 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-03 4:00 ipmasq on 2.0.35 J. Daniel Powell
1998-08-06 4:00 ` B. James Phillippe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox