Own Firewall
You'll replace the box your provider gave you with a firewall you built on an old PC, write every rule yourself, and run the house through it for a month.
About
The provider's router is a black box with a sticker password, and it decides what gets in and out of your house. A used mini PC with two network ports costs about sixty dollars, or any old desktop takes a second network card for ten, and either runs OPNsense or pfSense and shows you every packet. What counts is the provider's box in bridge mode or gone, your firewall doing DHCP, DNS and NAT for the house, rules you wrote and can explain, and logs you read. A consumer router with a firewall tickbox doesn't count. Keep the old router in a drawer for the night something goes wrong, and keep the PC's fans clear of dust, because this one runs all year.
At a glance
- Per requirement
- 35 XP
- Completion bonus
- 300 XP
- Requirements
- 6
- Takes
- Two weekends, then a month
- Skill level
- Advanced (years of practice)
- Cost
- Moderate (under $100)
- Supplies
- You need some
- Where
- At home
- Other people
- On your own
Requirements
-
1
Get a box with two network ports and install the firewall on it. A used thin client or mini PC with a second port is the cheap route, and a desktop with a ten-dollar network card works too. Install OPNsense, pfSense or OpenWrt from a USB stick with one port marked WAN and one marked LAN. Take a photo of the box with both ports cabled and a screenshot of the first login. Photo
-
2
Put the provider's box into bridge mode, or replace it, and check that you're not behind two routers. Bridge or modem-only mode hands the public address to your firewall. If the provider's box refuses, put your firewall's address in its DMZ setting as the fallback. Then run a traceroute to the internet: one private hop and then public addresses means you're clean, two private hops means double NAT. Take a screenshot of the firewall's WAN page showing a public address, and of the traceroute. Photo
-
3
Move DHCP and DNS for the house onto the firewall, with your reservations carried over. Every reservation from your network map goes in here, and the DNS it hands out is either its own forwarder or your House DNS. Reboot a phone and check it got an address and a resolver from the new box. Take a screenshot of the leases page with the reservations. Photo
-
4
Write the rules yourself, deny by default, and turn logging on for the rules that matter. Rules are read top to bottom and the first match wins, so the deny-everything rule goes last and the allows go above it. Inbound from the internet is denied unless you opened it on purpose. Log the denies on the gadget lane and the WAN. Take a screenshot of the rule set and write one sentence next to each rule saying why it exists. Photo
-
5
Make one rule that runs on a schedule, and show it working. Block the console from the internet after ten at night, or cut a camera off from everything but the recorder between certain hours. Film the clock, the rule's schedule, and the connection failing on time. Video
-
6
After thirty days, read a week of logs and write three things you found. The TV trying to reach somewhere at 3am, the scan from outside that hit every port, the gadget that keeps asking for the printer. Take a screenshot of the log with the three circled and a sentence on each, and tell us what you changed because of them. Photo