mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
simple-captive-portal: order nft chains predictably
Adjust simple-captive-portal firewall chain priority to apply before default chain deterministically Signed-off-by: Andris PE <neandris@gmail.com>
This commit is contained in:
committed by
Etienne Champetier
parent
dc39393c1b
commit
737c40fbb9
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=simple-captive-portal
|
PKG_NAME:=simple-captive-portal
|
||||||
PKG_VERSION:=2025.06.22
|
PKG_VERSION:=2025.06.22
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
|
PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
|
||||||
PKG_LICENSE:=GPL-2.0-or-later
|
PKG_LICENSE:=GPL-2.0-or-later
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ table inet simple-captive-portal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
chain prerouting {
|
chain prerouting {
|
||||||
type nat hook prerouting priority mangle; policy drop;
|
type nat hook prerouting priority mangle - 5; policy drop;
|
||||||
iif != ${INTF} accept
|
iif != ${INTF} accept
|
||||||
ether saddr @guest_macs accept
|
ether saddr @guest_macs accept
|
||||||
tcp dport 80 redirect to ${PORT_REDIRECT}
|
tcp dport 80 redirect to ${PORT_REDIRECT}
|
||||||
|
|||||||
Reference in New Issue
Block a user