Lab4 - Use Webmin to Configure IPtable
Objective: Configure IP table using Webmin
- Install Webmin in linux (as a guest OS in virtual machine)
- Use Webmin to configure IP table to
- block the SSH port (i.e., port 22)
- Use putty to prove that the port is blocked.
- block certain IP address
- Use any tool (e.g., putty or browser) to prove that the address is blocked.
- block the SSH port (i.e., port 22)
Procedure:
- I used CentOS linux as a guest OS in VMware Server during this experiment.
- 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.
- Use Webmin to configure iptables to
- 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.
- block certain IP address
- Use any tool (e.g., putty or browser) to prove that the address is blocked.