Changes

Jump to: navigation, search

OPS335 Lab 2b

1 byte added, 08:12, 8 February 2017
INVESTIGATION 1: IPTABLES RULES AS A SCRIPT
# Issue an ''iptables command'' to allow icmp traffic from addresses in your virtual network.
# 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>
# Set up a cron entry so that your rules are automatically applied every time the machine boots.
# Now copy the script to your other VMs and make it apply to them when they boot as well.
13,420
edits

Navigation menu