[SourceForge.net Logo]

LibNetBlock -

[SourceForge] [Sonar Cloud]

Contents:


Description

LibNetBlock (LIBrary for Blocking Network access) is a library which partially (read below for limitations) ensures that no program under its control can use the network, to ensure the privacy of the user, prevent data leakage and virus spreading. LibNetBlock does this by intercepting calls to some C library functions and replacing them by its own substitutes.

You can think of LibNetBlock as a simple layer-7 (L7) firewall that simply blocks the network access for the program it controls.

See a diagram describing LibNetBlock's operation.

The most up-to-date documentation can be found in the package itself, a generated copy is available here, in the docs directory.

Documentation is also available on the LibNetBlock wiki.


Screenshots of LibNetBlock

Screenshots are available on the SourceForge project page.


Download LibNetBlock

Current version is 1.7.
[Codacy]
[CodeQL] [Semgrep] [SonarCloud]
[Sonar security rating] [Sonar vulnerabilities]
Download this at SourceForge.

Download LibNetBlock

[Feed] LibNetBlock release file feed

RPM dependencies:


Building the software

The most up-to-date instructions can be found in the package itself, a generated copy is available here, in the docs directory.

Requirements for compiling:

Type ./configure to configure the library for your system.

If you want to enable the public interface of LibNetBlock, configure the library with ./configure --enable-public-interface.

The public interface is compatible with SWIG, so you can make native bindings to LibNetBlock for any supported language.

LibNetBlock allows some programs to be banned (not allowed to run under LibNetBlock, because they might need accesss to the network). One banning file is always supported - ${sysconfdir}/libnetblock.progban (${sysconfdir} is /usr/local/etc unless set otherwise during configure).

If you want to disable additional banning files pointed to by environment variables, configure the library with ./configure --enable-environment=no

If you want to disable additional banning files in users' home directories, configure the library with ./configure --enable-user-files=no

Type make to compile the library.

Documentation comes complied (and can be copied right away), but can be changed and recompiled, if you have the makeinfo program (texinfo package).

Type make install to install the library. Read the docs on how to make the library running.

Type info libnetblock (after installation) or info doc/libnetblock.info (before installation) to get help.

THE LIBRARY HAS BEEN TESTED, BUT IT MAY NOW OR LATER CONTAIN ERRORS, WHICH MAY LEAD TO INCORRECT PROGRAM BEHAVIOUR. READ THE LICENSE FOR A WARRANTY (THERE IS NONE).


Limitations

LibNetBlock can do nothing if:


System compatibility

LibNetBlock, in various versions, has been successfully compiled on the following systems:


Reporting issues

Any defects or issues can be reported by e-mail or in the SourceForge project defect manager (in English).

Any improvement suggestions can be reported by e-mail or in the SourceForge project ticket manager (in English).

To report build or installation problems, include:

  1. the compiler name and version (e.g. gcc version 10),
  2. the C standard library name and version (e.g. glibc version 2.x),
  3. the output of the configure script. You can capture it by running ./configure > configure-output.txt 2>&1,
  4. the generated config.log file,
  5. the generated config.h file, if it exists,
  6. the output of the make command. You can capture it by running make > make-output.txt 2>&1,
  7. any other error messages,
  8. any other information that you think could lead to solving the problem.

To report usage problems, include:

  1. all the above things you include when reporting building problems,
  2. a description of the problem that the software causes,
  3. any error messages that are displayed,
  4. any other information that you think could lead to solving the problem.

-- Help in victory, play a game, send regards, or at least stop using some products


My projects on SourceForge

The always-up-to-date list of my SourceForge projects is on my profile page on SourceForge.


My other software


See my other free software:
  1. Certificate and key generators
  2. E-mail address verifiers
  3. LastMod - a script that inserts or updates a META element with the Last-Modified HTTP header
  4. Atom2Rss - a script that converts an Atom (RFC 4287) channel XML file to an RSS 2.0 XML file
  5. List2Atom - a script that generates an Atom (RFC 4287) channel XML file from a list of files
  6. InSyTrack - telemetry software to track program flow (calls) across libraries, threads, programming languages or even different systems on different machines
