summarylogtreecommitdiffstats
path: root/mullvad-early-boot-blocking.rc
blob: ff564f0eb6f8eb6772cea5541296ead9a1b2266d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/sbin/openrc-run
# OpenRC service unit file to block all traffic during early boot.
# This is required since almost no distributions use a `network-pre.target`,
# which implies it's difficult to ensure that the daemon will start and block
# traffic before any network configuration will be applied.

depend() {
    before mullvad-daemon
}

name=$RC_SVCNAME
description="Mullvad early boot network blocker"
command="/usr/bin/mullvad-daemon"
command_args="--initialize-early-boot-firewall"