Package Details: opensnitch 1.5.1-1

Git Clone URL: https://aur.archlinux.org/opensnitch.git (read-only, click to copy)
Package Base: opensnitch
Description: GNU/Linux port of the Little Snitch application firewall
Upstream URL: https://github.com/evilsocket/opensnitch
Keywords: firewall
Licenses: GPL3
Submitter: crabvk
Maintainer: echizenryoma (tinhtruong, lsf)
Last Packager: echizenryoma
Votes: 35
Popularity: 4.05
First Submitted: 2020-12-05 03:39 (UTC)
Last Updated: 2022-05-01 13:54 (UTC)

Latest Comments

echizenryoma commented on 2022-04-09 01:06 (UTC)

@Rhinoceros fix IPASN DB path

Rhinoceros commented on 2022-04-08 14:22 (UTC)

python-pyinotify is in optdepends "for system notifications", but it's actually required for opensnitch-ui to launch at all. I guess it should be a hard depends?

After installing, opensnitch-ui launches fine, but I get DesktopNotifications not available (install python3-notify2): No module named 'notify2'. I needed to install python-notify2 for this warning to disappear.

I then got the following:

exception loading ipasn db: No module named 'pyasn'
Install python3-pyasn to display IP's network name.

which disappeared after installing python-pyasn, but was replaced by the following:

using IPASN DB: /usr/lib/python3/dist-packages/data/ipasn_20140513_v12.dat.gz
exception loading ipasn db: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/data/ipasn_20140513_v12.dat.gz'
Install python3-pyasn to display IP's network name.

Rhinoceros commented on 2022-04-08 14:13 (UTC)

Thanks for the quick fix @echizenryoma. Works perfectly now!

echizenryoma commented on 2022-04-08 13:29 (UTC)

@Rhinoceros It has been addressed by rm -rf build/lib/tests

Rhinoceros commented on 2022-04-08 12:02 (UTC)

The latest version still installs files at /usr/lib/python3.10/site-packages/tests. It looks like you put the rm in build(), but it needs to go in package(). I'm not sure how to make it python-version agnostic though.

echizenryoma commented on 2022-03-30 00:52 (UTC)

@mattfbacon AchmadFathoni's comment has been addressed by rm -rf tests.

mattfbacon commented on 2022-03-29 20:26 (UTC)

qt5-tools should be included as a make dependency. I got an error about lrelease when I tried to build this package today. BTW, looks like AchmadFathoni's comment still hasn't been addressed.

AchmadFathoni commented on 2022-03-28 09:36 (UTC)

This AUR pollutes /usr/lib/python3.10/site-packages/tests/ Put this at the end of package function rm "$pkgdir/usr/lib/python3.10/site-packages/tests" -r

Kazel commented on 2022-03-26 23:12 (UTC) (edited on 2022-03-26 23:13 (UTC) by Kazel)

i saw a red warning in the gui that notify2 is needed to use system notifications as i was playing around. installed it and the warning was gone. so that's where i got it from. when i remove python-notify2 i get the warning again with python-pyinotify installed and can't use system notifications.

MarsSeed commented on 2022-03-21 07:13 (UTC)

As for system notifications, I cannot verify or disprove if python-notify2 is needed, as I am not using this application.

MarsSeed commented on 2022-03-21 07:12 (UTC)

Uhh, my bad! It's pyinotify (py-i-notify) that's needed for the GUI! ´:-)

MarsSeed commented on 2022-03-20 10:24 (UTC)

@Kazel you are right. OpenSnitch does need python-notify2 for its GUI. Evidence here.

Kazel commented on 2022-03-20 09:57 (UTC)

@echizenryoma can you add python-notify2 as optional dependency? it's needed if you want to use system notifications (preferences/ui).

df8oe commented on 2022-02-11 15:17 (UTC)

~/.cache/yay/opensnitch/src/gopath/pkg/mod/golang.org/x/net@v0.0.0-20191028085509-fe3aa8a45271/http/httpguts/httplex.go:142: Fehler: Nicht genug Argumente für Rückgabe
~/.cache/yay/opensnitch/src/gopath/pkg/mod/golang.org/x/net@v0.0.0-20191028085509-fe3aa8a45271/http/httpguts/httplex.go:144: Fehler: Nicht genug Argumente für Rückgabe

Any ideas how to fix?

rrt commented on 2022-02-07 17:44 (UTC) (edited on 2022-02-07 17:47 (UTC) by rrt)

Error:

python3 -m grpc_tools.protoc -I. --python_out=../ui/opensnitch/ --grpc_python_out=../ui/opensnitch/ ui.proto
/bin/python3: Error while finding module specification for 'grpc_tools.protoc' (ModuleNotFoundError: No module named 'grpc_tools')
make: *** [Makefile:7: ../ui/opensnitch/ui_pb2.py] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Solution:

