diff --git a/network/ip-man b/network/ip-man index b50ee3fced2baa2dd6f7d7495aeadbbadace166e..9fd47d6264821b7120c6cea6d1d0372634a21c4f 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"])