OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
Find a file
2018-04-07 13:52:25 +02:00
daemon support rules with type=regexp (closes #127) 2018-04-07 13:52:25 +02:00
proto support rules with type=regexp (closes #127) 2018-04-07 13:52:25 +02:00
ui support rules with type=regexp (closes #127) 2018-04-07 13:52:25 +02:00
.gitignore misc: small fix or general refactoring i did not bother commenting 2018-04-06 13:55:03 +02:00
LICENSE Yo 2017-04-17 16:34:50 +02:00
Makefile misc: small fix or general refactoring i did not bother commenting 2018-04-07 12:38:48 +02:00
README.md added support for a tcp listener (closes #119) 2018-04-07 01:52:43 +02:00
screenshot.png misc: small fix or general refactoring i did not bother commenting 2018-04-06 17:25:35 +02:00

opensnitch

Release Software License Go Report Card

OpenSnitch is a GNU/Linux port of the Little Snitch application firewall.

OpenSnitch

Daemon

The daemon is implemented in Go and needs to run as root in order to interact with the Netfilter packet queue, edit iptables rules and so on, in order to compile it you will need to install the libpcap-dev and libnetfilter-queue-dev libraries on your system, then just:

cd daemon
go build .

Qt5 UI

The user interface is a python script running as a gRPC server on a unix socket, to order to install its dependencies:

cd ui
pip install -r requirements.txt

Running

First, you need to decide in which folder opensnitch rules will be saved, it is suggested that you just:

mkdir -p ~/.opensnitch/rules

Now run the daemon:

sudo /path/to/daemon -ui-socket unix:///tmp/osui.sock -rules-path ~/.opensnitch/rules

And the UI service as your user:

python /path/to/ui/main.py --socket unix:///tmp/osui.sock

You can also use --socket "[::]:50051" to have the UI use TCP instead of a unix socket and run the daemon on another computer with -ui-socket "x.x.x.x:50051" (where x.x.x.x is the IP of the computer running the UI service).

FAQ

Why Qt and not GTK?

I tried, but for very fast updates it failed bad on my configuration (failed bad = SIGSEGV), moreover I find Qt5 layout system superior and easier to use.

Why gRPC and not DBUS?

The UI service is able to use a TCP listener instead of a UNIX socket, that means the UI service itself can be executed on any operating system, while receiving messages from a single local daemon instance or multiple instances from remote computers in the network, therefore DBUS would have made the protocol and logic uselessly GNU/Linux specific.