Scenario: Consider an organization who is need of firewall for the organization.
Prerequisites:
1. Virtual Box
2. Basic Laptop with minimum 4 GB of RAM and at least 16 GB of Storage Space.
Follow the steps listed Below:
1. Download the Virtual Box from the given hyper link and follow the step-by-step instructions.
2. Download the open-source firewalls from the Internet. Eg: pfSense, OPNsense. I am using OPNSense here. (https://opnsense.org/download/). Download OPNsense ISO file.
3. Open virtual Box and Create New Virtual Machine.
- Name the Virtual Machine as OPNSense
- Select the above downloaded ISO image.
- Type : BSD
- Verison FreeBSD 64 bit.
- Select the RAM and Processors according to your system configuration. (make sure the settings should be in green line).
- Create a virtual Hard Disk of 16 GB atleast.
- Click Next and Finish the setup.
STEP 2 :
Network settings are very Important. Be carefull with the network settings.
- Adapter 1 : NAT (WAN)
- Adapter 2 : Bridge Adapter (LAN)
These Network settings is to access the web GUI of OPNsense in host system.(My host system is windows and OPNsense is installed in virtual box. With the network settings mentioned you can access the OPNsense GUI in windows.
STEP 3:
Start the OPNsense.
login : installer ; password : opnsense, Just follow the default steps into install.
Once, it is installed.
Login with root, password : opnsense.Now the interface looks like this.
STEP 4: Assign interfaces.
- Select option 1 , Assign interfaces.
- Do you want to configure LAGGS now ? NO
- Do you want to configure VLANs now? NO
- WAN interface should always match with NAT's mac address.
- WAN interface name : em0 and press enter.
- LAN interface name : em1 and press enter twice.
- Do you want to proceed? y
- Enter the number of interface to configure: 1 ( always give LAN interface number)
- LAN IPv4 : 192.168.1.X , X is your choice.
- LAN IPv4 subnet bit count : 24
- Thereafter, whatever it asks just press enter or NO
- By now, your OPNsense should assign IP addresses to LAN and WAN , as shown in the picture.
STEP 6: Access the OPNsense GUI in host-machine.
- Use the IP address of the LAN assigned in your OPNsense VM Box.
See you in the next blog...!
Bye.
0 Comments