希望WireGuard入站可以处理ICMP数据

Open
#5,178 15 comments 3 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
go
Domain
networking

Research direction

Start by reviewing the existing WireGuard inbound path and how ICMP traffic is currently handled; the issue does not name files or tests. Compare the two traffic flows described in the report and use the comment thread to clarify the intended routing behavior. Done should mean that WireGuard inbound can process ICMP toward the destination without losing the stated routing capabilities.

Written by the indexing model from the issue text.

Description

enhancement

首先感谢Xray项目为我提供的便利,感谢参与项目开源建设大佬们的付出

目前我正在考虑使用WireGuard组网,得益于Xray强大的入站/路由/出站能力,提供了众多丰富的玩法,因此我想使用Xray来提供WireGuard入站,再通过路由策略灵活自由的控制出站策略

目前实践的两种方式是:

方式1:客户端 -> wireguard入站 -> 路由策略 -> 出站

方式2:客户端 -> dokodemo-door入站 -> 路由策略 -> 出站 -> 本地wireguard

以上两种方式均可实现使用WireGuard组网,区别是:

方式1:当处理ICMP数据,Ping目标IP地址,实际上是Ping客户端 <-> Xray,而并非客户端 <-> 目标IP地址,并且即使目标IP地址不合理(不存在)也可以Ping通,因为实际是Ping的Xray端地址

方式2:可以正常处理ICMP数据,但是路由策略受限,因为大部分数据细节(目标IP地址、目标端口等)已经在客户端被加密了

方式1可以完整的使用路由策略,然而美中不足的是无法处理ICMP数据,某些时候想通过Ping来简单判断目标通断状态无法满足

希望有机会能够使得WireGuard入站,可以处理ICMP数据

Dominant language
Go
Stars
43.3k
Forks
6.2k
Avg merge
2d 11h
Merged PRs (30d)
55

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from XTLS/Xray-core

All issues in XTLS/Xray-core

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.