gluon-mesh-vpn-core: migrate to gluon-nftables
This commit is contained in:
parent
09eec29c7d
commit
d9634cd815
@ -6,7 +6,7 @@ include ../gluon.mk
|
|||||||
|
|
||||||
define Package/gluon-mesh-vpn-core
|
define Package/gluon-mesh-vpn-core
|
||||||
TITLE:=Basic support for connecting meshes via VPN tunnels
|
TITLE:=Basic support for connecting meshes via VPN tunnels
|
||||||
DEPENDS:=+gluon-core +gluon-wan-dnsmasq +simple-tc
|
DEPENDS:=+gluon-core +gluon-nftables +gluon-wan-dnsmasq +simple-tc
|
||||||
USERID:=:gluon-mesh-vpn=800
|
USERID:=:gluon-mesh-vpn=800
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
include('mesh_vpn_dns', {
|
||||||
|
position = 'chain-prepend',
|
||||||
|
chain = 'dstnat',
|
||||||
|
})
|
@ -25,15 +25,6 @@ uci:save('network')
|
|||||||
users.remove_user('gluon-fastd')
|
users.remove_user('gluon-fastd')
|
||||||
users.remove_group('gluon-fastd')
|
users.remove_group('gluon-fastd')
|
||||||
|
|
||||||
uci:section('firewall', 'include', 'mesh_vpn_dns', {
|
|
||||||
type = 'nftables',
|
|
||||||
path = '/lib/gluon/mesh-vpn/nftables.rules',
|
|
||||||
position = 'chain-prepend',
|
|
||||||
chain = 'dstnat',
|
|
||||||
})
|
|
||||||
|
|
||||||
uci:save('firewall')
|
|
||||||
|
|
||||||
|
|
||||||
-- VPN migration
|
-- VPN migration
|
||||||
if not uci:get('gluon', 'mesh_vpn') then
|
if not uci:get('gluon', 'mesh_vpn') then
|
||||||
|
Loading…
Reference in New Issue
Block a user