enfein / mieru

mieru is a socks5 / HTTP / HTTPS proxy to bypass censorship. 見える是一款 socks5 / HTTP / HTTPS 网络代理翻墙工具。
GNU General Public License v3.0
1.08k stars 137 forks source link

TUN list #119

Closed Pantyhose-X closed 2 months ago

Pantyhose-X commented 9 months ago

Wintun ligolo-ng wireguard TUN Universal TUN/TAP driver tun2socks tun2proxy

enfein commented 9 months ago

No plan to have builtin TUN support in mieru. Welcome to use any of those in the list. Personally I use clash. Now clash is dead and I will move to something else.

qfomg commented 8 months ago

@enfein 大佬,软件能支持电脑32位系统吗?

enfein commented 8 months ago

@qfomg 你需要哪个操作系统的 32 位客户端?另外操作系统是什么版本?我们应该不会长期维护上古的系统。

qfomg commented 8 months ago

@enfein win10系统

enfein commented 8 months ago

@qfomg 好的,下个版本安排上

qfomg commented 8 months ago

@qfomg 好的,下个版本安排上

谢谢大佬,大佬辛苦了

enfein commented 8 months ago

@qfomg

出现故障后,能否在本地和服务器上分别运行 mieru get metricsmita get metrics 指令,然后把结果贴过来?这有助于初步定位问题。

enfein commented 8 months ago

@Alvin9999

服务器这边

"socks5": {
"ConnectionRefusedErrors": 14,
"DNSResolveErrors": 4,
"HandshakeErrors": 25,
"HostUnreachableErrors": 0,
"NetworkUnreachableErrors": 0,
"UDPAssociateErrors": 0,
"UnsupportedCommandErrors": 0
}

ConnectionRefusedErrorsDNSResolveErrors 是这台服务器无法访问的网站,这个无能为力。

HandshakeErrors 表示对方提供的请求有问题。考虑到请求的数量很多

"connections": {
"ActiveOpens": 0,
"CurrEstablished": 23,
"MaxConn": 36,
"PassiveOpens": 3646
}

看上去还可以。

客户端这边

"connections": {
"ActiveOpens": 57,
"CurrEstablished": 21,
"MaxConn": 27,
"PassiveOpens": 0
},
"socks5": {
"ConnectionRefusedErrors": 0,
"DNSResolveErrors": 0,
"HandshakeErrors": 24,
"HostUnreachableErrors": 0,
"NetworkUnreachableErrors": 0,
"UDPAssociateErrors": 0,
"UnsupportedCommandErrors": 0
}

57 次连接有 24 个错误,这个比例太高了。看上去在你所在的地区,TCP 有一定概率会被针对。

一种缓解的办法是,在客户端设置中设置 MULTIPLEXING_HIGH,这样会以更大的概率重复使用以前的 TCP 连接,而不是创建新连接,例如

{
    "profiles": [
        {
            "profileName": "default",
            "user": {
                "name": "baozi",
                "password": "manlianpenfen"
            },
            "servers": [
                {
                    "ipAddress": "12.34.56.78",
                    "portBindings": [
                        {
                            "portRange": "8964-8965",
                            "protocol": "TCP"
                        },
                        {
                            "port": 9648,
                            "protocol": "TCP"
                        },
                        {
                            "port": 6489,
                            "protocol": "TCP"
                        },
                        {
                            "port": 4896,
                            "protocol": "TCP"
                        }
                    ]
                }
            ],
            "multiplexing": {
                "level": "MULTIPLEXING_HIGH"
            }
        }
    ]
}

另外也请试一下 UDP 协议。伊朗人的说法是在那里 TCP 完全无法使用,但是 UDP 没有问题。

notcreepy commented 5 months ago

I have never seen a program with tun mode that works without problem. tun mode is always very slow. with mieru tun2socks works at least the first time.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 80 days with no activity. Remove stale label or comment or this will be closed in 9 days.