We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 449ebeb commit 79f8697Copy full SHA for 79f8697
config/firewall
@@ -199,3 +199,14 @@ config rule
199
{% endif %}
200
{% endfor %}
201
202
+{% if firewall is defined and firewall.block_wan_access is defined %}
203
+config rule
204
+ option name 'Blocked-Devices'
205
+ option src '*'
206
+ option dest 'wan'
207
+ option target 'REJECT'
208
+ list proto 'all'
209
+{% for blocked_device in firewall.block_wan_access %}
210
+ list src_mac '{{ blocked_device }}'
211
+{% endfor %}
212
+{% endif %}
inventory-sample.yaml
@@ -269,3 +269,6 @@ openwrt:
269
- 1.0.0.3
270
hosts:
271
- DD:45:4F:4A:2E:99
272
+ firewall:
273
+ block_wan_access:
274
+ - DD:45:4F:4A:2E:99 # Block internet access for this device, but allow connecting to internal network
0 commit comments