See also my assembly-related free software:
  1. Kate/KWrite syntax highlighting for NASM/fasm



Contact information

[mail] Contact me: bogdro AT users . sourceforge . net (English accepted, just say '[SOFT]' in the title).

Keys for the bogdro aliases

[certificate] The public certificate for the e-mail: crt format, cer format, pem format, p7b format, p7c format
Certificate's RIPEMD160 fingerprint: 99:4E:9C:0F:D9:1B:F8:D2:F2:AE:E5:18:9F:3B:5C:61:E6:6C:B4:A8
Certificate's SHA256 fingerprint: 26:22:FE:0F:D7:3A:DE:0A:60:4A:99:29:CB:66:3D:DF:10:45:8B:B6:EC:3E:04:31:DA:67:A5:6E:C4:70:30:B9

[certificate] The public certificate for bogdro-soft: crt format, cer format, pem format, p7b format, p7c format
Certificate's RIPEMD160 fingerprint: 01:A7:57:30:52:EB:F6:58:70:AC:EF:DF:C9:74:50:B1:B3:40:BD:47
Certificate's SHA256 fingerprint: D2:B3:73:22:C0:10:DB:62:3F:DB:1D:FC:EC:44:5C:48:21:0C:C5:9B:E1:7D:E3:63:26:CB:3A:B5:94:45:8C:A5

[certificate] The public certificate for bogdro-perl: crt format, cer format, pem format, p7b format, p7c format
Certificate's RIPEMD160 fingerprint: BF:66:A2:24:6C:87:55:53:90:2C:2B:A5:62:26:D8:11:93:AC:41:98
Certificate's SHA256 fingerprint: 45:C6:17:13:CD:19:FF:39:6C:8D:EC:02:86:5E:E5:90:B5:0B:B6:3F:86:68:E2:7F:60:B7:19:FF:7D:B4:0D:24

[certificate] Issuer's certificate: der format
Issuer's certificate's RIPEMD160 fingerprint: D8:F4:50:F0:8F:79:25:CC:65:20:C9:8D:70:1F:63:14:22:B0:12:24
Issuer's certificate's SHA256 fingerprint: 5E:B4:48:78:F7:58:C6:94:D9:C8:04:B2:42:63:24:9F:5F:03:D0:22:E1:C6:55:18:3E:21:D8:4B:F0:7E:7F:11

[keys] The public GnuPG / PGP keys:
Bogdro-sf e-mail, asc format, key number 476249B50EE1F2E59C4005AF67FFC0790E2D6D3C. A verified version is available at PGP® Global Directory entry for bogdro-sf
Bogdro-soft, asc format, key number 7E05C1468119E8C32B69F72E11B90C14CAE8F72A. A verified version is available at PGP® Global Directory entry for bogdro-soft
Bogdro-perl, asc format, key number A17EBF519B8D55F43472997BFCDBA236678656EA. A verified version is available at PGP® Global Directory entry for bogdro-perl

PGP® and Pretty Good Privacy® are registered trademarks of Symantec Corporation in the United States and other countries.

[certificate] The certificate of the timestamping server which confirms the signature time, can be found on freeTSA.org.


Page information

This page is hosted at SourceForge.net.
This page is written using valid HTML 4.01 [Check my HTML 4.01], [Checked by HTML Validator (based on HTML Tidy)], for all browsers: [For all browsers]

This page uses a valid CSS [Check my CSS]

This page has a content security policy.

This page doesn't use GIF images and doesn't use JPG images.

This page is pure HTML and CSS.

The project icon was created using Inkscape™.


Legal information

Oracle®, Java, and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

LINUX® is a registered trademark of Linus Torvalds.

"Fedora" and the Fedora logo are trademarks of Red Hat, Inc.

Debian is a registered trademark of Software in the Public Interest, Inc.

Ubuntu is a registered trademark of Canonical Limited.

FreeBSD is a registered trademark of The FreeBSD Foundation.

macOS® is a registered trademark of Apple Inc.

All other trademarks, logos and names on this page and all subpages are properties of their respective owners and are given here only as an example.