0236.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install OPNsense Firewall and Router in VirtualBox</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="OPNSense VirtualBox Tutorial,How To Virtualize OPNSense,VirtualBox,Virtual Machine,Virtual Router,Linux,OPNSense,Firewall,OPNSense VirtualBox VM,Virtualize OPNSense Router,Can You Virtualize OPNSense,Virtualization,VM,Virtual OPNSense,Virtualize OPNSense,Server,Router,Home Server,Home Lab,Install Guide,Hypervisor,Self-Hosted,OPNSense VM,OPNSense Setup,OPNSense Installation,Homelab,IT Security,Homelab Ideas,Open Source,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install OPNsense Firewall and Router in VirtualBox">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="03/21/2022 09:07:01 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install OPNsense Firewall and Router in VirtualBox</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Download OPNSense <a href="https://opnsense.org/download/" target="_blank">Download</a></li>
  27. <li>Extract the downloaded .bz2 file</li>
  28. <li>Launch Virtualbox</li>
  29. <li>Create a New VM by selecting Machine &gt; New
  30. <p>Name: OPNSense<br />
  31. Machine Folder: C:\VMs<br />
  32. Type: BSD<br />
  33. Version: FreeBSD (64-bit)<br />
  34. Memory Size: 1024 MB<br />
  35. Hard disk: Create a virtual hard disk now</p>
  36. </li>
  37. <li>Click Create</li>
  38. <li>On the Create Virtual Hard Disk dialog
  39. <p>Name the virtual disk image OPNSense.vdi<br />
  40. File size: 8 GB<br />
  41. Hard disk file type: VDI<br />
  42. Storage on physical hard disk: Dynamically Allocated</p>
  43. </li>
  44. <li>Click Create</li>
  45. <li>Select the VM and Click Settings</li>
  46. <li>Select Display</li>
  47. <li>Slide the Video Memory to 128 MB</li>
  48. <li>Select Storage</li>
  49. <li>Click on the CD-ROM drive</li>
  50. <li>Select the disc dropdown to the right &gt; Choose a virtual optical disc file...</li>
  51. <li>Browse to and select the downloaded OPNSense .iso file</li>
  52. <li>Click OK</li>
  53. <li>Select Network</li>
  54. <li>Set the attached to dropdown to Bridged Adapter</li>
  55. <li>Click the Adapter 2 tab</li>
  56. <li>Check the Enable Network Adapter and set the attached to dropdown to Bridged Adapter</li>
  57. <li>Click OK</li>
  58. <li>Make sure the OPNSense VM is selected and click Start &gt; Normal</li>
  59. <li>Wait for the login prompt to display</li>
  60. <li>Login with the username installer and password opnsense</li>
  61. <li>Press Enter at the Welcome screen</li>
  62. <li>If needed, change the keymap and/or video font then select Accept these Settings &gt; Press Enter</li>
  63. <li>Select Guided installation &gt; Press Enter</li>
  64. <li>Press Enter to use the ada0 hard disk</li>
  65. <li>Select GPT/UEFI mode &gt; Press Enter</li>
  66. <li>Wait for OPNSense to copy files and install</li>
  67. <li>Type and re-type a new root password &gt; Select Accept and Set Password &gt; Press Enter</li>
  68. <li>Select Reboot &gt; Press Enter</li>
  69. <li>From the VirtualBox menu select Devices &gt; Optical Drives &gt; Remove disk from virtual drive</li>
  70. <li>Reset the VM by selecting Machine &gt; Reset from the VirtualBox menu</li>
  71. <li>Welcome to the OPNSense terminal</li>
  72. </ol>
  73. <h2>Configuring Network Interfaces and Web UI</h2>
  74. <ol>
  75. <li>At the login prompt, login with username root and the root password set earlier</li>
  76. <li>At the OPNSense menu, select Set interface IP address by typing 2 and pressing Enter</li>
  77. <li>Enter the number that corresponds to the LAN interface &gt; Press Enter</li>
  78. <li>At the DHCP prompt type n &gt; Press Enter</li>
  79. <li>Enter a LAN IP address on the same subnet as your LAN</li>
  80. <li>At the bit count prompt type 24 &gt; Press Enter</li>
  81. <li>Leave the IPv4 upstream gateway blank press Enter</li>
  82. <li>At the IPv6 WAN tracking type n &gt; Press Enter</li>
  83. <li>At the IPv6 DHCP prompt type n &gt; Press Enter</li>
  84. <li>Leave the IPv6 address blank and press Enter</li>
  85. <li>At the DHCP server prompt type n &gt; Press Enter</li>
  86. <li>At the revert to HTTP prompt type y &gt; Press Enter</li>
  87. <li>The http address of the OPNSense Web UI will be displayed</li>
  88. <li>Minimize the OPNSense VM and open a web browser</li>
  89. <li>Navigate to the web UI http address</li>
  90. <li>Log into the web UI with the username root and the root password set earlier</li>
  91. <li>Enjoy exploring OPNSense</li>
  92. </ol>
  93. </div>
  94. </div>
  95. </body>
  96. </html>