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.

    http://www.webmin.com/download.html


    Use instructions from one of the following link during installation.

    rpm: http://www.webmin.com/rpm.html

    tar: http://www.webmin.com/tgz.html

    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.






Comments