gluon-l3roamd: add firewall rules

This commit is contained in:
Maciej Krüger 2022-06-17 08:52:37 +02:00
parent ef7ef09af8
commit 583dc69961
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -1,6 +1,26 @@
#!/usr/bin/lua #!/usr/bin/lua
local uci = require('simple-uci').cursor() local uci = require('simple-uci').cursor()
uci:section('firewall', 'zone', 'l3roamd', {
name = 'l3roamd',
input = 'ACCEPT',
output = 'ACCEPT',
forward = 'REJECT',
device = 'l3roam+',
log = '1',
})
uci:section('firewall', 'forwarding', 'flc', {
src = 'l3roamd',
dest = 'loc_client',
})
uci:section('firewall', 'forwarding', 'fcl', {
src = 'loc_client',
dest = 'l3roamd',
})
uci:section('firewall', 'rule', 'mesh_l3roamd', { uci:section('firewall', 'rule', 'mesh_l3roamd', {
name = 'mesh_l3roamd', name = 'mesh_l3roamd',
src = 'mesh', src = 'mesh',