Open main menu

CDOT Wiki β

Changes

OPS335 Lab 2b

117 bytes added, 16:24, 7 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>TIP: for the iptables command, use the absolute pathname (i.e. use the '''which iptables''' command).<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