- Edit /etc/rc.local file with this command:
sudo nano /etc/rc.local
- Add your script that you want to run on boot process there, for example:
sh /home/ivan/iptables.sh echo 'Iptable Configured!'
- Review the comments included in that file and make sure a exit 0 is at the end.
- Save the file, and your script will run on boot process.