Changes

Jump to: navigation, search

OPS335 Lab 4

14 bytes removed, 16:34, 11 May 2017
m
Fixing hostname typos
'''Perform the following steps:'''
# If the '''nc''' command is not installed on your vm2 machine, install it (install '''nc''' command for your '''centos3vm3''' vm as well).
# Connect from your '''vm2''' to itself using the '''nc''' command by issuing the following command:<br><source lang="bash">nc localhost 25</source>
# You should see a response: <br><source lang="bash">220 vm2.yourdomain.ops ESMTP Postfix</source>
<ol><li value="4">Let's see if it works from other machines. Use '''nc''' to connect to '''vm2''' from '''vm3''' and see if it works. If your firewall is set up properly, the nc command should not permit a connection (i.e. ''no route to host'').</li>
<li>Create an iptables rule to allow incoming connections to your '''SMTP''' server on your '''centos2vm2''' vm.</li>
<li>Once you open the port in the firewall, retry the '''nc''' command. You should get a different error this time (e.g. ''connection refused''). This time the problem is that your service isn't listening on the outside interface, it's currently configured to listen only on the loopback (lo) interface.</li>
<li>Add the iptables rule to your saved script so that it will be loaded automatically from startup.</li>
766
edits

Navigation menu