I just tried that:
$ diff -u ufw.service.orig ufw.service --- ufw.service.orig 2018-05-26 13:45:48.696356561 +0100 +++ ufw.service 2018-07-17 16:50:45.545596167 +0100 @@ -2,7 +2,8 @@ Description=Uncomplicated firewall Documentation=man:ufw(8) DefaultDependencies=no -Before=network.target +Before=network-pre.target +Wants=network-pre.target
[Service] Type=oneshot
But after a reboot, nothing changed:
$ sudo ufw status Status: inactive
I just tried that:
$ diff -u ufw.service.orig ufw.service Uncomplicated firewall man:ufw( 8) ncies=no network. target network- pre.target network- pre.target
--- ufw.service.orig 2018-05-26 13:45:48.696356561 +0100
+++ ufw.service 2018-07-17 16:50:45.545596167 +0100
@@ -2,7 +2,8 @@
Description=
Documentation=
DefaultDepende
-Before=
+Before=
+Wants=
[Service]
Type=oneshot
But after a reboot, nothing changed:
$ sudo ufw status
Status: inactive