0689.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running pfSense Firewall and Router in a Proxmox VM</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="PfSense Proxmox Tutorial,PfSense Proxmox VM,How To Virtualize PfSense,Virtualize PfSense Router,Can You Virtualize PfSense,PfSense,Virtualization,Virtual,VM,Virtual PfSense,Virtualize PfSense,Firewall,Server,Router,Home Server,Home Lab,Install Guide,Hypervisor,Self-Hosted,PfSense VM,PfSense Setup,PfSense Installation,Homelab,Security,IT Security,Proxmox 7,Homelab Ideas,Open Source,Proxmox VE,Linux,Debian,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Running pfSense Firewall and Router in a Proxmox VM">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="03/21/2022 08:42:50 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>Running pfSense Firewall and Router in a Proxmox VM</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is pfSense?</h2>
  26. <blockquote><em>pfSense is a firewall/router computer software distribution based on FreeBSD. The open source pfSense Community Edition (CE) and pfSense Plus is installed on a physical computer or a virtual machine to make a dedicated firewall/router for a network. It can be configured and upgraded through a web-based interface, and requires no knowledge of the underlying FreeBSD system to manage. -<a href="https://en.wikipedia.org/wiki/PfSense" target="_blank">https://en.wikipedia.org/wiki/PfSense</a></em></blockquote>
  27. <ol>
  28. <li>Download the pfSense AMD64 .iso <a href="https://www.pfsense.org/download/" target="_blank">Download</a></li>
  29. <li>Extract the downloaded pfSense .gz</li>
  30. <li>Log into the ProxMox web UI</li>
  31. <li>Select a storage from the left navigation pane to upload the .iso to</li>
  32. <li>Select ISO Images in the left sub-navigation pane</li>
  33. <li>Upload the pfSense .iso file to the ProxMox ISO image library</li>
  34. <li>Right click the ProxMox node name &gt; Create VM</li>
  35. <li>Type pfSense in the name field and set a unique VM ID &gt; Next</li>
  36. <li>On the OS tab, set the Type field to Linux, Version to 5.x - 2.6 Kernel and select the pfSense .iso in the ISO Image field &gt; Next</li>
  37. <li>On the System tab, leave the defaults &gt; Next</li>
  38. <li>On the Hard Disk tab, set the Disk size field to 8 &gt; Next</li>
  39. <li>On the CPU tab, set Cores field to 2, Type field to Host &gt; Next</li>
  40. <li>On the Memory tab, set the Memory to 1024 and Uncheck Ballooning Device &gt; Next</li>
  41. <li>On the Network tab, set the Model field to VirtIO (paravirtualized), Uncheck the Firewall box &gt; Next</li>
  42. <li>Verify the summary and click Finish</li>
  43. <li>Click the pfSense VM in the left navigation menu &gt; Select Hardware from the left sub-navigation menu</li>
  44. <li>Click Add &gt; Network Device</li>
  45. <li>Set the Model field to VirtIO (paravirtualized), Uncheck the Firewall box &gt; Click Add</li>
  46. <li>Select Options from the left sub-navigation menu &gt; Double click Use tablet pointer &gt; Uncheck the Enabled box &gt; Click OK</li>
  47. <li>Right click the pfSense VM in the left navigation pane &gt; Start</li>
  48. <li>Click console in the left sub-navigation menu</li>
  49. <li>Press Enter to Boot Multi- user</li>
  50. <li>Select Install pfSense &gt; Press Enter</li>
  51. <li>Select the keyboard mapping to use &gt; Press Enter</li>
  52. <li>Select Auto (UFS) BIOS Guided Disk Setup &gt; Press Enter</li>
  53. <li>Wait for pfSense to copy files and install</li>
  54. <li>At the Manual Configuration prompt select No &gt; Press Enter</li>
  55. <li>Select Reboot &gt; Press Enter</li>
  56. <li>Navigate back to the Hardware options</li>
  57. <li>Double click the CD/DVD Drive &gt; Select Do not use any media &gt; Click OK</li>
  58. <li>Select Shutdown &gt; Reset &gt; Yes to restart the VM</li>
  59. <li>Click console in the left sub-navigation menu</li>
  60. <li>Welcome to the pfSense terminal</li>
  61. </ol>
  62. <h2>Configuring Network Interfaces and Web UI</h2>
  63. <ol>
  64. <li>At the prompt to setup VLANs type n &gt; Press Enter</li>
  65. <li>Enter a WAN interface name &gt; Press Enter</li>
  66. <li>Enter a LAN interface name &gt; Press Enter</li>
  67. <li>When asked Do you want to proceed? type y &gt; Press Enter</li>
  68. <li>At the pfSense menu, select Set interface(s) IP address by typing 2 and pressing Enter</li>
  69. <li>If asked to configure DHCP on the WAN interface type n &gt; Press Enter</li>
  70. <li>Enter a LAN IP address on the same subnet as your LAN</li>
  71. <li>At the bit count prompt type 24 &gt; Press Enter</li>
  72. <li>Enter an IPv4 upstream gateway &gt; Press Enter</li>
  73. <li>At the IPv6 DHCP prompt type n &gt; Press Enter</li>
  74. <li>Leave the IPv6 address blank and press Enter</li>
  75. <li>At the DHCP server prompt type n &gt; Press Enter</li>
  76. <li>At the revert to HTTP prompt type y &gt; Press Enter</li>
  77. <li>The http address of the pfSense Web UI will be displayed</li>
  78. <li>Press Enter to return to the main menu</li>
  79. <li>Open a new browser tab and navigate to the web UI http address</li>
  80. <li>Log into the web UI with the username admin and password pfsense</li>
  81. <li>Select System &gt; User Manager from the top navigation</li>
  82. <li>Click the edit icon across from the admin user</li>
  83. <li>At the pfSense Welcome screen click Next and Next again</li>
  84. <li>Enter a hostname, domain and DNS servers for the VM &gt; Click Next</li>
  85. <li>Set the server timezone &gt; Click Next</li>
  86. <li>Leave the defaults on the WAN Interface setup &gt; Click Next</li>
  87. <li>Set and confirm a new password for the admin user</li>
  88. <li>Click the Reload button</li>
  89. <li>Enjoy exploring pfSense</li>
  90. </ol>
  91. </div>
  92. </div>
  93. </body>
  94. </html>