* Masq under RedHat 5.2 on a NoName
@ 1999-04-04 5:00 sysv
1999-04-05 4:00 ` memore0
0 siblings, 1 reply; 6+ messages in thread
From: sysv @ 1999-04-04 5:00 UTC (permalink / raw)
Hello, I want to use masq, but it wont work.
[root@w28gate /root]# /sbin/ipfwadm -F -p deny
[root@w28gate /root]# /sbin/ipfwadm -F -a m -S 192.168.2.0/24 -D 0.0.0.0/0
ipfwadm: setsockopt failed: Invalid argument
I made a new kernel, with masq support.
What did I do wrong?
grntz
SysV
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Masq under RedHat 5.2 on a NoName
1999-04-04 5:00 Masq under RedHat 5.2 on a NoName sysv
@ 1999-04-05 4:00 ` memore0
1999-04-08 4:00 ` Ron Farrer
0 siblings, 1 reply; 6+ messages in thread
From: memore0 @ 1999-04-05 4:00 UTC (permalink / raw)
On 4 Apr 1999 15:32:46 GMT, sysv@wijnkist.warande.net () wrote:
>Hello, I want to use masq, but it wont work.
>
>[root@w28gate /root]# /sbin/ipfwadm -F -p deny
>[root@w28gate /root]# /sbin/ipfwadm -F -a m -S 192.168.2.0/24 -D 0.0.0.0/0
>ipfwadm: setsockopt failed: Invalid argument
>
>I made a new kernel, with masq support.
>
>What did I do wrong?
Did you include the firewall options in the kernel?
Did you enable forwarding in the init scripts?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Masq under RedHat 5.2 on a NoName
1999-04-05 4:00 ` memore0
@ 1999-04-08 4:00 ` Ron Farrer
0 siblings, 0 replies; 6+ messages in thread
From: Ron Farrer @ 1999-04-08 4:00 UTC (permalink / raw)
In article <3708ecef.743442174@news.onramp.net>,
memore0@yahoo.com wrote:
> On 4 Apr 1999 15:32:46 GMT, sysv@wijnkist.warande.net () wrote:
>
> >Hello, I want to use masq, but it wont work.
> >
> >[root@w28gate /root]# /sbin/ipfwadm -F -p deny
> >[root@w28gate /root]# /sbin/ipfwadm -F -a m -S 192.168.2.0/24 -D 0.0.0.0/0
> >ipfwadm: setsockopt failed: Invalid argument
> >
> >I made a new kernel, with masq support.
> >
> >What did I do wrong?
>
> Did you include the firewall options in the kernel?
> Did you enable forwarding in the init scripts?
>
>
Deja News was not working for a day or so, so I missed the original message
and some? of the answers...
You need to install the kernel source if it's not already. Then do a "make
config" do whatever you need for you setup and say yes to the experminatal
options. Say yes to most (all?) of the firewall, forwading, and masqurading.
After that do a "make dep ; make clean", then "make boot", copy vmlinux.gz to
/, then "make modules", and last "make modules install".
Get the ipfwadm SRPM for RH5.0 because the one for RH5.1 and 5.2 is broken.
do a "rpm -v --rebuild filename.rpm" (as root) to rebuild the package. You
then should have a binary RPM in /usr/src/redhat/RPMS/alpha after you do all
of that you need to install it with a "rpm -vU --oldpackage package.rpm", you
should then be in business!
If you using a 2.2.X kernel you need to upgrade serveral packages, see
redhat.com for more information.
HTH,
Ron Farrer
--
ALPHA LINUX POWERED and loving it!
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Masq under RedHat 5.2 on a NoName
@ 1999-04-04 5:00 bxfqoxog
0 siblings, 0 replies; 6+ messages in thread
From: bxfqoxog @ 1999-04-04 5:00 UTC (permalink / raw)
>[root@w28gate /root]# /sbin/ipfwadm -F -a m -S 192.168.2.0/24 -D 0.0.0.0/0
>ipfwadm: setsockopt failed: Invalid argument
Hi!
On newer kernels you're supposed to use ipchains, not ipfwadm to setup
firewall rules. Grab it at http://www.rustcorp.com/linux/ipchains/.
Regards,
Jurij
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <199904041815.MAA18722@gortel.phys.ualberta.ca>]
* Re: Masq under RedHat 5.2 on a NoName
[not found] <199904041815.MAA18722@gortel.phys.ualberta.ca>
@ 1999-04-05 4:00 ` sysv
1999-04-07 4:00 ` Shane Steven Sturrock
0 siblings, 1 reply; 6+ messages in thread
From: sysv @ 1999-04-05 4:00 UTC (permalink / raw)
To: michal
> : [root@w28gate /root]# /sbin/ipfwadm -F -p deny
> : [root@w28gate /root]# /sbin/ipfwadm -F -a m -S 192.168.2.0/24 -D 0.0.0.0/0
> : ipfwadm: setsockopt failed: Invalid argument
>
> You are using Red Hat distributed binaries from 5.2. They are compiled
> with wrong headers. Recompile your own.
ehm... ok... like ehm... how?
I had allready downloaded a new kernelsource.
> Or you are in 2.2 kernels? Then you need ipchains.
Nop
Thanx
SysV
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Masq under RedHat 5.2 on a NoName
1999-04-05 4:00 ` sysv
@ 1999-04-07 4:00 ` Shane Steven Sturrock
0 siblings, 0 replies; 6+ messages in thread
From: Shane Steven Sturrock @ 1999-04-07 4:00 UTC (permalink / raw)
On Mon, 5 Apr 1999 12:59:04, <sysv@warande1115.warande.uu.nl> wrote:
>> : [root@w28gate /root]# /sbin/ipfwadm -F -p deny
>> : [root@w28gate /root]# /sbin/ipfwadm -F -a m -S 192.168.2.0/24 -D 0.0.0.0/0
>> : ipfwadm: setsockopt failed: Invalid argument
>>
>> You are using Red Hat distributed binaries from 5.2. They are compiled
>> with wrong headers. Recompile your own.
>ehm... ok... like ehm... how?
>I had allready downloaded a new kernelsource.
>
>
>> Or you are in 2.2 kernels? Then you need ipchains.
>Nop
There is something wrong with the ipfwadm rpm from RH5.1 and 5.2, the
solution is to get the one from RH5.0 which works fine. No idea how
this problem from 5.1 persisted into 5.2 though.
--
Dr. Shane Sturrock - http://nova.bru.ed.ac.uk/~sss
Linux, a better WinNT than WinNT
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-04-08 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-04 5:00 Masq under RedHat 5.2 on a NoName sysv
1999-04-05 4:00 ` memore0
1999-04-08 4:00 ` Ron Farrer
-- strict thread matches above, loose matches on Subject: below --
1999-04-04 5:00 bxfqoxog
[not found] <199904041815.MAA18722@gortel.phys.ualberta.ca>
1999-04-05 4:00 ` sysv
1999-04-07 4:00 ` Shane Steven Sturrock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox