daemon -> opensnitchd (ref #118)

This commit is contained in:
evilsocket 2018-04-10 18:38:04 +02:00
parent 2355c3c400
commit de3b9216b6
Failed to generate hash of commit
5 changed files with 11 additions and 12 deletions

1
.gitignore vendored
View file

@ -1,4 +1,3 @@
*.sock
*.pyc
rules
daemon/daemon

View file

@ -1,9 +1,9 @@
all: protocol daemon/daemon ui/resources_rc.py
all: protocol daemon/opensnitchd ui/resources_rc.py
protocol:
@cd proto && make
daemon/daemon:
daemon/opensnitchd:
@cd daemon && make
ui/resources_rc.py:
@ -27,7 +27,7 @@ test:
clear
cd ui && sudo pip install --upgrade . && cd ..
opensnitch-ui --socket unix:///tmp/osui.sock &
sudo ./daemon/daemon -ui-socket unix:///tmp/osui.sock
sudo ./daemon/opensnitchd -ui-socket unix:///tmp/osui.sock
adblocker:
clear
@ -39,6 +39,6 @@ adblocker:
clear
cd ui && sudo pip install --upgrade . && cd ..
opensnitch-ui --socket unix:///tmp/osui.sock &
sudo ./daemon/daemon -ui-socket unix:///tmp/osui.sock
sudo ./daemon/opensnitchd -ui-socket unix:///tmp/osui.sock

View file

@ -21,7 +21,7 @@ iptables rules and so on, in order to compile it you will need to install the `p
packages on your system, then just:
cd daemon
go build .
make
### Qt5 UI
@ -47,7 +47,7 @@ First, you need to decide in which folder opensnitch rules will be saved, it is
Now run the daemon:
sudo /path/to/daemon -ui-socket unix:///tmp/osui.sock -rules-path ~/.opensnitch/rules
sudo /path/to/opensnitchd -ui-socket unix:///tmp/osui.sock -rules-path ~/.opensnitch/rules
And the UI service as your user (make sure you installed the UI with pip as in the previous section):

2
daemon/.gitignore vendored
View file

@ -1,2 +1,2 @@
./daemon
opensnitchd
vendor

View file

@ -1,10 +1,10 @@
all: daemon
all: opensnitchd
deps:
@glide up
daemon:
@go build .
opensnitchd:
@go build -o opensnitchd .
clean:
@rm -rf daemon
@rm -rf opensnitchd