gluon-mesh-layer3-common: add package

This commit is contained in:
Maciej Krüger 2022-06-17 08:52:15 +02:00
parent 0394047a70
commit ef7ef09af8
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-mesh-layer3-common
include ../gluon.mk
define Package/gluon-mesh-layer3-common
TITLE:=Layer3 common files
DEPENDS:=+gluon-core +gluon-mmfd +firewall
endef
$(eval $(call BuildPackageGluon,gluon-mesh-layer3-common))

View File

@ -0,0 +1,25 @@
#!/usr/bin/lua
local uci = require('simple-uci').cursor()
uci:section('firewall', 'forwarding', 'fcc', {
src = 'loc_client',
dest = 'loc_client',
})
uci:section('firewall', 'forwarding', 'fcm', {
src = 'loc_client',
dest = 'mesh',
})
uci:section('firewall', 'forwarding', 'fmc', {
src = 'mesh',
dest = 'loc_client',
})
uci:section('firewall', 'forwarding', 'fmm', {
src = 'mesh',
dest = 'mesh',
})
uci:save('firewall')