Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* ipfwadm problem
@ 1998-12-01  2:52 Ken Marin
  1998-12-01  3:06 ` Rich Payne
  0 siblings, 1 reply; 4+ messages in thread
From: Ken Marin @ 1998-12-01  2:52 UTC (permalink / raw)
  To: RH

>I'm running or trying to run an AS200 4/233 with RH5.1.  Everything is
>working well except when I try to run any ipfwadm command I get this
same
>error.  (new user)
>
>[root@home /root]# ipfwadm -F -p deny
>ipfwadm: setsockopt failed: Protocol not available
>[root@home /root]#


I tried the old ipfwadm from 5.0 and the new fixed one.  It still won't
work.  Could it be that  it is not configured in the kernel?  I don't know
how to check.  I tried to compile my
own using ( make mrproper, make xconfig,[chose the options] make dep, make
clean, make modules, make modules_install, make boot)  but no matter what I
try it can't get it to boot from the new kernel. I'm using  2.0.35

If I try to run insmod I get:

[root@home ipv4]# insmod ip_masq_ftp.o
ip_masq_ftp.o: unresolved symbol ip_masq_new
ip_masq_ftp.o: unresolved symbol ip_masq_skb_replace
ip_masq_ftp.o: unresolved symbol ip_masq_expire
ip_masq_ftp.o: unresolved symbol unregister_ip_masq_app
ip_masq_ftp.o: unresolved symbol ip_masq_set_expire
ip_masq_ftp.o: unresolved symbol register_ip_masq_app
ip_masq_ftp.o: unresolved symbol ip_masq_out_get_2
[root@home ipv4]#

(again theres lots of room for new user error)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ipfwadm problem
  1998-12-01  2:52 Ken Marin
@ 1998-12-01  3:06 ` Rich Payne
  1998-12-01  4:19   ` B. James Phillippe
  0 siblings, 1 reply; 4+ messages in thread
From: Rich Payne @ 1998-12-01  3:06 UTC (permalink / raw)
  To: axp-list

Check your .config file after running make xconfig. Many people
have told me that make xconfig and make menuconfig will produce
'broken' .config files. Maybe you could try just a regular make
config.


Ken Marin wrote:
> 
> >I'm running or trying to run an AS200 4/233 with RH5.1.  Everything is
> >working well except when I try to run any ipfwadm command I get this
> same
> >error.  (new user)
> >
> >[root@home /root]# ipfwadm -F -p deny
> >ipfwadm: setsockopt failed: Protocol not available
> >[root@home /root]#
> 
> I tried the old ipfwadm from 5.0 and the new fixed one.  It still won't
> work.  Could it be that  it is not configured in the kernel?  I don't know
> how to check.  I tried to compile my
> own using ( make mrproper, make xconfig,[chose the options] make dep, make
> clean, make modules, make modules_install, make boot)  but no matter what I
> try it can't get it to boot from the new kernel. I'm using  2.0.35
> 
> If I try to run insmod I get:
> 
> [root@home ipv4]# insmod ip_masq_ftp.o
> ip_masq_ftp.o: unresolved symbol ip_masq_new
> ip_masq_ftp.o: unresolved symbol ip_masq_skb_replace
> ip_masq_ftp.o: unresolved symbol ip_masq_expire
> ip_masq_ftp.o: unresolved symbol unregister_ip_masq_app
> ip_masq_ftp.o: unresolved symbol ip_masq_set_expire
> ip_masq_ftp.o: unresolved symbol register_ip_masq_app
> ip_masq_ftp.o: unresolved symbol ip_masq_out_get_2
> [root@home ipv4]#
> 
> (again theres lots of room for new user error)
> 
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

-- 
Rich Payne
www.alphalinux.org


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ipfwadm problem
  1998-12-01  3:06 ` Rich Payne
