gluon-{iptables => }-clamp-mss-to-pmtu: migrate to nftables
This commit is contained in:
parent
d9634cd815
commit
3a7115149c
@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/lua
|
|
||||||
|
|
||||||
local uci = require('simple-uci').cursor()
|
|
||||||
uci:section('firewall', 'include', 'vpn_clamp_mss', {
|
|
||||||
type = 'nftables',
|
|
||||||
position = 'chain-prepend',
|
|
||||||
chain = 'mangle_forward',
|
|
||||||
path = '/lib/gluon/mesh-vpn/nftables-mss.rules',
|
|
||||||
})
|
|
||||||
|
|
||||||
uci:save('firewall')
|
|
@ -1,11 +1,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gluon-iptables-clamp-mss-to-pmtu
|
PKG_NAME:=gluon-nftables-clamp-mss-to-pmtu
|
||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
define Package/$(PKG_NAME)
|
define Package/$(PKG_NAME)
|
||||||
TITLE:=This will establish a firewall rule to clamp the mss to pmtu on the mesh-vpn interface when the connection is towards 64:ff9b::/96
|
TITLE:=This will establish a firewall rule to clamp the mss to pmtu on the mesh-vpn interface when the connection is towards 64:ff9b::/96
|
||||||
|
DEPENDS:=+gluon-nftables
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/description
|
define Package/$(PKG_NAME)/description
|
@ -0,0 +1,4 @@
|
|||||||
|
include('mesh_vpn_clamp_mss_to_pmtu', {
|
||||||
|
position = 'chain-prepend',
|
||||||
|
chain = 'mangle_forward',
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user