TaoOfSatoshi
Well-known member
thelonecrouton flare So if I replace the IP tables in my guide with the ufw script EXACTLY as you have displayed it here, it will activate a firewall right away, and every time the VPS reboots? I only ask because you said "basics". I want to be sure on this one! Please advise.If you want to run it each boot:
...select editor if asked, nano is easiest...Code:crontab -e
add this to the end of the file:
Code:@reboot /path/to/script.sh
Or just use ufw, far easier than iptables, here's the basics, you only need to do this once:
Code:sudo apt-get install ufw (if needed, and you may need to 'sudo apt-get update' first as well) sudo ufw allow ssh/tcp sudo ufw allow 9999/tcp sudo ufw logging on sudo ufw enable sudo ufw status