pip3 install grpcio
pip3 install grpcio-tools

foebybag commented on 2022-02-04 17:34 (UTC)

Append @latest to line 58 and 59 of PKGBUILD.

    go install github.com/golang/protobuf/protoc-gen-go@latest
    go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

This was removed in 2d8d83ce0001993c5af5ae480b2baa1d5cbf298d.

Zame commented on 2022-02-04 15:47 (UTC)

Запускается build()...
go: finding module for package github.com/golang/protobuf/protoc-gen-go
go: downloading github.com/golang/protobuf v1.5.2
go: downloading google.golang.org/protobuf v1.26.0
# github.com/golang/protobuf/protoc-gen-go
loadinternal: cannot find runtime/cgo
go: finding module for package google.golang.org/grpc/cmd/protoc-gen-go-grpc
go: downloading google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0
go: downloading google.golang.org/grpc v1.44.0
go: downloading google.golang.org/protobuf v1.27.1
# google.golang.org/grpc/cmd/protoc-gen-go-grpc
loadinternal: cannot find runtime/cgo
protoc-gen-go: /home/feltsi/.cache/yay/opensnitch/src/gopath/bin/protoc-gen-go
protoc-gen-go-grpc: /home/feltsi/.cache/yay/opensnitch/src/gopath/bin/protoc-gen-go-grpc
~/.cache/yay/opensnitch/src/opensnitch-1.5.0/proto ~/.cache/yay/opensnitch/src/opensnitch-1.5.0
protoc -I. ui.proto --go_out=../daemon/ui/protocol/ --go-grpc_out=../daemon/ui/protocol/ --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative
python3 -m grpc_tools.protoc -I. --python_out=../ui/opensnitch/ --grpc_python_out=../ui/opensnitch/ ui.proto
~/.cache/yay/opensnitch/src/opensnitch-1.5.0
~/.cache/yay/opensnitch/src/opensnitch-1.5.0/daemon ~/.cache/yay/opensnitch/src/opensnitch-1.5.0
go: github.com/google/nftables@v0.0.0-20210514154851-a285acebcad3 requires
        github.com/koneu/natend@v0.0.0-20150829182554-ec0926ea948d: verifying go.mod: github.com/koneu/natend@v0.0.0-20150829182554-ec0926ea948d/go.mod: Get "https://sum.golang.org/lookup/github.com/koneu/natend@v0.0.0-20150829182554-ec0926ea948d": http2: server sent GOAWAY and closed the connection; LastStreamID=79, ErrCode=NO_ERROR, debug="server_shutting_down"
make: *** [Makefile:15: opensnitchd] Ошибка 1
==> ОШИБКА: Произошел сбой в build().
    Прерывание...
 -> error making: opensnitch

sardaukar commented on 2022-02-04 10:44 (UTC) (edited on 2022-02-04 10:47 (UTC) by sardaukar)

Building opensnitch...
==> Making package: opensnitch 1.5.0-1 (sex 04 fev 2022 10:43:28)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading opensnitch-1.5.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   129  100   129    0     0    439      0 --:--:-- --:--:-- --:--:--   440

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1009k    0 1009k    0     0  1090k      0 --:--:-- --:--:-- --:--:-- 1617k
==> Validating source files with sha512sums...
    opensnitch-1.5.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting opensnitch-1.5.0.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
go: finding module for package github.com/golang/protobuf/protoc-gen-go
go: downloading github.com/golang/protobuf v1.5.2
go: downloading google.golang.org/protobuf v1.26.0
# github.com/golang/protobuf/protoc-gen-go
loadinternal: cannot find runtime/cgo
go: finding module for package google.golang.org/grpc/cmd/protoc-gen-go-grpc
go: downloading google.golang.org/grpc v1.44.0
go: downloading google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0
go: downloading google.golang.org/protobuf v1.27.1
# google.golang.org/grpc/cmd/protoc-gen-go-grpc
loadinternal: cannot find runtime/cgo
protoc-gen-go: /var/tmp/pamac-build-sardaukar/opensnitch/src/gopath/bin/protoc-gen-go
protoc-gen-go-grpc: /var/tmp/pamac-build-sardaukar/opensnitch/src/gopath/bin/protoc-gen-go-grpc
/var/tmp/pamac-build-sardaukar/opensnitch/src/opensnitch-1.5.0/proto /var/tmp/pamac-build-sardaukar/opensnitch/src/opensnitch-1.5.0
protoc -I. ui.proto --go_out=../daemon/ui/protocol/ --go-grpc_out=../daemon/ui/protocol/ --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative
python3 -m grpc_tools.protoc -I. --python_out=../ui/opensnitch/ --grpc_python_out=../ui/opensnitch/ ui.proto
/usr/bin/python3: Error while finding module specification for 'grpc_tools.protoc' (ModuleNotFoundError: No module named 'grpc_tools')
make: *** [Makefile:7: ../ui/opensnitch/ui_pb2.py] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Got fixed by removing python-grpcio-tools and installing it as a dep of this package

