net/bcp38: Add cgnat shared space to bcp38 list
authorAndris PE <redacted>
Tue, 13 May 2025 17:46:15 +0000 (17:46 +0000)
committerToke Høiland-Jørgensen <redacted>
Wed, 14 May 2025 14:58:11 +0000 (16:58 +0200)
Add CG-NAT address space to non-routable list
Mmake dhcp filter stricter

Signed-off-by: Andris PE <redacted>
net/bcp38/Makefile
net/bcp38/files/bcp38.config
net/bcp38/files/run.sh

index 72c50d3cc6192003768404e5e6e677e708f3df42..099f202f17c2224beff9019fbbe73803b8fecfc6 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bcp38
 PKG_VERSION:=5
-PKG_RELEASE:=11
+PKG_RELEASE:=12
 PKG_LICENSE:=GPL-3.0-or-later
 
 include $(INCLUDE_DIR)/package.mk
index 488daab68f8af1bfdfbce7073f43e92e9228ba52..78868c4ed1fc60bc118aaab718190927298c7c3c 100644 (file)
@@ -10,6 +10,7 @@ config bcp38
        list match '10.0.0.0/8'      # RFC 1918
        list match '172.16.0.0/12'   # RFC 1918
        list match '169.254.0.0/16'  # RFC 3927
+       list match '100.64.0.0/10'   # RFC 6598
 
 #      list nomatch '172.26.0.0/21' # Example of something not to match
 #      There is a dhcp trigger to do this for the netmask of a 
index addabe9d83b76cf4249689c3f25d65c12c077908..4c4f185da2076ab89af149ad472669dc17db0d73 100755 (executable)
@@ -85,7 +85,7 @@ setup_chains()
        nft add chain "$FAMILY" "$TABLE" "$CHAIN" 2>/dev/null
        nft flush chain "$FAMILY" "$TABLE" "$CHAIN" 2>/dev/null
 
-       nft add rule "$FAMILY" "$TABLE" "$CHAIN" udp dport {67,68} udp sport {67,68} counter return comment \"always accept DHCP traffic\"
+       nft add rule "$FAMILY" "$TABLE" "$CHAIN" udp sport . udp dport { 68 . 67, 67 . 68 } counter return comment \"always accept DHCP traffic\"
        nft add rule "$FAMILY" "$TABLE" "$CHAIN" oifname $interface ip daddr @"$MATCHSET" ip daddr != @"$NOMATCHSET" counter reject with icmp type host-unreachable
        nft add rule "$FAMILY" "$TABLE" "$CHAIN" iifname $interface ip saddr @"$MATCHSET" ip saddr != @"$NOMATCHSET" counter drop
 
git clone https://git.99rst.org/PROJECT