Solved Custom Kernel Building - make error

Edit: It is solved.

Hello,

I have a FreeBSD 10.1 - RELEASE Sytem installed in a Oracle VirtualBox in a Windows 7 64bit Ultimate.

I am a newbie in FreeBSD. 2 days ago I was trying to enable the PF Firewall as it is described in the Handbook. I did the instructions but I got the following error:

evqMtJR.png


So, I search for a solution, most of them did not work, finally I found a solution that might work in forum.

What it was saying is that I need to configure a custom kernel adding that lines to config:
Code:
# Firewall
device pf
device pflog
device pfsync

# altq
options ALTQ
options ALTQ_CBQ # Class Bases Queuing (CBQ)
options ALTQ_RED # Random Early Detection (RED)
options ALTQ_RIO # RED In/Out
options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC)
options ALTQ_PRIQ # Priority Queuing (PRIQ)
options ALTQ_NOPCC # Required for SMP build

When I did it in Handbook way I got the following make error:

3LqSNQG.png


Well, in Handbook it says this about make error:

If make fails, it is usually due to an error in the kernel configuration file which is not severe enough for config to catch. Review the configuration, and if the problem is not apparent, send an email to the FreeBSD general questions mailing list which contains the kernel configuration file.

My ports tree is up to date. All system is as it installed default with source code now. Since I am a newbie I don't know what to do.

Thanks.
 
The PF module is built into the generic kernel, so that is not the problem. The problem is actually much simpler. /etc/pf.conf is the file containing the firewall instructions. Did you create that file?
 
Well, I didn't know that. Since there is no default file, I tought that there is a problem with something else. Is there a doc which including the instructions for that? I search web for it but I can't find.

Thank you.

Edit: I find the docs. Thank you for help. The doc link.
 
Back
Top