Absolutely! If you want to block your WiZ smart lamps from accessing the internet using OpenWrt, you can do this by creating firewall rules based on their IP or MAC addresses.
Here’s a step-by-step guide:
1. Identify Your WiZ Lamps
- Find their IP or MAC addresses:
- Check your router’s Status > Overview > Active DHCP Leases in LuCI (the web interface).
- Or, use
arp or ip neigh in SSH.
2. Assign Static IPs (Recommended)
To make rules easier, assign each lamp a static IP:
- Go to Network > DHCP and DNS > Static Leases.
- Add a lease for each lamp’s MAC address.
3. Create Firewall Rules
Via LuCI (Web Interface)
- Go to Network > Firewall > Traffic Rules.
- Click Add.
- Set:
- Name: e.g.,
Block WiZ Lamp
- Source zone:
lan
- Source IP: (the lamp’s IP)
- Destination zone:
wan
- Action:
Reject or Drop
- Click Save & Apply.
Repeat for each lamp.
Via SSH (Command Line)
Add rules to /etc/config/firewall:
config rule
option name 'Block WiZ Lamp'
option src 'lan'
option src_ip '192.168.1.123' # Replace with your lamp's IP
option dest 'wan'
option target 'REJECT'
Then reload firewall:
/etc/init.d/firewall reload
4. Test
- Try to control the lamp from the app (should fail if it needs internet).
- The lamp should still be accessible locally if it supports LAN control.
5. Optional: Block by MAC Address
If your lamps get new IPs, you can block by MAC:
config rule
option name 'Block WiZ Lamp MAC'
option src 'lan'
option src_mac 'AA:BB:CC:DD:EE:FF' # Replace with lamp's MAC
option dest 'wan'
option target 'REJECT'
Notes
- Some WiZ lamps require internet for app control; local control may be limited.
- You can always remove or disable the rule if needed.
Let me know if you need a ready-to-paste config or have more questions!