Warning
This section is a Work in progress. I will document the firewall when i learn more about it. In the meantime, go through the config directories mentioned in [[tor_config.txt]] and read the comments to see what would be advisable for your threat model. For now, refer to the official OpenWrt documentation for firewall rules here
To start securing your network, we want to do a bit of isolation. There are three main groups of network clients you need to think of when configuring the firewall: Local Area Network (LAN), Guest (people who don't need/shouldn't have access to the Router's Dashboard), and an IoT group for all your smart devices.
This is the Firewall Zone that contains your router and you. It should be able to access the WAN Interface, but the WAN Interface shouldn't be able to access the LAN. This rule prevents you from attackers.
This is for everyone else. They should be able to access the WAN, but nothing else. Like LAN, the WAN shouldn't be able to access this.
Ideally, you shouldn't have any always-listening devices phoning home to their creators. But if there are Wi-Fi enabled devices that don't need to access the internet (e.g. a robot vacuum) then they should be put into this zone. Their web interfaces need to be accessible from the LAN Zone.
Make sure you are in the LuCi
advanced config interface.
- Head to NETWORK->FIREWALL
- Find the row with the blue box that says "Guest"
- Make sure that the Input dropdown says "drop" and not "reject".
- Rejecting packets from an attacker on the WAN tells them that the firewall has been configured, and they will look for another way in.
- If, however, you tell the firewall to drop the packets, then anyone trying to break in from the WAN will assume that the device is off or not responding, potentially buying you time.
- Click the Blue "Save and Exit button"
(To be honest, the GL-iNet config page set up most of the firewall for you.)
This provides an extra layer of security, ensuring that only specific devices can connect to the main LAN.
- Head to NETWORK->WIRELESS
- Find the entry that corresponds to the Main Wi-Fi network. Click the Blue EDIT button.
- Go to the MAC Filter tab.
- In the dropdown, select "allow listed only"
- A new dropdown will appear; select only necessary devices, such as the router itself, the Raspberry Pi, and the devices of your family.
Note
Make sure that the devices you're connecting to the main network are secure. If you cannot verify that they are, then have them connect to the guest network.
- Click the green "Save" button, then the blue "Save and Apply"
Mac Filtering is a great way to secure your main network, but Mac addresses can be faked. If you know how to set up a database for WPA3-Enterprise, you would do well to implement that, as it would make access dependent upon the client possessing an encryption key specified in said database.
From here, continue with the [[OpenWrt#Configuration|Configuration]].