Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] support auto interface-name detection for proxies when dialing over vpn #1881

Closed
2 of 3 tasks
wenerme opened this issue Mar 5, 2025 · 0 comments
Closed
2 of 3 tasks
Labels
enhancement New feature or request

Comments

@wenerme
Copy link

wenerme commented Mar 5, 2025

验证步骤

  • 我已经阅读了 文档,确认了该功能没有实现
  • 我已在 Issue Tracker 中寻找过我要提出的功能请求,并且没有找到
  • 我是中文用户,而非其他语言用户

描述

I have multi interface, the proxy use private ip like 10.1.1.1, I have an tun interface 10.1.1.0/24, the interface name is dynamic (macOS can not set tun name), when I use 10.1.1.1 for mihomo proxy upsteam, mihomo will use dialer.DefaultInterface, this is the default interface like en0, but this interface can not handle 10.1.1.1.

I hope maybe there is a preprocess for proxies, which use NetworkUpdateMonitor to choose the right interface-name. e.g.

# this is the work around for onetime config update
.interface-name: &interface-name utun6
.server: &server 10.1.1.1

proxies:
- name: socks
  server: *server
  # interface-name: *interface-name
  interface-name: auto
  port: 1080
  <<: *socks

when interface-name: auto, the preprocessor will replace the interface name which match server, e.g. utun6 in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants