Opensnitch FIREWALL on OpenRC init
Opensnitch is a firewall on linux, from my experience similar to Simplewall on Windows, user friendly, shows every connection made to which domain/ip, rules, apps, ports, even as which user
By default it adds a systemd script to run at boot so it won't work on OpenRC, but with this simple script it can be made to run at boot
if anyone has a better script or has recommendations on how to better write scripts, please do reply as i am still new to this
First you have to download the opensnitch/opensnitch-git AUR package and then add/modify this script to /etc/init.d/opensnitchd
#!/usr/bin/openrc-run
command=/usr/bin/opensnitchd
command_args="-rules-path /etc/opensnitchd/rules"
pidfile="/run/${RC_SVCNAME}.pid"
start_stop_daemon_args="--background --make-pidfile"
name="OpenSnitch daemon"
description="OpenSnitch is a GNU/Linux port of the Little Snitch application firewall>
depend() {
need net
}
EDITED by a moderator to include code tags.