Solved

setsockopt: Protocol not available - what's that?

Posted on 1997-10-31
3
622 Views
Last Modified: 2013-12-15
I am settint up a firewall with IP masquerading. I have followed the HOWTO and compiled the kernel with all the required options. When I follow the HOWTO, I get to a point, where I am supposed to issue the following command:

ipfwadm -F -p deny

At this point I get the following error message:

ipfwadm: setsockopt failed: Protocol not available.

What does it mean and how do I fix it?

Michael Bode
0
Comment
Question by:mbode
3 Comments
 
LVL 2

Expert Comment

by:df020797
ID: 1630342
I ran into this problem myself.
I recompiled the kernel checking so that I answered all questions right. I use make zlilo to compile and install the kernel into lilo right away. After this I booted and booted once again :)
Now on /proc/net a few more files showed up :)
They were missing before :) (ip_forward among them aothe rimportant for IP fw:ing). Dont forget to install ipfwadm program and its header files before you compile the kernel.

Good luck!
0
 

Author Comment

by:mbode
ID: 1630343
Recompiling is the first thing that comes to mind, and I have done it over and over again.
0
 
LVL 4

Accepted Solution

by:
unicorntech earned 80 total points
ID: 1630344
Well I feel that what is wrong is the ip networking. The error message you are getting may mean that ipfwadm is notinstalled correctly. Are there files like ip_acct in /proc/net?

Try typing ipfwadm -A -i and then seeing if this file is in /proc/net...

If it si not then the ipfwadm you have is not installed correctly and I would consider reinstalling it. Let me know how it goes,

Jason
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question