@ 1998-12-01  4:19   ` B. James Phillippe
  0 siblings, 0 replies; 4+ messages in thread
From: B. James Phillippe @ 1998-12-01  4:19 UTC (permalink / raw)
  To: axp-list

On Mon, 30 Nov 1998, Rich Payne wrote:

> Check your .config file after running make xconfig. Many people
> have told me that make xconfig and make menuconfig will produce
> 'broken' .config files. Maybe you could try just a regular make
> config.

Yes, make menuconfig and xconfig should be removed from the kernel (IMO);
they are broken and/or unmaintained and will produce bogus .config files.
I've never been burned with:

   make config dep clean boot modules{,_install}

> Ken Marin wrote:
> > 
> > >I'm running or trying to run an AS200 4/233 with RH5.1.  Everything is
> > >working well except when I try to run any ipfwadm command I get this
> > same
> > >error.  (new user)
> > >
> > >[root@home /root]# ipfwadm -F -p deny
> > >ipfwadm: setsockopt failed: Protocol not available
> > >[root@home /root]#
> > 
> > I tried the old ipfwadm from 5.0 and the new fixed one.  It still won't
> > work.  Could it be that  it is not configured in the kernel?  I don't know

This problem is not related to the RedHat-shipped-a-busted-ipfwadm problem;
in that case, you will get -EINVAL ("Invalid argument") as a errno for
setsockopt() because the struct used to pass the ipfwadm command is broken
(too small) in glibc.  The error you are getting indicates that forwarding
was not compiled into your kernel.  Make sure you rebuild your kernel with
IP firewalling and forwarding, and then enable the forwarding by doing an:

   echo 1 > /proc/sys/net/ipv4/ip_forward

To make the change permanent, you edit your /etc/sysconfig/network and
change the line that says FORWARD_IPV4= to FORWARD_IPV4=yes.

cheers,
-bp
--
B. James Phillippe	. bryan@terran.org
Linux Engineer/Admin	. http://www.terran.org/~bryan
Member since 1.1.59	. finger:bryan@earth.terran.org


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ipfwadm problem
@ 1998-12-01 10:55 Rick van der Linde
  0 siblings, 0 replies; 4+ messages in thread
From: Rick van der Linde @ 1998-12-01 10:55 UTC (permalink / raw)
  To: axp-list

>On Mon, 30 Nov 1998, Rich Payne wrote:
>
>> Check your .config file after running make xconfig. Many people
>> have told me that make xconfig and make menuconfig will produce
>> 'broken' .config files. Maybe you could try just a regular make
>> config.
>
>Yes, make menuconfig and xconfig should be removed from the kernel (IMO);
>they are broken and/or unmaintained and will produce bogus .config files.
>I've never been burned with:
>
>   make config dep clean boot modules{,_install}
>
>> Ken Marin wrote:
>> >
>> > >I'm running or trying to run an AS200 4/233 with RH5.1.  Everything is
>> > >working well except when I try to run any ipfwadm command I get this
>> > same
>> > >error.  (new user)
>> > >
>> > >[root@home /root]# ipfwadm -F -p deny
>> > >ipfwadm: setsockopt failed: Protocol not available
>> > >[root@home /root]#
>> >
>> > I tried the old ipfwadm from 5.0 and the new fixed one.  It still won't
>> > work.  Could it be that  it is not configured in the kernel?  I don't
know
>
>This problem is not related to the RedHat-shipped-a-busted-ipfwadm problem;
>in that case, you will get -EINVAL ("Invalid argument") as a errno for
>setsockopt() because the struct used to pass the ipfwadm command is broken
>(too small) in glibc.  The error you are getting indicates that forwarding
>was not compiled into your kernel.  Make sure you rebuild your kernel with
>IP firewalling and forwarding, and then enable the forwarding by doing an:
>
>   echo 1 > /proc/sys/net/ipv4/ip_forward
>
>To make the change permanent, you edit your /etc/sysconfig/network and
>change the line that says FORWARD_IPV4= to FORWARD_IPV4=yes.


All right.. This problem will indeed be caused by the make xconfig command.
Try to build it with the make config (not menuconfig or xconfig) However
theres enough said abou this. After this you still might have had troubles.
I
compiled forwarding and masquerading into the kernel and tried to use
the ipfwadm util comming with RedHat 5.1. This one gave a error. The one I
gave some poeple. will work OK.

Rick


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-12-01 11:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-01 10:55 ipfwadm problem Rick van der Linde
  -- strict thread matches above, loose matches on Subject: below --
1998-12-01  2:52 Ken Marin
1998-12-01  3:06 ` Rich Payne
1998-12-01  4:19   ` 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