danisztls commented on 2022-01-30 10:06 (UTC)

go install: version is required when current directory is not in a module
    Try 'go install github.com/golang/protobuf/protoc-gen-go@latest' to install the latest version

kiasoc5 commented on 2021-12-21 18:24 (UTC)

@echizenryoma that was it, forgot to rebuild python-grpcio-tools. thanks

echizenryoma commented on 2021-12-21 04:25 (UTC)

@kiasoc5 maybe reinstall python-grpcio-tools?

kiasoc5 commented on 2021-12-21 04:14 (UTC)

Error with python3 grpc tools. Maybe related to the python 3.10 update?

go: finding module for package github.com/golang/protobuf/protoc-gen-go
go: downloading github.com/golang/protobuf v1.5.2
go: downloading google.golang.org/protobuf v1.26.0
# github.com/golang/protobuf/protoc-gen-go
loadinternal: cannot find runtime/cgo
go: finding module for package google.golang.org/grpc/cmd/protoc-gen-go-grpc
go: downloading google.golang.org/grpc v1.43.0
go: downloading google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0
go: downloading google.golang.org/protobuf v1.23.0
# google.golang.org/grpc/cmd/protoc-gen-go-grpc
loadinternal: cannot find runtime/cgo
protoc-gen-go: /build/opensnitch/src/gopath/bin/protoc-gen-go
protoc-gen-go-grpc: /build/opensnitch/src/gopath/bin/protoc-gen-go-grpc
~/opensnitch/src/opensnitch-1.4.3/proto ~/opensnitch/src/opensnitch-1.4.3
protoc -I. ui.proto --go_out=plugins=grpc:../daemon/ui/protocol/ --go_opt=paths=source_relative
python3 -m grpc_tools.protoc -I. --python_out=../ui/opensnitch/ --grpc_python_out=../ui/opensnitch/ ui.proto
/usr/bin/python3: Error while finding module specification for 'grpc_tools.protoc' (ModuleNotFoundError: No module named 'grpc_tools')
make: *** [Makefile:7: ../ui/opensnitch/ui_pb2.py] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
    Aborting...

kiasoc5 commented on 2021-12-06 03:45 (UTC)

@latest for the two Go modules should no longer be required, I was able to compile and run opensnitch fine without @latest. I did it in a clean chroot however.

tinhtruong commented on 2021-10-01 06:38 (UTC)

Here is what I did to fix the problem: * Download the PKGBUILD file * Change the line (58 and 59) from: go install github.com/golang/protobuf/protoc-gen-go go install google.golang.org/grpc/cmd/protoc-gen-go-grpc

to
go install github.com/golang/protobuf/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
  • Build the package: makepkg PKGBUILD
  • Install the local generated package: sudo pacman -U opensnitch-1.4.1-1-x86_64.pkg.tar.xz

Hope that help.

tester58 commented on 2021-09-10 18:25 (UTC) (edited on 2021-09-10 18:41 (UTC) by tester58)

I try to update, but it fail with this error

go: finding module for package github.com/golang/protobuf/protoc-gen-go
go: downloading github.com/golang/protobuf v1.5.2
go: downloading google.golang.org/protobuf v1.26.0
# github.com/golang/protobuf/protoc-gen-go
loadinternal: cannot find runtime/cgo
go: finding module for package google.golang.org/grpc/cmd/protoc-gen-go-grpc
go: downloading google.golang.org/grpc v1.40.0
go: downloading google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0
go: downloading google.golang.org/protobuf v1.23.0
# google.golang.org/grpc/cmd/protoc-gen-go-grpc
loadinternal: cannot find runtime/cgo
~/.cache/yay/opensnitch/src/opensnitch-1.4.0/proto ~/.cache/yay/opensnitch/src/opensnitch-1.4.0
protoc -I. ui.proto --go_out=plugins=grpc:../daemon/ui/protocol/ --go_opt=paths=source_relative
python3 -m grpc_tools.protoc -I. --python_out=../ui/opensnitch/ --grpc_python_out=../ui/opensnitch/ ui.proto
--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC

See https://grpc.io/docs/languages/go/quickstart/#regenerate-grpc-code for more information.
make: *** [Makefile:4: ../daemon/ui/protocol/ui.pb.go] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
    Aborting...
