connect-or-cut : Prevent connections to blocked addresses in COMMAND.

connect-or-cut : Prevent connections to blocked addresses in COMMAND.

What it is?
connect-or-cut is a small library to interpose with LD_PRELOAD to a program to prevent it from connecting where it should not.

This is similar to a firewall, except that:
– you do not need to be root to use it
– only processes launched after LD_PRELOAD is set are affected, not the full system

Tested on:
+ Debian GNU/Linux with gcc and clang
+ FreeBSD 11.0-STABLE with clang
+ NetBSD 7 with gcc
+ Solaris 10
+ macOS 10.4

connect-or-cut

You can use connect-or-cut to:
+ Sandbox an untrusted application to prevent all ourgoing connections from it
+ Monitor where an application is connecting to understand how it works
+ Filter out advertising sites during your web navigation

Usage:

Source: https://github.com/tgg