Skip to content

GPL sources for nftables and libraries aggregated with Sophos Protection for Linux

License

Notifications You must be signed in to change notification settings

sophos/spl-netfilter-public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nftables build

This project contains a copy of libmnl, libnftnl and nftables which are built and the resultant nft binary is exported.

Project Dependencies

netfilter

Project URL: https://netfilter.org

The netfilter project provides packet filtering software for the Linux 2.4.x and later kernel series.

Sophos build instructions

  1. Clone this repo
  2. Activate TAP
  3. Run tap fetch netfilter_isolator
  4. Run tap build netfilter_isolator
  5. Output is in nftables/output_rel_x86_64 and nftables/output_rel_arm64

Public build instructions

For libmnl and libnftnl do:

  1. cd <lib dir>
  2. touch *
  3. rm -rf build
  4. mkdir -p build
  5. cd build
  6. ../configure --prefix "<output dir>" LDFLAGS="--static" --disable-shared
  7. make
  8. make install

Set environment variables to respective outputs:

  • export LIBMNL_LIBS=" -L<output dir>/lib -lmnl "
  • export LIBMNL_CFLAGS=" -I<output dir>/include "
  • export LIBNFTNL_LIBS=" -L<output dir>/lib -lnftnl "
  • export LIBNFTNL_CFLAGS=" -I<output dir>/include "

For nftables follow same build steps as libmnl and libnftnl but after setting the environment variables

About

GPL sources for nftables and libraries aggregated with Sophos Protection for Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published