13,420
edits
Changes
no edit summary
===Best Practices===
#Always start with the default iptables settings:
<ol><li value="2">'''Place your iptables commands (i.e. Rules) within a bash script ''' (.bash) so you don't lose it and can rerun it easily.<br><br></li><li>'''If you are disconnected from a VM: ''' Some of the traffic between your host and VirtManager goes through IPtables.<br> When you mess with IPtables rules on the host - you may end up losing the console connection to the virtual machines. '''Don't worry, they're still running and you can still use them'''.</li></ol>
<ol><li value="4">'''If your command didn't work - the easiest thing to do is:'''<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>Go back '''Return to writing work on creating the rule that didn't work'''.</li></ul></li></ol>
===Creating Customized Chains===