SagerNet / v2ray-core

A platform for building proxies to bypass network restrictions (for SagerNet :)
Other
230 stars 29 forks source link

How to use the ping proxy? #3

Open Alion548 opened 2 years ago

Alion548 commented 2 years ago

I found that the ping proxy is supported, is there any more detailed documentation or configuration examples?

{
  "ping": {
    "protocol": "<default/unprivileged>",
    "gateway4": "<0.0.0.0>",
    "gateway6": "<::>",
    "disableIPv6": true
  }
}
plusls commented 2 years ago

need more document

nekohasekai commented 2 years ago

Requires TUN or a special client to support this.

Usage: request a UDP connection to the target with port 7

Same format as UNIX unprivileged ICMP socket: socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP/IPPROTO_ICMPv6)