13,420
edits
Changes
→INVESTIGATION 1: IPTABLES RULES AS A SCRIPT
# Test that your machines can still use ping and ssh to communicate with each other.
# Store the commands you used to modify the iptables into a shell script called: '''firewall_restore.bash'''<br><br>
{{Admon/important |Shell Script Does Not Execute at Reboot| If your shell script does not execute at reboot: first; check that the shell script has execute permissions, in the shell script, use the absolute pathname for iptables (i.e. use the '''which iptables''' command), and it may be useful to issue the iptables command with the '''-w''' option.}}<br><br>
<ol><li value="13">Set up a cron entry so that your rules are automatically applied every time the machine boots.</li>
<li>Now copy the script to your other VMs and make it apply to them when they boot as well.</li>