From 76d5e44186835269b95f236324cc5bf69ed07df1 Mon Sep 17 00:00:00 2001 From: Gahow Wang Date: Mon, 5 Oct 2026 23:35:00 -0700 Subject: [PATCH] Route IB Gateway through mihomo TUN instead of an explicit proxy The dedicated proxy listener it pointed at is gone from the mihomo config; TUN now routes IBKR traffic by rules. --- deploy/systemd/ibgateway.service | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/deploy/systemd/ibgateway.service b/deploy/systemd/ibgateway.service index ecb0396..94ea190 100644 --- a/deploy/systemd/ibgateway.service +++ b/deploy/systemd/ibgateway.service @@ -4,12 +4,8 @@ After=network-online.target [Service] Type=simple -# Reach IBKR through pc's "ipads" proxy (mihomo, SOCKS5/HTTP on 7892), as -# `proxy ipads` does in a shell. IBC drops -D lines from ibgateway.vmoptions and -# clears JAVA_TOOL_OPTIONS, so the java launcher gets them via JDK_JAVA_OPTIONS. -Environment="JDK_JAVA_OPTIONS=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=7892" -Environment=http_proxy=http://127.0.0.1:7892 https_proxy=http://127.0.0.1:7892 all_proxy=http://127.0.0.1:7892 -Environment=HTTP_PROXY=http://127.0.0.1:7892 HTTPS_PROXY=http://127.0.0.1:7892 ALL_PROXY=http://127.0.0.1:7892 +# No proxy env on purpose: mihomo TUN (auto-route) transparently routes all +# traffic by rules; IBKR domains go DEFAULT -> RES residential exit. ExecStart=/usr/bin/xvfb-run -a -s "-screen 0 1024x768x24" %h/ibc/gatewaystart.sh -inline Restart=always RestartSec=60