"It's primary purpose is for usage with firewall services that want to establish a firewall before any network interface is up"
Making the above change solves the problem so that ufw does seem to start up after boot. Is it a bug that ufw.service is not setup this way to start with?
This issue still seems to be a problem in 18.04.
If found a solution: /askubuntu. com/questions/ 1040539/ how-do- i-get-ufw- to-start- on-boot/ 1040584
https:/
I edited /lib/systemd/ system/ ufw.service as follows:
$ diff -u ufw.service.orig ufw.service Uncomplicated firewall man:ufw( 8) ncies=no network. target network- pre.target
--- ufw.service.orig 2018-05-26 13:45:48.696356561 +0100
+++ ufw.service 2018-05-26 14:17:22.030681670 +0100
@@ -2,7 +2,7 @@
Description=
Documentation=
DefaultDepende
-Before=
+After=
[Service]
Type=oneshot
According to this page
https:/ /www.freedeskto p.org/wiki/ Software/ systemd/ NetworkTarget/
the network-pre.target has this purpose:
"It's primary purpose is for usage with firewall services that want to establish a firewall before any network interface is up"
Making the above change solves the problem so that ufw does seem to start up after boot. Is it a bug that ufw.service is not setup this way to start with?