Open main menu

CDOT Wiki β

Changes

OPS335 Lab 2b

41 bytes added, 07:13, 8 February 2017
INVESTIGATION 1: IPTABLES RULES AS A SCRIPT
# 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># <li>Reboot each machine and make sure this works before you move on.</li></ol>
'''Record your observations in this section on your OPS335 lab log-book'''
13,420
edits