* ip-masquerading
@ 1999-01-15 5:00 Christopher
1999-01-15 5:00 ` ip-masquerading John Walstra
` (4 more replies)
0 siblings, 5 replies; 16+ messages in thread
From: Christopher @ 1999-01-15 5:00 UTC (permalink / raw)
I have a problem when I try to setup ip-masquerading on my linux firewall.
I have compiled my kernel with all the options for networking, firewalling,
ip-masquerading.
The trouble I am having is when I try to setup my firewall with
ip-masquerading.
Here is what is happening
echo "1" > /proc/sys/net/ipv4/ip_forward
<-- no problem
/sbin/depmod -a
<-- no problem
/sbin/modprobe ip_masq_ftp.o
<--no problem
/sbin/modprobe ip_masq_raudio.o
<--no problem
/sbin/modprobe ip_masq_irc.o
<--no problem
/sbin/modprobe ip_masq_cuseeme.o
<--no problem
/sbin/modprobe ip_masq_vdolive.o
<--no problem
/sbin/modprobe ip_masq_quake.o
<-- no problem
/sbin/ipfwadm -F -p deny
<--no problem
/sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0 <--this
command fails
/sbin/route add -net 192.168.0.0
<--no problem
The problem I am having is when I try to the following command
/sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0
I get the error message
ipfwadm: setsockopt failed: Invalid argument
The only way I can get ip-forwarding to work is to type
ipfwadm -F -p masquerade
I am running redhat 5.2 on a DEC alphastation 200 4/233
I have installed a second NIC in the system(the box comes with a nic
installed)
I have read in just about every HOW-TO's I can find of networking,
firewalling, PPP, ipforwarding, net3, kernel, alpha, etc......and have
followed all the instructions in them.
I have eth0 connected to my internal network here at my house. (192.168.0.5)
eth1 is connected to a cable modem with the Cox @home ISP. (24.1.aaa.bb)
Thanks in advance for any help on this.
Christopher
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: ip-masquerading
1999-01-15 5:00 ip-masquerading Christopher
@ 1999-01-15 5:00 ` John Walstra
1999-01-16 5:00 ` ip-masquerading Bart
1999-01-15 5:00 ` ip-masquerading Qkev
` (3 subsequent siblings)
4 siblings, 1 reply; 16+ messages in thread
From: John Walstra @ 1999-01-15 5:00 UTC (permalink / raw)
Christopher wrote:
>
> I have a problem when I try to setup ip-masquerading on my linux firewall.
> I have compiled my kernel with all the options for networking, firewalling,
> ip-masquerading.
>
> The trouble I am having is when I try to setup my firewall with
> ip-masquerading.
> Here is what is happening
>
> echo "1" > /proc/sys/net/ipv4/ip_forward
> <-- no problem
> /sbin/depmod -a
> <-- no problem
> /sbin/modprobe ip_masq_ftp.o
> <--no problem
> /sbin/modprobe ip_masq_raudio.o
> <--no problem
> /sbin/modprobe ip_masq_irc.o
> <--no problem
> /sbin/modprobe ip_masq_cuseeme.o
> <--no problem
> /sbin/modprobe ip_masq_vdolive.o
> <--no problem
> /sbin/modprobe ip_masq_quake.o
> <-- no problem
> /sbin/ipfwadm -F -p deny
> <--no problem
> /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0 <--this
> command fails
> /sbin/route add -net 192.168.0.0
> <--no problem
>
> The problem I am having is when I try to the following command
> /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0
>
> I get the error message
> ipfwadm: setsockopt failed: Invalid argument
>
> The only way I can get ip-forwarding to work is to type
> ipfwadm -F -p masquerade
>
> I am running redhat 5.2 on a DEC alphastation 200 4/233
> I have installed a second NIC in the system(the box comes with a nic
> installed)
> I have read in just about every HOW-TO's I can find of networking,
> firewalling, PPP, ipforwarding, net3, kernel, alpha, etc......and have
> followed all the instructions in them.
>
> I have eth0 connected to my internal network here at my house. (192.168.0.5)
> eth1 is connected to a cable modem with the Cox @home ISP. (24.1.aaa.bb)
>
> Thanks in advance for any help on this.
>
> Christopher
Here what I have, because I use 192.168.1.1 as my local gateway
ipfwadm -F -a m -S 192.168.1.0/16 -D 0.0.0.0/0
I assume (below) should work
ipfwadm -F -a m -S 192.168.0.0/16 -D 0.0.0.0/0
--
John Walstra Motorola, Inc. CIG
mailto:walstra@cig.mot.com 1475 West Shure Drive 2C4
phone :(847) 632-3071 Arlington Heights, IL 60004
fax :(847) 632-4164 Proud member of MotLUG
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: ip-masquerading
1999-01-15 5:00 ` ip-masquerading John Walstra
@ 1999-01-16 5:00 ` Bart
1999-01-16 5:00 ` ip-masquerading John Wolanski
0 siblings, 1 reply; 16+ messages in thread
From: Bart @ 1999-01-16 5:00 UTC (permalink / raw)
Hi all
I am experiencing the same problem on RH 5.1 / Noname. The suggested lines
below are not working either...
I thought it had to do with too small packets from ipfwadm for (certain
versions of?) glibc...?
Anyone have a clue?
Bart
>
> Here what I have, because I use 192.168.1.1 as my local gateway
>
> ipfwadm -F -a m -S 192.168.1.0/16 -D 0.0.0.0/0
>
> I assume (below) should work
>
> ipfwadm -F -a m -S 192.168.0.0/16 -D 0.0.0.0/0
>
> --
-----------
bart(a)rsi-centrum.nl (change (a) to @ when replying; vervang (a) door @
bij antwoorden)
--
bart(a)rsi-centrum.nl (change (a) to @ when replying; vervang (a) door @ bij antwoorden)
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: ip-masquerading
1999-01-16 5:00 ` ip-masquerading Bart
@ 1999-01-16 5:00 ` John Wolanski
1999-01-17 5:00 ` ip-masquerading Ashley
0 siblings, 1 reply; 16+ messages in thread
From: John Wolanski @ 1999-01-16 5:00 UTC (permalink / raw)
Try editing /etc/sysconfig/network and change IPV4_FORWARD= to yes
or true.
Bart wrote:
> I am experiencing the same problem on RH 5.1 / Noname. The suggested lines
> below are not working either...
> I thought it had to do with too small packets from ipfwadm for (certain
> versions of?) glibc...?
> Anyone have a clue?
> > Here what I have, because I use 192.168.1.1 as my local gateway
> > ipfwadm -F -a m -S 192.168.1.0/16 -D 0.0.0.0/0
> > I assume (below) should work
> > ipfwadm -F -a m -S 192.168.0.0/16 -D 0.0.0.0/0
--
-John Wolanski
Remove the "_removethis" from my email address to reply.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: ip-masquerading
1999-01-16 5:00 ` ip-masquerading John Wolanski
@ 1999-01-17 5:00 ` Ashley
0 siblings, 0 replies; 16+ messages in thread
From: Ashley @ 1999-01-17 5:00 UTC (permalink / raw)
Figured that out after 7 kernel compiles and 16hrs of work...
argh...
John Wolanski wrote in message <36A08EBC.D48936F7@juno.com>...
>Try editing /etc/sysconfig/network and change IPV4_FORWARD= to yes
>or true.
>
>Bart wrote:
>> I am experiencing the same problem on RH 5.1 / Noname. The suggested
lines
>> below are not working either...
>> I thought it had to do with too small packets from ipfwadm for (certain
>> versions of?) glibc...?
>> Anyone have a clue?
>> > Here what I have, because I use 192.168.1.1 as my local gateway
>> > ipfwadm -F -a m -S 192.168.1.0/16 -D 0.0.0.0/0
>> > I assume (below) should work
>> > ipfwadm -F -a m -S 192.168.0.0/16 -D 0.0.0.0/0
>
>--
>-John Wolanski
> Remove the "_removethis" from my email address to reply.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: ip-masquerading
1999-01-15 5:00 ip-masquerading Christopher
1999-01-15 5:00 ` ip-masquerading John Walstra
@ 1999-01-15 5:00 ` Qkev
1999-01-16 5:00 ` ip-masquerading Michal Jaegermann
` (2 subsequent siblings)
4 siblings, 0 replies; 16+ messages in thread
From: Qkev @ 1999-01-15 5:00 UTC (permalink / raw)
Christopher wrote:
>
> /sbin/ipfwadm -F -p deny
> /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0 <--this
> command fails
> /sbin/route add -net 192.168.0.0
>
> I get the error message
> ipfwadm: setsockopt failed: Invalid argument
> The only way I can get ip-forwarding to work is to type
> ipfwadm -F -p masquerade
Too bad there no examples for many possible situations using ipfwadm
rules eh...
You might wanna try replacing that 24 with 16... Otherwise it's just
like the docs
say eh... Wait till you wanna run an ftp server on your machine he he..
(email me if anyone has an answer to this one... using serv-u)
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: ip-masquerading
1999-01-15 5:00 ip-masquerading Christopher
1999-01-15 5:00 ` ip-masquerading John Walstra
1999-01-15 5:00 ` ip-masquerading Qkev
@ 1999-01-16 5:00 ` Michal Jaegermann
1999-01-17 5:00 ` ip-masquerading waxhead
` (3 more replies)
1999-01-18 5:00 ` ip-masquerading Guido D
1999-01-25 5:00 ` ip-masquerading Raymond Doetjes
4 siblings, 4 replies; 16+ messages in thread
From: Michal Jaegermann @ 1999-01-16 5:00 UTC (permalink / raw)
Christopher (chrish@doitnow.com) wrote:
: The problem I am having is when I try to the following command
: /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0
: I get the error message
: ipfwadm: setsockopt failed: Invalid argument
ipfwadm distributed with 5.1 (and 5.2) Red Hat on Alpha has broken
binaries. They are recompiled with wrong headers. Recompile yourself
or use binaries from 5.0 distribution. They are ok.
This was reported to Red Hat numerous times. It is their sweet
mystery why they are choosing to ignore that.
Various other responses in this thread qualify as "voodoo computing".
In particular 192.168.0.0 is by a definition class C network, and not B,
with 255.255.255.0 default netmask and 192.168.0.0/24 is correct
unless your internal network was deliberately misconfigured.
If you need an "internal" class B, or even class A, network there
are IP addresses reserved for that.
--mj
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: ip-masquerading
1999-01-16 5:00 ` ip-masquerading Michal Jaegermann
@ 1999-01-17 5:00 ` waxhead
1999-01-17 5:00 ` ip-masquerading Dan Watson
` (2 subsequent siblings)
3 siblings, 0 replies; 16+ messages in thread
From: waxhead @ 1999-01-17 5:00 UTC (permalink / raw)
Hi this is Christopher, I replying from my home account That is why this
message has the name and e-mail of waxhead.
Michal Jaegermann wrote in message <77qvjr$8m0$1@pulp.ucs.ualberta.ca>...
>
>ipfwadm distributed with 5.1 (and 5.2) Red Hat on Alpha has broken
>binaries. They are recompiled with wrong headers. Recompile yourself
>or use binaries from 5.0 distribution. They are ok.
>
I have information for the header file that needs to be changed. But......
How do I recompile the binaries for ipfwadm (command line)?
For now I downloaded the RPM ipfwadm-2_3_0-5_alpha.rpm and installed it.
This older rpm works but I would like to use the new one and recompile it.
(but I'm a newbie to Linux)
>This was reported to Red Hat numerous times. It is their sweet
>mystery why they are choosing to ignore that.
>
>Various other responses in this thread qualify as "voodoo computing".
>In particular 192.168.0.0 is by a definition class C network, and not B,
>with 255.255.255.0 default netmask and 192.168.0.0/24 is correct
>unless your internal network was deliberately misconfigured.
>If you need an "internal" class B, or even class A, network there
>are IP addresses reserved for that.
>
I thank everyone how did reply even if they didn't have the answer I needed.
I had already tried all there sugestions and knew that it wasn't right.
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: ip-masquerading
1999-01-16 5:00 ` ip-masquerading Michal Jaegermann
1999-01-17 5:00 ` ip-masquerading waxhead
@ 1999-01-17 5:00 ` Dan Watson
1999-01-18 5:00 ` ip-masquerading hvdkooij
1999-01-18 5:00 ` ip-masquerading hvdkooij
3 siblings, 0 replies; 16+ messages in thread
From: Dan Watson @ 1999-01-17 5:00 UTC (permalink / raw)
On 16 Jan 1999, Michal Jaegermann wrote:
> Christopher (chrish@doitnow.com) wrote:
>
> : The problem I am having is when I try to the following command
> : /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0
>
> : I get the error message
> : ipfwadm: setsockopt failed: Invalid argument
>
> ipfwadm distributed with 5.1 (and 5.2) Red Hat on Alpha has broken
> binaries. They are recompiled with wrong headers. Recompile yourself
> or use binaries from 5.0 distribution. They are ok.
>
> This was reported to Red Hat numerous times. It is their sweet
> mystery why they are choosing to ignore that.
Another solution is to get a 2.1 kernel and install ipchains. The ipfwadm
scheme has been completely rewritten in the newer kernels and now uses a
package called ipchains. It's a little harder to configure, but a lot
more useful. Plus, you're going to have to do it eventually anyways.
That's what I ended up doing and it might be a good idea if you're
comfortable using a 2.1 kernel.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: ip-masquerading
1999-01-16 5:00 ` ip-masquerading Michal Jaegermann
1999-01-17 5:00 ` ip-masquerading waxhead
1999-01-17 5:00 ` ip-masquerading Dan Watson
@ 1999-01-18 5:00 ` hvdkooij
1999-01-18 5:00 ` ip-masquerading hvdkooij
3 siblings, 0 replies; 16+ messages in thread
From: hvdkooij @ 1999-01-18 5:00 UTC (permalink / raw)
Michal Jaegermann (michal@gortel.phys.ualberta.ca) wrote:
: Christopher (chrish@doitnow.com) wrote:
: : The problem I am having is when I try to the following command
: : /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0
: : I get the error message
: : ipfwadm: setsockopt failed: Invalid argument
: ipfwadm distributed with 5.1 (and 5.2) Red Hat on Alpha has broken
: binaries. They are recompiled with wrong headers. Recompile yourself
: or use binaries from 5.0 distribution. They are ok.
: This was reported to Red Hat numerous times. It is their sweet
: mystery why they are choosing to ignore that.
It may have to do with the hardware. A friend can't get 5.2 working on a Multia with these problems But it works great here on my XLT-300 with the same distribution CD.
Hugo.
--
+------------------------+------------------------------+
| Hugo van der Kooij | Hugo.van.der.Kooij@caiw.nl |
| Oranje Nassaustraat 16 | http://www.caiw.nl/~hvdkooij |
| 3155 VJ Maasland | (De man met de rode hoed) |
+------------------------+------------------------------+
"Computers let you make more mistakes faster than any other invention in
human history, with the possible exception of handguns and tequila."
(Mitch Radcliffe)
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: ip-masquerading
1999-01-16 5:00 ` ip-masquerading Michal Jaegermann
` (2 preceding siblings ...)
1999-01-18 5:00 ` ip-masquerading hvdkooij
@ 1999-01-18 5:00 ` hvdkooij
1999-01-19 5:00 ` ip-masquerading warp
3 siblings, 1 reply; 16+ messages in thread
From: hvdkooij @ 1999-01-18 5:00 UTC (permalink / raw)
Michal Jaegermann (michal@gortel.phys.ualberta.ca) wrote:
: Christopher (chrish@doitnow.com) wrote:
: : The problem I am having is when I try to the following command
: : /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0
: : I get the error message
: : ipfwadm: setsockopt failed: Invalid argument
: ipfwadm distributed with 5.1 (and 5.2) Red Hat on Alpha has broken
: binaries. They are recompiled with wrong headers. Recompile yourself
: or use binaries from 5.0 distribution. They are ok.
: This was reported to Red Hat numerous times. It is their sweet
: mystery why they are choosing to ignore that.
It may have to do with the hardware. A friend can't get 5.2 working on a Multia with these problems But it works great here on my XLT-300 with the same distribution CD.
Hugo.
--
+------------------------+------------------------------+
| Hugo van der Kooij | Hugo.van.der.Kooij@caiw.nl |
| Oranje Nassaustraat 16 | http://www.caiw.nl/~hvdkooij |
| 3155 VJ Maasland | (De man met de rode hoed) |
+------------------------+------------------------------+
"Computers let you make more mistakes faster than any other invention in
human history, with the possible exception of handguns and tequila."
(Mitch Radcliffe)
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: ip-masquerading
1999-01-18 5:00 ` ip-masquerading hvdkooij
@ 1999-01-19 5:00 ` warp
1999-01-20 5:00 ` ip-masquerading hvdkooij
0 siblings, 1 reply; 16+ messages in thread
From: warp @ 1999-01-19 5:00 UTC (permalink / raw)
hvdkooij@bastion.nl3155vj16.vanderkooij.org wrote:
>
> Michal Jaegermann (michal@gortel.phys.ualberta.ca) wrote:
> : Christopher (chrish@doitnow.com) wrote:
>
> : : The problem I am having is when I try to the following command
> : : /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0
>
> : : I get the error message
> : : ipfwadm: setsockopt failed: Invalid argument
>
> : ipfwadm distributed with 5.1 (and 5.2) Red Hat on Alpha has broken
> : binaries. They are recompiled with wrong headers. Recompile yourself
> : or use binaries from 5.0 distribution. They are ok.
>
> : This was reported to Red Hat numerous times. It is their sweet
> : mystery why they are choosing to ignore that.
>
> It may have to do with the hardware. A friend can't get 5.2 working on a Multia with these problems But it works great here on my XLT-300 with the same distribution CD.
No, ipfwadm simply broken in 5.1 and 5.2, see my earlier post :)
FTR, we're also running XLT3xx machines here...
Regards,
Antoine
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: ip-masquerading
1999-01-19 5:00 ` ip-masquerading warp
@ 1999-01-20 5:00 ` hvdkooij
0 siblings, 0 replies; 16+ messages in thread
From: hvdkooij @ 1999-01-20 5:00 UTC (permalink / raw)
warp@xs4all.nl (warp@xs4all.nl) wrote:
: hvdkooij@bastion.nl3155vj16.vanderkooij.org wrote:
: >
: > Michal Jaegermann (michal@gortel.phys.ualberta.ca) wrote:
: > : Christopher (chrish@doitnow.com) wrote:
: >
: > : : The problem I am having is when I try to the following command
: > : : /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0
: >
: > : : I get the error message
: > : : ipfwadm: setsockopt failed: Invalid argument
: >
: > : ipfwadm distributed with 5.1 (and 5.2) Red Hat on Alpha has broken
: > : binaries. They are recompiled with wrong headers. Recompile yourself
: > : or use binaries from 5.0 distribution. They are ok.
: >
: > : This was reported to Red Hat numerous times. It is their sweet
: > : mystery why they are choosing to ignore that.
: >
: > It may have to do with the hardware. A friend can't get 5.2 working on a Multia with these problems But it works great here on my XLT-300 with the same distribution CD.
: No, ipfwadm simply broken in 5.1 and 5.2, see my earlier post :)
: FTR, we're also running XLT3xx machines here...
Then I just don't get it. I have plain RHL 5.2 installed. Made my own kernel and ran ipfwadm without a single problem.
So there must be a bit more to it and that may be the cause to why the problem wasn't solved yet because RedHat couldn't reproduce the problem.
Hugo.
--
+------------------------+------------------------------+
| Hugo van der Kooij | Hugo.van.der.Kooij@caiw.nl |
| Oranje Nassaustraat 16 | http://www.caiw.nl/~hvdkooij |
| 3155 VJ Maasland | (De man met de rode hoed) |
+------------------------+------------------------------+
"Computers let you make more mistakes faster than any other invention in
human history, with the possible exception of handguns and tequila."
(Mitch Radcliffe)
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: ip-masquerading
1999-01-15 5:00 ip-masquerading Christopher
` (2 preceding siblings ...)
1999-01-16 5:00 ` ip-masquerading Michal Jaegermann
@ 1999-01-18 5:00 ` Guido D
1999-01-25 5:00 ` ip-masquerading Raymond Doetjes
4 siblings, 0 replies; 16+ messages in thread
From: Guido D @ 1999-01-18 5:00 UTC (permalink / raw)
> I get the error message
> ipfwadm: setsockopt failed: Invalid argument
>
Yes, it seems you have to recompile the kernel 2.0.x,
since some vendors forgot about some options in the networking
sections - so masquerading does not acutally work. Maybe
you want it to be built directly into the kernel.
But, well, you didn't tell of the osrelease - just in case:
the 2.1.x kernels use 'ipchains' for administration of
masquerade/firewall, not 'ipfwadm'. It's been my fault
some time that had been causing me some serious headache.
ciao
-- guido
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: ip-masquerading
1999-01-15 5:00 ip-masquerading Christopher
` (3 preceding siblings ...)
1999-01-18 5:00 ` ip-masquerading Guido D
@ 1999-01-25 5:00 ` Raymond Doetjes
1999-01-29 5:00 ` ip-masquerading Christopher G. Petty
4 siblings, 1 reply; 16+ messages in thread
From: Raymond Doetjes @ 1999-01-25 5:00 UTC (permalink / raw)
To: Christopher
Ahah, let me guess you use RedHat??? RedHat has some bugs in their ipfwadm,
goto http://www.xos.nl and get that version that is good.
Raymond
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~1999-01-29 5:00 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-15 5:00 ip-masquerading Christopher
1999-01-15 5:00 ` ip-masquerading John Walstra
1999-01-16 5:00 ` ip-masquerading Bart
1999-01-16 5:00 ` ip-masquerading John Wolanski
1999-01-17 5:00 ` ip-masquerading Ashley
1999-01-15 5:00 ` ip-masquerading Qkev
1999-01-16 5:00 ` ip-masquerading Michal Jaegermann
1999-01-17 5:00 ` ip-masquerading waxhead
1999-01-17 5:00 ` ip-masquerading Dan Watson
1999-01-18 5:00 ` ip-masquerading hvdkooij
1999-01-18 5:00 ` ip-masquerading hvdkooij
1999-01-19 5:00 ` ip-masquerading warp
1999-01-20 5:00 ` ip-masquerading hvdkooij
1999-01-18 5:00 ` ip-masquerading Guido D
1999-01-25 5:00 ` ip-masquerading Raymond Doetjes
1999-01-29 5:00 ` ip-masquerading Christopher G. Petty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox