From e4ac73b45819b99404ac0e660ff5229e972c9445 Mon Sep 17 00:00:00 2001 From: Jiri Kalvoda <jirikalvoda@kam.mff.cuni.cz> Date: Sun, 14 Apr 2024 23:20:11 +0200 Subject: [PATCH] NET ip-man table 39 --- network/ip-man | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/network/ip-man b/network/ip-man index b50ee3f..9fd47d6 100755 --- a/network/ip-man +++ b/network/ip-man @@ -317,11 +317,12 @@ def inet(*args, **kvargs): @cmd @daemon(root_only=True) def init(ucred): - for p in [10001, 10012, 10038]: + for p in [10001, 10012, 10038, 10039]: inet("rule", "del", "priority", p, check=False) ip("rule", "add", "priority", 10001, "to", "95.85.217.30", "dport", "12061", "goto", 32766) inet("rule", "add", "priority", 10012, "table", 12) inet("rule", "add", "priority", 10038, "table", 38) + inet("rule", "add", "priority", 10039, "table", 39) def find_empty_priority(base, used, range_size=10): while True: @@ -349,7 +350,7 @@ def replace_rule(ucred, *tables: tuple[str, ...], priority_base: int = 20000, i if "iif" in r and iif == r["iif"]: ip(ipv, "rule", "del", "priority", r["priority"]) if not iif: - if r["priority"] not in [0, 10001, 10012, 10038, 32766, 32767] and "iif" not in r and "dst" not in r: + if r["priority"] not in [0, 10001, 10012, 10038, 10039, 32766, 32767] and "iif" not in r and "dst" not in r: ip(ipv, "rule", "del", "priority", r["priority"]) -- GitLab