Add host entries to configuration and enhance iptables setup for MIHOMO
This commit is contained in:
@@ -40,6 +40,11 @@ lgbm-update-interval: 72
|
||||
lgbm-url: "https://github.com/vernesong/mihomo/releases/download/LightGBM-Model/Model.bin" # model update url
|
||||
|
||||
# ———————————————————————————————————————————————————————— HOSTS ————————————————————————————————————————————————————————
|
||||
hosts:
|
||||
'gitea.shamanlanding.org': '192.168.10.4'
|
||||
'niyya.shamanlanding.org': '192.168.10.4'
|
||||
'webway.shamanlanding.org': '192.168.10.4'
|
||||
|
||||
# ——————————————————————————————————————————————————————— PROFILE ———————————————————————————————————————————————————————
|
||||
profile:
|
||||
store-selected: true
|
||||
|
||||
@@ -42,6 +42,8 @@ ipt -t nat -X MIHOMO_REDIR 2>/dev/null || true
|
||||
ipt -t nat -F OUTPUT 2>/dev/null || true
|
||||
|
||||
# Create chain
|
||||
ipt -t nat -F MIHOMO_REDIR 2>/dev/null || true
|
||||
ipt -t nat -X MIHOMO_REDIR 2>/dev/null || true
|
||||
ipt -t nat -N MIHOMO_REDIR
|
||||
|
||||
# Exclude loopback and local subnets
|
||||
@@ -86,6 +88,8 @@ ipt -t mangle -F MIHOMO_TPROXY 2>/dev/null || true
|
||||
ipt -t mangle -X MIHOMO_TPROXY 2>/dev/null || true
|
||||
|
||||
# Create chain
|
||||
ipt -t mangle -F MIHOMO_TPROXY 2>/dev/null || true
|
||||
ipt -t mangle -X MIHOMO_TPROXY 2>/dev/null || true
|
||||
ipt -t mangle -N MIHOMO_TPROXY
|
||||
|
||||
# Exclusions: loopback/local subnets
|
||||
|
||||
Reference in New Issue
Block a user