Skip to content

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

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

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.

@wenerme wenerme added the enhancement New feature or request label Mar 5, 2025
wwqgtxx added a commit that referenced this issue Mar 10, 2025
@wwqgtxx wwqgtxx closed this as completed Mar 10, 2025
kitty314 added a commit to kitty314/mihomoabab that referenced this issue Apr 10, 2025
commit 025ff19
Author: wwqgtxx <[email protected]>
Date:   Fri Mar 28 10:54:11 2025 +0800

    fix: wrong conditional judgment in removeExtraHTTPHostPort
    MetaCubeX#1939

commit f615346
Author: anytls <[email protected]>
Date:   Thu Mar 27 20:25:31 2025 +0800

    chore: anytls protocol version 2 (MetaCubeX#1936)

commit 7b38261
Author: wwqgtxx <[email protected]>
Date:   Tue Mar 25 01:19:39 2025 +0800

    chore: update gvisor

commit 0f32c05
Author: enfein <[email protected]>
Date:   Thu Mar 20 05:58:04 2025 +0000

    feat: support UDP over TCP in mieru (MetaCubeX#1926)

commit 4f8b70c
Author: 5aaee9 <[email protected]>
Date:   Wed Mar 19 12:20:48 2025 +0800

    fix: buffer in tproxy not recycle (MetaCubeX#1923)

commit dcef787
Author: wwqgtxx <[email protected]>
Date:   Tue Mar 18 09:09:54 2025 +0800

    chore: update utls

commit 7c444a9
Author: wwqgtxx <[email protected]>
Date:   Mon Mar 17 23:51:21 2025 +0800

    fix: correctly handle ipv6 zone

commit e3d4ec2
Author: wwqgtxx <[email protected]>
Date:   Mon Mar 17 14:00:51 2025 +0800

    fix: race at interfaceName setting

commit 14217e7
Author: xishang0128 <[email protected]>
Date:   Mon Mar 17 13:21:23 2025 +0800

    chore: update service capabilities to include CAP_SYS_TIME and CAP_DAC_OVERRIDE

commit 68abb13
Author: wwqgtxx <[email protected]>
Date:   Mon Mar 17 10:42:13 2025 +0800

    chore: support longest-prefix matches in local interface finding

commit dee5898
Author: Cesaryuan <[email protected]>
Date:   Sat Mar 15 13:27:29 2025 +0800

    fix: memory leak due to unclosed session (MetaCubeX#1908)

commit 1e22f4d
Author: wwqgtxx <[email protected]>
Date:   Fri Mar 14 12:07:23 2025 +0800

    chore: reduce data copying in quic sniffer and better handle data fragmentation and overlap

commit a7a796b
Author: wwqgtxx <[email protected]>
Date:   Thu Mar 13 16:27:29 2025 +0800

    chore: cleanup quic sniff's code

commit ff89bf0
Author: Cesaryuan <[email protected]>
Date:   Thu Mar 13 13:28:40 2025 +0800

    feat: add gost-plugin in which only ws and mws are currently supported. (MetaCubeX#1896)

commit 801f3c3
Author: 5aaee9 <[email protected]>
Date:   Thu Mar 13 13:19:36 2025 +0800

    feat: support sniff quic fragment data (MetaCubeX#1899)

commit 7ff046a
Author: wwqgtxx <[email protected]>
Date:   Thu Mar 13 08:52:27 2025 +0800

    chore: modify UDPSniff's function signature to prepare for its ability to handle multiple packets.

commit 0ed159e
Author: wwqgtxx <[email protected]>
Date:   Wed Mar 12 13:33:52 2025 +0800

    chore: code cleanup

commit 070eb31
Author: wwqgtxx <[email protected]>
Date:   Wed Mar 12 11:42:57 2025 +0800

    chore: speedup system stack in tun

commit f318b80
Author: wwqgtxx <[email protected]>
Date:   Tue Mar 11 22:50:55 2025 +0800

    chore: better cache implement for group's getProxies

commit c0de3c0
Author: wwqgtxx <[email protected]>
Date:   Mon Mar 10 11:10:39 2025 +0800

    fix: some default value in dialer not restore in tun when config reload

commit 4bd3ae5
Author: wwqgtxx <[email protected]>
Date:   Mon Mar 10 10:45:07 2025 +0800

    chore: dialer will consider the routing of the local interface when auto-detect-interface in tun is enabled
    for MetaCubeX#1881 MetaCubeX#1819

commit 00e6466
Author: Skyxim <[email protected]>
Date:   Mon Mar 10 09:13:38 2025 +0800

    chore: update checksum generation step

commit c94b442
Author: Skyxim <[email protected]>
Date:   Mon Mar 10 09:02:08 2025 +0800

    chore: add checksum generation for production artifacts
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