Solved

setsockopt: Protocol not available - what's that?

Posted on 1997-10-31
3
609 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now