Open main menu

CDOT Wiki β

Changes

OPS335 Firewall Lab

38 bytes added, 09:33, 23 January 2016
no edit summary
<tr> <td>'''Place your iptables commands (i.e. Rules) within a bash script'''</td><td>If you need to reset iptables, then you can run a shell script to quickly apply rules to save time.</td></tr>
<tr> <td>'''Don't Panic if disconnected from a VM'''</td><td> Some of the traffic between your host and VirtManager goes through IPtables.<br> When you mess with IPtables rules on the host, you might end up losing the console connection to the virtual machines.<br>'''Don't worry, they're iptables rules are still running and you can still use them'''.</td></tr>
<tr> <td>Obtain Hostname'''If you most recent iptables Rule messes up your system'''</td><td>uname -n'''Reload the default rules'''. You can do that by restarting the iptables service (you can also do that at the beginning of your shell script).<br>Then '''run your script with all the working iptables commands''' that you already finished.<br>'''Return to work on creating the rule that didn't work'''.</td></tr>
</table>
<ol><li value="4">'''If your command didn't work:'''<ul><li>'''Reload the default rules'''. You can do that by restarting the iptables service (you can also do that at the beginning of your shell script).</li><li>Then '''run your script with all the working iptables commands''' that you already finished.</li><li>'''Return to work on creating the rule that didn't work'''.</li></ul></li></ol>
13,420
edits