Ufw does not start after reboot. Run manually:

sudo ufw enable sudo update-rc.d ufw defaults 

Does not help.

  • which package owns /sbin/init ? ( dpkg -S /sbin/init ). - aleksandr barakin
  • Key -f tried? - don Rumata
  • systemd-sysv: / sbin / init - Magi
  • systemd-sysv: / sbin / init If so is sudo update-rc.d ufw defaults, then no changes. - Magi

2 answers 2

 sudo systemctl enable ufw sudo systemctl start ufw 
  • After restarting sudo ufw status Status: inactive - Magi
  • Try to write more detailed answers. Explain what is the basis of your statement? - Nicolas Chabanovsky
  • On entering commands in the console and the response received. So far, none of their advice has, unfortunately, helped. - Magi

The following helped me (ubuntu 14.04.5 LTS): I commented out the lines in the /etc/init/ufw.conf file

 #start on (starting network-interface # or starting network-manager # or starting networking) 

I added the following line to the same file under the commented lines:

 start on startup 

Plus fulfilled the following recommendation:

If you have iptables-persistent installed, you must disable it. Move iptables-persistent from /etc/init.d and rename all symbolic links to rc0.d - rcS.d, making the 1st letter (S or K) in lower case. (Or move them.)

Source: https://translate.googleusercontent.com/translate_c?depth=1&hl=en&prev=search&rurl=translate.google.ru&sl=en&u=https://askubuntu.com/questions/474216/14-04-missing-etc- init-d-ufw-my-firewall-never-auto-starts & usg = ALkJrhitvrM_hGf2sT6ZnpxS42DDKZ8bSw