Open main menu

CDOT Wiki β

Changes

OPS335 Firewall Lab

30 bytes added, 08:23, 23 January 2016
no edit summary
===Best Practices===
When performing your labs using iptables, refer to this "best practices" chart to prevent wasting time or getting frustrated when trouble-shooting your network connections.  <table border="1" cellspacing="0" cellpadding="5" style="margin-left:51px;">
<tr><td>'''Purpose'''</td><td>'''Older Method'''<br>''(command)''</td><td>'''Newer Method'''<br>''(command)''</td></tr>
<tr> <td>Obtain IP ADDRESS and Subnet Mask'''Always start with the default iptables settings'''</td><thtd>ifconfigWhen you install Iptables in CentOS it already has some rules predefined.</thbr><th>ip addressYou will always get the default rules if you restart the iptables service.</thtd></tr>
<tr> <td>Obtain Default Gateway</td><thtd>route -n</th><th>ip route</thtd></tr>
<tr> <td>Obtain DNS Server</td><thtd>nslookup</th><th>more resolv.conf</thtd></tr>
<tr> <td>Obtain Hostname</td><thtd>uname -n</th><th>uname -n</thtd></tr>
</table>
#'''Always start with the default iptables settings'''::*When you install Iptables in CentOS it already has some rules predefined.:*You will always get the default rules if you restart the iptables service.
13,420
edits