error making: opensnitch

crabvk commented on 2021-09-10 05:50 (UTC)

I'm not using OpenSnitch anymore, feel free to own the package.

angryfog commented on 2021-06-10 19:06 (UTC)

@crabvk Sorry for the huge delay, it work with the default makepkg.conf! Thanks you a lot

crabvk commented on 2021-06-05 18:27 (UTC) (edited on 2021-06-05 18:29 (UTC) by crabvk)

@angryfog
No build errors on my system.
Try to build in clean chroot with default /etc/makepkg.conf

angryfog commented on 2021-06-05 12:55 (UTC)

Am I the only one with this error? I don't understand, everything is up-to-date and I have tried with go or gcc-go, same problem.

angryfog commented on 2021-06-02 22:17 (UTC) (edited on 2021-06-02 22:23 (UTC) by angryfog)

Hi,

I try to update, but it fail with this error :

net
cgo: cannot load DWARF output from $WORK/b056//cgo.o: decoding dwarf section info at offset 0x0: too short
os/user
cgo: cannot load DWARF output from $WORK/b044//cgo.o: decoding dwarf section info at offset 0x0: too short
make: *** [Makefile:12 : opensnitchd] Erreur 2
Does anyone have an idea?

Thanks for your work anyway,

Best regards

primalmotion commented on 2021-06-02 20:56 (UTC)

works like a charm now. thanks!

crabvk commented on 2021-06-02 20:53 (UTC)

Oops, forgot about new dependency package, fixed now

primalmotion commented on 2021-06-02 19:45 (UTC)

true, but now I get this error

~❯ opensnitch-ui
Traceback (most recent call last):
  File "/usr/bin/opensnitch-ui", line 16, in <module>
    import grpc
  File "/usr/lib/python3.9/site-packages/grpc/__init__.py", line 23, in <module>
    from grpc._cython import cygrpc as _cygrpc
ImportError: libabsl_strings.so.2103.0.1: cannot open shared object file: No such file or directory

crabvk commented on 2021-06-02 17:56 (UTC) (edited on 2021-06-02 17:58 (UTC) by crabvk)

python-grpcio was updated recently with issue fixed

primalmotion commented on 2021-06-02 16:03 (UTC)

After today's pacman -Syu I'm unable to launch the UI

opensnitch-ui
Traceback (most recent call last):
  File "/usr/bin/opensnitch-ui", line 16, in <module>
    import grpc
  File "/usr/lib/python3.9/site-packages/grpc/__init__.py", line 23, in <module>
    from grpc._cython import cygrpc as _cygrpc
ImportError: /usr/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZN4absl12lts_2021032415AsciiStrToLowerEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

Tio commented on 2021-03-19 19:58 (UTC)

I get this error:

==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting v1.3.6.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
make: Entering directory '/var/tmp/pamac-build-tio/opensnitch/src/opensnitch-1.3.6/daemon'
go: github.com/evilsocket/ftrace@v1.2.0: missing go.sum entry; to add it:
    go mod download github.com/evilsocket/ftrace
make: *** [Makefile:12: opensnitchd] Error 1
make: Leaving directory '/var/tmp/pamac-build-tio/opensnitch/src/opensnitch-1.3.6/daemon'
==> ERROR: A failure occurred in build().
    Aborting...

zer0def commented on 2021-03-01 09:40 (UTC)

Fair warning: until it's fixed in a stable release or git, this package has a makedep on go<1.16

user64 commented on 2021-02-12 23:14 (UTC) (edited on 2021-02-12 23:22 (UTC) by user64)

If the GUI status says 'not running':

sudo systemctl enable opensnitchd

sudo systemctl start opensnitchd

francois072 commented on 2021-01-02 23:51 (UTC)

When opening the GUI the status is indicated as not running.

squalou commented on 2020-12-13 14:32 (UTC) (edited on 2020-12-14 07:39 (UTC) by squalou)

Hi, as per request from gustavo-iniguez-goya, could you please switch back this package to original github repo : https://github.com/evilsocket/opensnitch

New developments will be done there.

(see this for details https://github.com/gustavo-iniguez-goya/opensnitch/issues/103 )

UPDATE : keep an eye on the github issue to see when to switch

thanks!

crabvk commented on 2020-12-08 11:21 (UTC)

@LibreHacker
Привет. Не, я на арче, дела нет до s6.

LibreHacker commented on 2020-12-08 11:03 (UTC)

Привет! Сможешь помочь в оформление AUR пакета под систему инициализации s6?

Вот здесь, автор сделал какие то скрипты: https://github.com/gustavo-iniguez-goya/opensnitch/issues/92#issuecomment-739440644