Autor Tema: Problema al instalar nftables en kernel 3.18. (SOLUCIONADO)  (Leído 7620 veces)

Desconectado Pengüin

  • Member
  • ***
  • Mensajes: 242
  • www.daboweb.com
Problema al instalar nftables en kernel 3.18. (SOLUCIONADO)
« en: 03 de Enero de 2015, 10:02:26 pm »
He probado con instalando las dependencias :  :-?
Código: [Seleccionar]
aptitude install libgmp-dev libreadline-devLuego los pasos :
Código: [Seleccionar]
git clone git://git.netfilter.org/nftables
cd nftables
./autogen.sh
./configure
make
make install

y ./configure me arroja esto :

Código: [Seleccionar]
root@Eva:/home/Eva/nftables# cd /home/Eva/nftables
root@Eva:/home/Eva/nftables# ./autogen.sh
root@Eva:/home/Eva/nftables# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for flex... no
checking for lex... no
checking for bison... no
checking for byacc... no
*** Error: No suitable bison/yacc found. ***
    Please install the 'bison' package.
root@Eva:/home/Eva/nftables#

Esta linea no la entiendo donde colocarla y las otras dos que hacer con ellas :

Código: [Seleccionar]
ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes
Código: [Seleccionar]
Building nftables
Libraries
The following libraries are needed

    libmnl: git://git.netfilter.org/libmnl
    libnftnl: git://git.netfilter.org/libnftnl
Y queria saber si es obligatorio instalar la documentación o puedo dejarla sin instalar :
Código: [Seleccionar]
If you want to build the documentation:

aptitude install docbook2x docbook-utils

Y por último que debo hacer con lo que pone aquí :

Código: [Seleccionar]
Note that the usage of ac_cv_func_* may not be needed on your system.
kernel
If you do not have already a Linux git tree, run:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

If you already have a Linux git tree, you can just update to latest sources

cd linux
git pull --rebase

Now that you have the source, you can choose nftables option:

$ make oldconfig

Netfilter Xtables support (required for ip_tables) (NETFILTER_XTABLES) [M/y/?] m
Netfilter nf_tables support (NF_TABLES) [N/m] (NEW) m
  Netfilter nf_tables payload module (NFT_PAYLOAD) [N/m] (NEW) m
  Netfilter nf_tables IPv6 exthdr module (NFT_EXTHDR) [N/m] (NEW) m
  Netfilter nf_tables meta module (NFT_META) [N/m] (NEW) m
  Netfilter nf_tables conntrack module (NFT_CT) [N/m] (NEW) m
  Netfilter nf_tables rbtree set module (NFT_RBTREE) [N/m] (NEW) m
  Netfilter nf_tables hash set module (NFT_HASH) [N/m] (NEW) m
  Netfilter nf_tables counter module (NFT_COUNTER) [N/m] (NEW) m
  Netfilter nf_tables log module (NFT_LOG) [N/m] (NEW) m
  Netfilter nf_tables limit module (NFT_LIMIT) [N/m] (NEW) m
  Netfilter nf_tables nat module (NFT_NAT) [N/m] (NEW) m
  Netfilter x_tables over nf_tables module (NFT_COMPAT) [N/m/?] (NEW) m

IPv4 nf_tables support (NF_TABLES_IPV4) [N/m] (NEW) m
  nf_tables IPv4 reject support (NFT_REJECT_IPV4) [N/m] (NEW) m
  IPv4 nf_tables route chain support (NFT_CHAIN_ROUTE_IPV4) [N/m] (NEW) m
  IPv4 nf_tables nat chain support (NFT_CHAIN_NAT_IPV4) [N/m] (NEW) m

IPv6 nf_tables support (NF_TABLES_IPV6) [M/n] m
  IPv6 nf_tables route chain support (NFT_CHAIN_ROUTE_IPV6) [M/n] m
  IPv6 nf_tables nat chain support (NFT_CHAIN_NAT_IPV6) [M/n] m

Ethernet Bridge nf_tables support (NF_TABLES_BRIDGE) [N/m/y] (NEW) m

Now, you can build your kernel with the usual commands.

On a debian, you can do on a dual core machine:

make -j 2 deb-pkg

Or you can alternately use the old method:

CONCURRENCY_LEVEL=2 make-kpkg --revision 0.1 --rootcmd fakeroot  --initrd   --append-to-version nftables kernel_image kernel_headers


Perdonad por el tocho pero si me podeis ayudar a instalar nftables os lo agradeceria.. :-o
Pen

Desconectado Pengüin

  • Member
  • ***
  • Mensajes: 242
  • www.daboweb.com
Re:Problema al instalar nftables en kernel 3.18.
« Respuesta #1 en: 04 de Enero de 2015, 01:30:07 pm »
He seguido tu consejo desde el siguiente enlace :
Te dejo un tutorial: http://www.braingia.org/webnotes/2014/06/26/installing-nftables-on-debian-7-5/
Y va bien hasta que no he podido instalar dblatex y desde synaptic se me rompe el paquete con solo querer instalarlo y ahora me aparece esto :
Código: [Seleccionar]
apt-get install dblatex
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
No se pudieron instalar algunos paquetes. Esto puede significar que
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios no han sido creados o han
sido movidos fuera de Incoming.
La siguiente información puede ayudar a resolver la situación:

Los siguientes paquetes tienen dependencias incumplidas:
 dblatex : Depende: texlive-latex-extra (>= 2009) pero no va a instalarse
E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.
Código: [Seleccionar]
nft
nft: error while loading shared libraries: libnftnl.so.0: cannot open shared object file: No such file or directory

¿Qué puedo hacer , me tiene cansada la situación?. :blind:
Pen

Desconectado Pengüin

  • Member
  • ***
  • Mensajes: 242
  • www.daboweb.com
Re:Problema al instalar nftables en kernel 3.18.
« Respuesta #2 en: 04 de Enero de 2015, 06:17:33 pm »
Te dejo este enlace al parecer no te carga una libreria y por eso seguro que te dan error las dependencias.
http://www.braingia.org/webnotes/2014/06/13/nft-error-while-loading-shared-libraries-libnftnl-so-0-cannot-open-shared-object-file-no-such-file-or-directory/

Por terminal como superusuaria escribo :
Código: [Seleccionar]
ldconfig y se soluciona aparentemente , gracias fvillalba besos. :destroyer:
Lo doy por solucionado..
Pen

Desconectado Dabo

  • Administrator
  • ******
  • Mensajes: 15348
    • https://www.daboblog.com
Re:Problema al instalar nftables en kernel 3.18. (SOLUCIONADO)
« Respuesta #3 en: 07 de Enero de 2015, 07:34:43 pm »
Gracias por tu ayuda !!! Me alegro también de que esté resuelto  ;-)
Hacking, computing, are in my blood, are a part of me, a part of my life...Debian GNU/Linux rules.

Twitter; https://twitter.com/daboblog
Instagram: @daboblog


www.daboblog.com | www.debianhackers.net | www.caborian.com | www.apachectl.com | www.davidhernandez

 

Aviso Legal | Política de Privacidad | Política de Cookies

el contenido de la web se rige bajo licencia
Creative Commons License