Skip to content

Instantly share code, notes, and snippets.

@xdream86
Created January 23, 2017 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xdream86/32fb24d3cf62dbb4a7b8d678cafae3d3 to your computer and use it in GitHub Desktop.
Save xdream86/32fb24d3cf62dbb4a7b8d678cafae3d3 to your computer and use it in GitHub Desktop.
ufw自启动
Hi Oliver
Your solution is the simplest solution and that worked for me. Here's what i did
To start ufw on boot
Create a shell script
Sudo nano start_ufw.sh containing 2 lines
#!/bin/sh
/usr/sbin/ufw enable
Ctrl-X to save it
sudo cp start_ufw.sh /etc/rc.local
To check:
sudo reboot
sudo ufw status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment