0236.html 4.6 KB

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