Ufw does not start after reboot. Run manually:
sudo ufw enable sudo update-rc.d ufw defaults Does not help.
sudo systemctl enable ufw sudo systemctl start ufw 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://ru.stackoverflow.com/questions/520761/
All Articles
/sbin/init? (dpkg -S /sbin/init). - aleksandr barakin