Luis Teixeira <luisteixeir...@gmail.com> escreveu no dia quarta, 7/08/2019
à(s) 23:09:

> Boa noite amigos,
>
> Estou com dificuldades na compilação do kernel, segue abaixo o que adionei
> no arquivo do novo kernel e o erro:
>
> # PF
> device          pf
> device          pflog
> device          pfsync
> 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_CDNR
> options         ALTQ_PRIQ # Priority Queuing (PRIQ)
> options         ALTQ_NOPCC # Required for SMP build
> options         ALTQ_DEBUG
>
> # IPFW
> options         IPFIREWALL                 # suporte a ipfw
> options         IPFIREWALL_VERBOSE         # suporte aos logs do ipfw
> options         IPFIREWALL_FORWARD         # suporte a ipfw fwd
> options         IPFIREWALL_VERBOSE_LIMIT=500    # limite do log alterado,
> evita DoS local
> options         IPFIREWALL_DEFAULT_TO_ACCEPT    # politica de firewall
> (aberto)
> options         INCLUDE_CONFIG_FILE
> options         IPSTEALTH
>
> # NATD
> options         IPDIVERT     # suporte a NAT via socks
>
> # DUMMYNET (QoS)
> options         DUMMYNET     # suporte ao dummynet
> options HZ=1000 # altera o clock
>
>
> erro retornado:
>
> root@server:/usr/src # make buildkernel KERNCONF=FIREWALL
> make[1]: "/usr/src/Makefile.inc1" line 159: SYSTEM_COMPILER: Determined
> that CC=cc matches the source tree.  Not bootstrapping a cross-compiler.
>
> --------------------------------------------------------------
> >>> Kernel build for FIREWALL started on Wed Aug  7 19:08:20 -03 2019
> --------------------------------------------------------------
> ===> FIREWALL
> mkdir -p /usr/obj/usr/src/sys
>
> --------------------------------------------------------------
> >>> stage 1: configuring the kernel
> --------------------------------------------------------------
> cd /usr/src/sys/amd64/conf;
>
>  
> PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
>  config  -d /usr/obj/usr/src/sys/FIREWALL  -I '/usr/src/sys/amd64/conf'
> '/usr/src/sys/amd64/conf/FIREWALL'
> WARNING: duplicate option `INCLUDE_CONFIG_FILE' encountered.
> /usr/src/sys/amd64/conf/FIREWALL: unknown option "IPFIREWALL_FORWARD"
> *** Error code 1
>
> Stop.
> make[1]: stopped in /usr/src
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src
>
> se alguém puder ajudar, desde já agradeço
>
>
>
>
> att.
> Luis Teixeira
>
> *.ºvº*. | Linux, porque eu amo a liberdade!
> */(L)\* | Linux User: #420124
> *.^.^.*|
>
> *Socialmente justo, economicamente viável e tecnologicamente sustentável*
> Contatos: (91) 99253-2087 (vivo) -  98423-1293 (claro) Skype: Luis Teixeira
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Olá Luis,

O erro já esta explicito para você na mensagem de saida da compilação:

> /usr/src/sys/amd64/conf/FIREWALL: unknown option "IPFIREWALL_FORWARD"

Eu aconselharia a você dar uma olhadinha nos manuais do NATD e DIVERTD
antes de fazer copy/paste de configuração de kernel e entender o propósito
das ferramentas:

-
https://www.freebsd.org/cgi/man.cgi?query=natd&apropos=0&sektion=0&manpath=FreeBSD+12.0-RELEASE+and+Ports&arch=default&format=html

-
https://www.freebsd.org/cgi/man.cgi?query=divert&sektion=4&apropos=0&manpath=FreeBSD+12.0-RELEASE+and+Ports

Abraços e boa aventura no BSD !

Luiz Gustavo Costa
http://www.luizgustavo.pro.br
-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

Responder a