gluon-iptables-clamp-mss-to-pmtu: add new package
This commit is contained in:
parent
0e21d17032
commit
6241ba5435
25
package/gluon-iptables-clamp-mss-to-pmtu/Makefile
Normal file
25
package/gluon-iptables-clamp-mss-to-pmtu/Makefile
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=gluon-iptables-clamp-mss-to-pmtu
|
||||||
|
|
||||||
|
GLUON_VERSION = $(shell git describe --always --dirty=+ 2>/dev/null || echo unknown)
|
||||||
|
PKG_VERSION:=$(if $(DUMP),x,$(GLUON_VERSION))
|
||||||
|
|
||||||
|
include ../gluon.mk
|
||||||
|
|
||||||
|
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
|
||||||
|
DEPENDS:= +ip6tables
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/description
|
||||||
|
Package working around icmp blackholes in the internet.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/install
|
||||||
|
$(Gluon/Build/Install)
|
||||||
|
|
||||||
|
$(INSTALL_DIR) $(1)/lib/gluon
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackageGluon,$(PKG_NAME)))
|
@ -0,0 +1,3 @@
|
|||||||
|
*mangle
|
||||||
|
-A FORWARD -o mesh-vpn -p tcp -m tcp --tcp-flags SYN,RST SYN -d 64:ff9b::/96 -j TCPMSS --clamp-mss-to-pmtu
|
||||||
|
COMMIT
|
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/lua
|
||||||
|
|
||||||
|
local uci = require('simple-uci').cursor()
|
||||||
|
uci:section('firewall', 'include', 'vpn_clamp_mss', {
|
||||||
|
family = 'ipv6',
|
||||||
|
type = 'restore',
|
||||||
|
path = '/lib/gluon/mesh-vpn/iptables-mss.rules'
|
||||||
|
})
|
||||||
|
|
||||||
|
uci:save('firewall')
|
Loading…
Reference in New Issue
Block a user