Skip to content

Opensnitch for Parental Controls #448

Discussion options

You must be logged in to vote

Hi @ERLindeman ,

How can I ensure that internet traffic is not allowed without opensnitch running

You'll have to rely on another app, like ufw, firewalld, or a custom script. Once we're not running we delete our rules, but if there's enough demand for lockdown the system, we could add it as a new feature (like running a post-exit script).

The custom script could be something like this:
monitor-opensnitch.sh

#!/bin/bash

function dropeverything()
{
    iptables -P OUTPUT DROP
}

function allowtraffic()
{
    iptables -P OUTPUT ACCEPT
}

if pgrep opensnitchd &>/dev/null; then
    echo "opensnitchd running"
    allowtraffic
else
    echo "opensnitchd not running"
    dropeverything
fi

chm…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ERLindeman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants