Lab4 - Use Webmin to Configure IPtable

Objective: Configure IP table using Webmin

    1. Install Webmin in linux (as a guest OS in virtual machine)
    2. Use Webmin to configure IP table to
      1. block the SSH port (i.e., port 22)
        1. Use putty to prove that the port is blocked.
      2. block certain IP address
        1. Use any tool (e.g., putty or browser) to prove that the address is blocked.

Procedure:

    1. I used CentOS linux as a guest OS in VMware Server during this experiment.
    1. Install Webmin from the following link.
      1. http://www.webmin.com/download.html
      2. Use instructions from one of the following link during installation.
      3. rpm: http://www.webmin.com/rpm.html
      4. tar: http://www.webmin.com/tgz.html
      5. Windows: http://www.webmin.com/windows.html

- Find IP address of CentOS (Guest OS in VMware) using following commands.

$ /sbin/ifconfig

- Open your putty account and type the CentOS IP address as a host address in putty.

- Then click on open to connect to your linux account which pops up a black screen as shown below which ask you for your Linux user name and password.

    1. Use Webmin to configure iptables to
        1. block the SSH port (i.e., port 22)

- Using Webmin stop SSH server of CentOS Linux.

  • Use putty to prove that the port is blocked

- Then open putty again and try to connect with same host address and you will get connection refuse error.

        1. block certain IP address
          • Use any tool (e.g., putty or browser) to prove that the address is blocked.