{"id":249,"date":"2018-08-12T01:30:45","date_gmt":"2018-08-11T22:30:45","guid":{"rendered":"http:\/\/kifarunix.com\/?p=249"},"modified":"2024-03-11T08:24:40","modified_gmt":"2024-03-11T05:24:40","slug":"how-to-install-opnsense-on-virtualbox","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/how-to-install-opnsense-on-virtualbox\/","title":{"rendered":"How to Install OPNsense on VirtualBox"},"content":{"rendered":"\n<p>In this tutorial, we are going to learn how to install OPNsense on VirtualBox. <a href=\"https:\/\/opnsense.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">OPNsense<\/a> is a FreeBSD-based open-source software that provides firewall and routing features that are available in expensive commercial firewalls. It is developed by Desico, a Company in Netherlands. OPNsense started as a fork of pfSense and m0n0wall and still retain similar aspects.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#common-op-nsense-features\">Common OPNsense Features<\/a><\/li><li><a href=\"#installing-op-nsense-on-virtual-box\">Installing OPNsense on VirtualBox<\/a><ul><li><a href=\"#download-op-nsense-installation-file\">Download OPNsense Installation file<\/a><\/li><li><a href=\"#extract-the-installer\">Extract the Installer<\/a><\/li><li><a href=\"#create-op-nsense-virtual-machine-on-virtual-box\">Create OPNsense Virtual Machine on VirtualBox<\/a><\/li><li><a href=\"#install-op-nsense-on-virtual-box\">Install OPNsense on VirtualBox<\/a><\/li><li><a href=\"#start-the-op-nsense-vm-on-virtual-box\">Start the OPNsense VM on VirtualBox<\/a><\/li><\/ul><\/li><li><a href=\"#other-tutorials\">Other Tutorials<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"common-op-nsense-features\">Common OPNsense Features<\/h2>\n\n\n\n<p>Some of the common features offered by OPNsense include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Traffic Shaping<\/li>\n\n\n\n<li>Forward caching proxy<\/li>\n\n\n\n<li>Intrusion detection and Prevention<\/li>\n\n\n\n<li>Two-factor authentication<\/li>\n\n\n\n<li>VPN technologies ranging from modern SSL VPN\u2019s to IPsec as well as legacy options such as L2TP and PPTP.<\/li>\n\n\n\n<li>Captive Portal<\/li>\n<\/ul>\n\n\n\n<p>For a deeper insight into the features of OPNsense, read more on the <a href=\"https:\/\/opnsense.org\/about\/features\/\" target=\"_blank\" rel=\"noreferrer noopener\">features page<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-op-nsense-on-virtual-box\">Installing OPNsense on VirtualBox<\/h2>\n\n\n\n<p>To install OPNsense on VirtualBox, step through the procedure below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"download-op-nsense-installation-file\">Download OPNsense Installation file<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to the official OPNsense <a href=\"https:\/\/opnsense.org\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">download&#8217;s page<\/a>.<\/li>\n\n\n\n<li>Select the System architecture.<\/li>\n\n\n\n<li>Select the image type. I prefer to use DVD ISO file.<\/li>\n\n\n\n<li>Select the download mirror near me<\/li>\n\n\n\n<li>Click <strong>Download<\/strong> button to download the ISO file archive.<\/li>\n<\/ul>\n\n\n\n<p>If you want to use the terminal to download the ISO file, just right click on the download button and copy the link.<\/p>\n\n\n\n<p>You can then use wget or curl to download the ISO archive file;<\/p>\n\n\n\n<p>OPNsense 23.1 is the current release version.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/mirror.ams1.nl.leaseweb.net\/opnsense\/releases\/23.1\/OPNsense-23.1-OpenSSL-dvd-amd64.iso.bz2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"extract-the-installer\">Extract the Installer<\/h3>\n\n\n\n<p>Extract the ISO file from the archive download;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tar xjf OPNsense-23.1-OpenSSL-dvd-amd64.iso.bz2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-op-nsense-virtual-machine-on-virtual-box\">Create OPNsense Virtual Machine on VirtualBox<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Launch VirtualBox manager<\/li>\n\n\n\n<li>Create a new VM with type <strong>BSD<\/strong> and version as <strong>FreeBSD(64-bit)<\/strong> with at least 1GB of RAM, 16G storage. (Rem this can change depending on your needs)<\/li>\n\n\n\n<li>Add two two NICs, bridge the first adapter, and set the second adapter as Host-Only<\/li>\n\n\n\n<li>On Storage settings, attach the OPNsense ISO as IDE controller.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1530\" height=\"473\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-virtualbox.png\" alt=\"\" class=\"wp-image-16505\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-virtualbox.png?v=1683740289 1530w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-virtualbox-768x237.png?v=1683740289 768w\" sizes=\"(max-width: 1530px) 100vw, 1530px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-op-nsense-on-virtual-box\">Install OPNsense on VirtualBox<\/h3>\n\n\n\n<p>Save the settings and click Start to start the VM and begin the installation.<\/p>\n\n\n\n<p>Once the OPNsense VM starts, you should see the screen below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"575\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-login-to-install.png\" alt=\"\" class=\"wp-image-16495\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-login-to-install.png?v=1683739164 904w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-login-to-install-768x488.png?v=1683739164 768w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure>\n\n\n\n<p>To install OPNsense, login as user <strong>installer<\/strong> with the default password <strong>opnsense<\/strong>.<\/p>\n\n\n\n<p>When you login, select your keymap and proceed.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"564\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/keymap-selection.png\" alt=\"\" class=\"wp-image-16496\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/keymap-selection.png?v=1683739196 829w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/keymap-selection-768x522.png?v=1683739196 768w\" sizes=\"(max-width: 829px) 100vw, 829px\" \/><\/figure><\/div>\n\n\n<p>Next, install OPNsense UFS;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"830\" height=\"550\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/install-ufs.png\" alt=\"\" class=\"wp-image-16498\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/install-ufs.png?v=1683739284 830w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/install-ufs-768x509.png?v=1683739284 768w\" sizes=\"(max-width: 830px) 100vw, 830px\" \/><\/figure><\/div>\n\n\n<p>Select the installation disk and confirm selection to proceed with installation.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"549\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/select-installation-disk.png\" alt=\"\" class=\"wp-image-16499\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/select-installation-disk.png?v=1683739309 828w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/select-installation-disk-768x509.png?v=1683739309 768w\" sizes=\"(max-width: 828px) 100vw, 828px\" \/><\/figure><\/div>\n\n\n<p>The installation will now proceed and it should complete in a short while.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"838\" height=\"566\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/complete-installation.png\" alt=\"\" class=\"wp-image-16500\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/complete-installation.png?v=1683739603 838w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/complete-installation-768x519.png?v=1683739603 768w\" sizes=\"(max-width: 838px) 100vw, 838px\" \/><\/figure><\/div>\n\n\n<p>Press Ok to complete the installation.<\/p>\n\n\n\n<p>Poweroff the VM and detach the installation medium;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1906\" height=\"1029\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/remove-installation-iso-file.png\" alt=\"Install OPNsense on VirtualBox\" class=\"wp-image-16501\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/remove-installation-iso-file.png?v=1683739740 1906w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/remove-installation-iso-file-768x415.png?v=1683739740 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/remove-installation-iso-file-1536x829.png?v=1683739740 1536w\" sizes=\"(max-width: 1906px) 100vw, 1906px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"start-the-op-nsense-vm-on-virtual-box\">Start the OPNsense VM on VirtualBox<\/h3>\n\n\n\n<p>You can now start your OPNsense firewall for configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"572\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/boot-opnsense-virtualbox.png\" alt=\"\" class=\"wp-image-16502\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/boot-opnsense-virtualbox.png?v=1683739838 969w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/boot-opnsense-virtualbox-768x453.png?v=1683739838 768w\" sizes=\"(max-width: 969px) 100vw, 969px\" \/><\/figure>\n\n\n\n<p>Once the OPNsense boots, login as <strong>root<\/strong> with the default password <strong>opnsense<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"873\" height=\"536\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-login.png\" alt=\"\" class=\"wp-image-16503\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-login.png?v=1683739893 873w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-login-768x472.png?v=1683739893 768w\" sizes=\"(max-width: 873px) 100vw, 873px\" \/><\/figure><\/div>\n\n\n<p>The screen below welcomes you after login<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"610\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-console.png\" alt=\"\" class=\"wp-image-16504\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-console.png?v=1683739946 914w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/05\/opnsense-console-768x513.png?v=1683739946 768w\" sizes=\"(max-width: 914px) 100vw, 914px\" \/><\/figure><\/div>\n\n\n<p>Once you have logged in, you can do various configurations like reset root password, add interfaces, set interface IP Addresses.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"other-tutorials\">Other Tutorials<\/h2>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-enable-secure-shell-ssh-server-on-opnsense\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to enable Secure Shell (SSH) server on OPNsense<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-wazuh-agent-on-pfsense\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Wazuh Agent on pfSense<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to learn how to install OPNsense on VirtualBox. OPNsense is a FreeBSD-based open-source software that provides firewall and routing<\/p>\n","protected":false},"author":1,"featured_media":16502,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[34,45,46,36],"tags":[11,6631,41,6633,6632,24],"class_list":["post-249","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","category-opnsense","category-virtualbox","category-virtualization","tag-firewall","tag-install-opnsense-on-virtualbox","tag-opnsense","tag-opnsense-on-virtualbox","tag-opnsense-virtualbox","tag-virtualbox","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/249"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=249"}],"version-history":[{"count":10,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/249\/revisions"}],"predecessor-version":[{"id":20973,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/249\/revisions\/20973"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/16502"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}