Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
networking:opnsense_using [2024/10/24 11:25] – created willy | networking:opnsense_using [2025/03/13 14:16] (current) – [opnSense] willy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== opnSense ====== | + | ====== |
+ | [[https:// | ||
+ | * Your router | ||
+ | * Your firewall | ||
+ | * Your DNS resolver and filter | ||
+ | |||
+ | and much more! | ||
+ | |||
+ | You will stick the opnSense between your internet links and your home network(s) and it will let you manage it all with very powerfull tools and web based GUI. | ||
+ | |||
+ | opnSense is a fork of the also good pfSense when, a few years ago, the company behind pfSense started acting in ways that pissed off the community. Since the product is Open Source, a different company spun up and picked it up rebranding to opnSense. | ||
+ | |||
+ | Between pfSense and opnSense there are a few technical distinctions, | ||
+ | |||
+ | ===== Hardware Selection ===== | ||
+ | |||
+ | While you could install opnSense in a Virtual Machine (or maybe a container?) it really make little sense to me. I purchased a low cost **firewall appliance**, | ||
+ | * Low-power ATOM based CPU | ||
+ | * 8GB RAM (less will do as well) | ||
+ | * 80GB sata SSD (an NVME will do as well) | ||
+ | * 4 Intel 2.5Gbps NICs (network interfaces) | ||
+ | |||
+ | The most important piece here is having four network cards (ethernet connections), | ||
+ | |||
+ | Since opnSense is based on FreeBSD you should make sure the hardware you want to use is supported, since the FreeBSD kernel has somewhat less support than Linux. Specially your WiFi will most probably __not__ be supported. | ||
+ | |||
+ | |||
+ | ===== Sowftware Installation ===== | ||
+ | |||
+ | Installing opnSense is quite easy, you should download the VGA edition to boot from an USB thumbdrive, then head onto [[https:// | ||
+ | |||
+ | As general hints, you must define beforehand which ethernet port you will plug into your home network: this will be called LAN interface, and which ones will be used to connect to your ISPs gateways. The first one will be called WAN and the second one will be called OPT1, OPT2, and so on. | ||
+ | |||
+ | You will be able to rename all those interfaces later on, but it will be annoying specially for the LAN one, so i suggest you get it right immediately. I also suggest you set a static IP on the LAN interface, i choose the **10.20.30.254** IP for the opnSense. This will become your gateway and DNS address for your hosts. | ||
+ | |||
+ | On the WAN interface, usually you want to set it as DHCP. |