gluon-mesh-vpn-core: migrate to gluon-nftables

This commit is contained in:
Maciej Krüger 2023-04-25 22:07:07 +02:00
parent 09eec29c7d
commit d9634cd815
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F
4 changed files with 5 additions and 10 deletions

View File

@ -6,7 +6,7 @@ include ../gluon.mk
define Package/gluon-mesh-vpn-core
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
endef

View File

@ -0,0 +1,4 @@
include('mesh_vpn_dns', {
position = 'chain-prepend',
chain = 'dstnat',
})

View File

@ -25,15 +25,6 @@ uci:save('network')
users.remove_user('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
if not uci:get('gluon', 'mesh_vpn') then