gluon-mesh-layer3-common: add package
This commit is contained in:
parent
0394047a70
commit
ef7ef09af8
12
package/gluon-mesh-layer3-common/Makefile
Normal file
12
package/gluon-mesh-layer3-common/Makefile
Normal 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))
|
@ -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')
|
Loading…
Reference in New Issue
Block a user