{"id":1656,"date":"2020-06-03T19:53:07","date_gmt":"2020-06-03T19:53:07","guid":{"rendered":"https:\/\/www.it-react.com\/?p=1656"},"modified":"2021-09-13T22:02:21","modified_gmt":"2021-09-13T22:02:21","slug":"convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router","status":"publish","type":"post","link":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/","title":{"rendered":"Convert an old laptop single NIC into an OPNsense Firewall\/Router"},"content":{"rendered":"\n<p>In today&#8217;s post, I would like to show you the process of transforming a single NIC old laptop into an OPNsense firewall\/router. I wanted for some time to install pfSense in my home network, but I didn&#8217;t want to buy an expensive already made firewall device.<\/p>\n\n\n\n<p>After spending a few days looking for a solution, I found at some point that Dell PowerEdge R210 II is quite used as hardware for pfSense\/OPNsense. I had the intention to buy one from Ebay, though they are also not so cheap. Then I changed my mind when thinking that the noise coming from the fans could be disturbing and the power consumption could also be a bit to high. Then I searched for a few more days and finally I decided that will be more challenging to go as cheap as possible with this project. Though I haven&#8217;t had any idea about the hardware that I was going to use.<br><br>Suddenly, I remembered that I am having an old laptop that was lying in a corner and I said that this would be the perfect candidate for my new future firewall\/router. I wanted to integrate the firewall in my home lab rack, so I&#8217;ve started to tear all the components apart until only the base components remained &#8211; motherboard, ram, cpu, hdd. Here is a picture:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"503\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/IMG_20200601_113920-1024x503.png\" alt=\"\" class=\"wp-image-1678\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/IMG_20200601_113920-1024x503.png 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/IMG_20200601_113920-300x147.png 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/IMG_20200601_113920-768x378.png 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/IMG_20200601_113920-1536x755.png 1536w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/IMG_20200601_113920-2048x1007.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p><br>I am planing to integrate these components in a rack metal case, but a rack miniITX case is expensive and I don&#8217;t know if will properly fit. Cause I decided to maintain the price as low as possible, I looked for other possibilities and found on Ebay and achieved a switch that was sell with only 10\u20ac transport included. I&#8217;ll try to use its metal case and to integrate my components in it. I hope it will work.   <\/p>\n\n\n\n<p>For the moment, my firewall is completely naked and all the components are lying on my desk. I didn&#8217;t have the patience to wait until the switch is coming to take its metal case, so I proceeded with the software installation.  I&#8217;ve started with pfSense installation, but because of some problems with the firewire port on my laptop&#8217;s motherboard, which couldn&#8217;t be disabled, the installation of the pfSense failed. <br><br>After many unsuccessful attempts to access the Advanced Bios of the motherboard and to disable the Firewire port, I gave up on pfSense and decided to give it a try to OPNsense. Both of them are having the same origins, but it seems pfSense is more popular. Though there are many people that prefer OPNsense to pfSense and I also find its interface more clean and intuitive. The installation of OPNsense went very smooth, without any errors. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Requirements<\/strong><\/h3>\n\n\n\n<p>In regard to OPNsense requirements, you can find <a href=\"https:\/\/docs.opnsense.org\/manual\/hardware.html\">here<\/a> more information. <br>My hardware&#8217;s laptop is: <br>Processor: Intel(R) Core(TM)2 Duo CPU P7550 @ 2.26GHz (2 cores)<br>Memory: 4GB<br>HDD: 500GB<\/p>\n\n\n\n<p>Cause we are having a single NIC device, we also need a managed switch that supports 802.1Q VLAN. Luckily, I already have a 24 ports managed switch, so I&#8217;ll use 2 ports for setting up the firewall.<br>Here is the model I&#8217;m using &#8211; <a href=\"https:\/\/www.amazon.de\/gp\/product\/B0151PAYIQ\/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&amp;psc=1\">TP-Link T2600G-28TS<\/a>, but you can also find cheaper models with fewer ports. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>New Network D<\/strong>iagram<\/h3>\n\n\n\n<p>The design of the new network with the OPNsense Firewall and the managed switch will look like in the below diagram:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"832\" height=\"546\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense2.png\" alt=\"\" class=\"wp-image-1671\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense2.png 832w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense2-300x197.png 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense2-768x504.png 768w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>The cable modem is connected in the port 24 of the managed switch. This link provides Internet to the entire network. The port is configured as VLAN10 untagged (PVID10). <\/li><li> OPNsense is connected in the port 23 of the switch. All the traffic passes through the firewall where is controlled and analyzed. The port is configured as VLAN10 tagged for WAN traffic and VLAN1 untagged (PVID1) for LAN traffic. OPNsense is running DHCP service on LAN side and is providing IP addresses to all the clients connected on the physical ports of the switch, and to the wireless devices connected through AP  .<\/li><li> In the port 22 of the switch is connected a Wireless AP &#8211; Archer C7 that runs Gargoyle. The port of the managed switch has the default configuration.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step one &#8211; Switch Configuration<\/strong><\/h3>\n\n\n\n<p>Let&#8217;s see what settings we have to apply on the switch side. The default  IP address of the switch is 192.168.0.1, but I&#8217;ve already configured it with 192.168.1.2. So I will access the web interface of the switch at http:\/\/192.168.1.2 and I will enter the user and password (default: user:admin\/pass:admin). <\/p>\n\n\n\n<p>After successfully connected, we go to L2 Features and then VLAN-&gt;802.1Q VLAN. Here we add VLAN ID 10, we name it WAN and will assign it to port 24 untagged and to port 23 tagged.<br> <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"845\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense1-switch-1024x845.jpg\" alt=\"\" class=\"wp-image-1688\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense1-switch-1024x845.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense1-switch-300x248.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense1-switch-768x634.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense1-switch.jpg 1212w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>Then we access Port Config tab and we set PVID 10 for port 24. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"630\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense2-switch-1024x630.jpg\" alt=\"\" class=\"wp-image-1690\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense2-switch-1024x630.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense2-switch-300x184.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense2-switch-768x472.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense2-switch.jpg 1215w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step two &#8211; OPNsense configuration<\/strong><\/h3>\n\n\n\n<p>After the switch configuration, it&#8217;s time now to configure the OPNsense server. We&#8217;ll connect the OPNSense machine to port 23 of the switch and the cable modem to port 24 of the switch. Check the bellow diagram:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"556\" height=\"370\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/switch_diagram1.png\" alt=\"\" class=\"wp-image-1674\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/switch_diagram1.png 556w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/switch_diagram1-300x200.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/figure>\n\n\n\n<p> If you haven&#8217;t installed yet the OPNsense software, <a href=\"https:\/\/docs.opnsense.org\/manual\/install.html\">here<\/a> is a link where you can get some info.<\/p>\n\n\n\n<p>After the OPNsense software is installed, you will get a menu like the one below. We&#8217;ll do from here the initial configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"174\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_menu.jpg\" alt=\"\" class=\"wp-image-1706\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_menu.jpg 701w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_menu-300x74.jpg 300w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/figure>\n\n\n\n<p>Select option 1) to assign interfaces. Answer yes to &#8220;Do you want to set up VLANs now&#8221;, then follow the below image:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"647\" height=\"1024\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall-647x1024.jpg\" alt=\"\" class=\"wp-image-1704\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall-647x1024.jpg 647w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall-190x300.jpg 190w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall.jpg 701w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/figure>\n\n\n\n<p>As you can see, we&#8217;ve created VLAN 10 for WAN.<br>The assigned interfaces are:<br>&#8211; re0 for LAN<br>&#8211; re0_vlan10 for WAN<\/p>\n\n\n\n<p>After that, we will access option 2) in the menu and set IP address 192.168.1.1 to LAN interface and enable DHCP with range 192.168.1.100-192.168.1.120.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"161\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_menu2.jpg\" alt=\"\" class=\"wp-image-1707\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_menu2.jpg 701w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_menu2-300x69.jpg 300w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"913\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_lan.jpg\" alt=\"\" class=\"wp-image-1705\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_lan.jpg 700w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_lan-230x300.jpg 230w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>Now we access option 2) again and configure the WAN interface with DHCP.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"161\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_menu2.jpg\" alt=\"\" class=\"wp-image-1707\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_menu2.jpg 701w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_menu2-300x69.jpg 300w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"543\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_wan.jpg\" alt=\"\" class=\"wp-image-1708\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_wan.jpg 700w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense3-firewall_wan-300x233.jpg 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>We can access now the web interface at the https:\/\/192.168.1.1. Here is how it looks after we login:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"793\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense4-firewall-1024x793.jpg\" alt=\"\" class=\"wp-image-1714\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense4-firewall-1024x793.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense4-firewall-300x232.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense4-firewall-768x595.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense4-firewall.jpg 1235w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>We can check here the LAN and WAN interfaces that we assigned in the CLI: Interfaces&gt;Assignments<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"506\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense6-firewall-1024x506.jpg\" alt=\"\" class=\"wp-image-1716\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense6-firewall-1024x506.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense6-firewall-300x148.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense6-firewall-768x379.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense6-firewall.jpg 1237w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>In the Interfaces&gt;Other Types&gt;VLAN we can check the VLAN assigned for WAN Interface:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"543\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense5-firewall-1024x543.jpg\" alt=\"\" class=\"wp-image-1715\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense5-firewall-1024x543.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense5-firewall-300x159.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense5-firewall-768x407.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense5-firewall.jpg 1237w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>The last thing we check is the DHCP Service. We&#8217;ve already set the range 192.168.1.100-192.168.1.120 in the CLI. In the web interface we&#8217;ll add the DNS Servers and Gateway.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"666\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense7-firewall-1024x666.jpg\" alt=\"\" class=\"wp-image-1718\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense7-firewall-1024x666.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense7-firewall-300x195.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense7-firewall-768x500.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense7-firewall.jpg 1236w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>That was the initial configuration of the OPNsense. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step three &#8211; Wireless Router Configuration<\/strong><\/h3>\n\n\n\n<p>My wireless router is a TP-Link Archer7 running Gargoyle software. I&#8217;ve  accessed its web interface and assigned the IP address 192.168.1.3. <br><\/p>\n\n\n\n<p>In the Connection&gt;Basic, I&#8217;ve disabled the WAN interface and I set Wan Ethernet Port to Bridge to Lan. Now the WAN interface is acting as a LAN port together with the other 4 LAN ports.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"613\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense-wifi-1024x613.jpg\" alt=\"\" class=\"wp-image-1741\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense-wifi-1024x613.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense-wifi-300x180.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense-wifi-768x460.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense-wifi.jpg 1239w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Previously, the DHCP service was running on my wi-fi router. Now, I will disable it because DHCP service is configured on OPNsense.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"439\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense-wifi2-1024x439.jpg\" alt=\"\" class=\"wp-image-1739\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense-wifi2-1024x439.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense-wifi2-300x128.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense-wifi2-768x329.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/OPNsense-wifi2.jpg 1233w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Every device that will connect to the wi-fi AP, will receive an IP address from OPNsense and will be able to connect to Internet.  <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p>We saw together in this post how we can turn an old laptop that was lying in a corner gathering dust into a state-of-the-art security device. For me, it was a great experience to deconstruct and reconvert this piece of hardware and to give it a new sense. I&#8217;ve learned some new things and I encourage you to give it a try to this project.  <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Update<\/strong><\/h3>\n\n\n\n<p>Because my old laptop&#8217;s board had a very high power consumption, somewhere around 60-80W, I&#8217;ve replaced it with a <a href=\"https:\/\/www.amazon.de\/gp\/product\/B087TB4KBQ\/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&amp;psc=1\">MINISFORUM<\/a> fan-less mini pc and I&#8217;ve installed pfSense.<\/p>\n\n\n\n<p>The installation went smooth and base configuration for pfSense is pretty much the same as for OPNSense. The only problem was an annoying error &#8211; <strong>sdhci_pci0_slot0:Controller Timeout<\/strong> which was delaying the start of the system with around 5 minutes. <br><br>I&#8217;ve solved it by adding the following line in \/boot\/device.hints file: hint.sdhci_pci.0.disabled=&#8221;1&#8243;<br>Because vi editor on FreeBSD seems to be different than the one I know, I&#8217;ve preferred to install nano to edit the device.hints file :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pkg install nano<\/pre>\n\n\n\n<br><hr>\n","protected":false},"excerpt":{"rendered":"<p>In today&#8217;s post, I would like to show you the process of transforming a single NIC old laptop into an OPNsense firewall\/router. I wanted for some time to install pfSense in my home network, but I didn&#8217;t want to buy an expensive already made firewall device. After spending a few days looking for a solution, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1777,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","footnotes":""},"categories":[7,62],"tags":[13,50,48,49,51],"class_list":["post-1656","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-network","tag-firewall","tag-hardware","tag-opnsense","tag-reconvert","tag-router"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Convert an old laptop single NIC into an OPNsense Firewall\/Router - IT-REACT<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Convert an old laptop single NIC into an OPNsense Firewall\/Router - IT-REACT\" \/>\n<meta property=\"og:description\" content=\"In today&#8217;s post, I would like to show you the process of transforming a single NIC old laptop into an OPNsense firewall\/router. I wanted for some time to install pfSense in my home network, but I didn&#8217;t want to buy an expensive already made firewall device. After spending a few days looking for a solution, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/\" \/>\n<meta property=\"og:site_name\" content=\"IT-REACT\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-03T19:53:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-13T22:02:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/valentin-petkov-kuqhuc28g_Q-unsplash-scaled-e1591291174931.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"297\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ioan Penu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ioan Penu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/\"},\"author\":{\"name\":\"Ioan Penu\",\"@id\":\"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0\"},\"headline\":\"Convert an old laptop single NIC into an OPNsense Firewall\/Router\",\"datePublished\":\"2020-06-03T19:53:07+00:00\",\"dateModified\":\"2021-09-13T22:02:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/\"},\"wordCount\":1329,\"commentCount\":7,\"publisher\":{\"@id\":\"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0\"},\"image\":{\"@id\":\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/valentin-petkov-kuqhuc28g_Q-unsplash-scaled-e1591291174931.jpg\",\"keywords\":[\"FireWall\",\"hardware\",\"OPNsense\",\"reconvert\",\"Router\"],\"articleSection\":[\"Linux\",\"Network\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/\",\"url\":\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/\",\"name\":\"Convert an old laptop single NIC into an OPNsense Firewall\/Router - IT-REACT\",\"isPartOf\":{\"@id\":\"https:\/\/www.it-react.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/valentin-petkov-kuqhuc28g_Q-unsplash-scaled-e1591291174931.jpg\",\"datePublished\":\"2020-06-03T19:53:07+00:00\",\"dateModified\":\"2021-09-13T22:02:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#primaryimage\",\"url\":\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/valentin-petkov-kuqhuc28g_Q-unsplash-scaled-e1591291174931.jpg\",\"contentUrl\":\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/valentin-petkov-kuqhuc28g_Q-unsplash-scaled-e1591291174931.jpg\",\"width\":1080,\"height\":297,\"caption\":\"Photo by Valentin Petkov on Unsplash\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.it-react.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Convert an old laptop single NIC into an OPNsense Firewall\/Router\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.it-react.com\/#website\",\"url\":\"https:\/\/www.it-react.com\/\",\"name\":\"it-react\",\"description\":\"Ctrl\u2022Alt\u2022Automate\",\"publisher\":{\"@id\":\"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.it-react.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0\",\"name\":\"Ioan Penu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\",\"caption\":\"Ioan Penu\"},\"logo\":{\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Convert an old laptop single NIC into an OPNsense Firewall\/Router - IT-REACT","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/","og_locale":"en_US","og_type":"article","og_title":"Convert an old laptop single NIC into an OPNsense Firewall\/Router - IT-REACT","og_description":"In today&#8217;s post, I would like to show you the process of transforming a single NIC old laptop into an OPNsense firewall\/router. I wanted for some time to install pfSense in my home network, but I didn&#8217;t want to buy an expensive already made firewall device. After spending a few days looking for a solution, [&hellip;]","og_url":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/","og_site_name":"IT-REACT","article_published_time":"2020-06-03T19:53:07+00:00","article_modified_time":"2021-09-13T22:02:21+00:00","og_image":[{"width":1080,"height":297,"url":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/valentin-petkov-kuqhuc28g_Q-unsplash-scaled-e1591291174931.jpg","type":"image\/jpeg"}],"author":"Ioan Penu","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ioan Penu","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#article","isPartOf":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/"},"author":{"name":"Ioan Penu","@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0"},"headline":"Convert an old laptop single NIC into an OPNsense Firewall\/Router","datePublished":"2020-06-03T19:53:07+00:00","dateModified":"2021-09-13T22:02:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/"},"wordCount":1329,"commentCount":7,"publisher":{"@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0"},"image":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#primaryimage"},"thumbnailUrl":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/valentin-petkov-kuqhuc28g_Q-unsplash-scaled-e1591291174931.jpg","keywords":["FireWall","hardware","OPNsense","reconvert","Router"],"articleSection":["Linux","Network"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/","url":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/","name":"Convert an old laptop single NIC into an OPNsense Firewall\/Router - IT-REACT","isPartOf":{"@id":"https:\/\/www.it-react.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#primaryimage"},"image":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#primaryimage"},"thumbnailUrl":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/valentin-petkov-kuqhuc28g_Q-unsplash-scaled-e1591291174931.jpg","datePublished":"2020-06-03T19:53:07+00:00","dateModified":"2021-09-13T22:02:21+00:00","breadcrumb":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#primaryimage","url":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/valentin-petkov-kuqhuc28g_Q-unsplash-scaled-e1591291174931.jpg","contentUrl":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/valentin-petkov-kuqhuc28g_Q-unsplash-scaled-e1591291174931.jpg","width":1080,"height":297,"caption":"Photo by Valentin Petkov on Unsplash"},{"@type":"BreadcrumbList","@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/03\/convert-an-old-laptop-single-nic-into-an-opnsense-firewall-router\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.it-react.com\/"},{"@type":"ListItem","position":2,"name":"Convert an old laptop single NIC into an OPNsense Firewall\/Router"}]},{"@type":"WebSite","@id":"https:\/\/www.it-react.com\/#website","url":"https:\/\/www.it-react.com\/","name":"it-react","description":"Ctrl\u2022Alt\u2022Automate","publisher":{"@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.it-react.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0","name":"Ioan Penu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g","caption":"Ioan Penu"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g"}}]}},"_links":{"self":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts\/1656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/comments?post=1656"}],"version-history":[{"count":131,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts\/1656\/revisions"}],"predecessor-version":[{"id":2873,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts\/1656\/revisions\/2873"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/media\/1777"}],"wp:attachment":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/media?parent=1656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/categories?post=1656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/tags?post=1656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}