Skip to content

Latest commit

 

History

History
30 lines (29 loc) · 1.24 KB

config.md

File metadata and controls

30 lines (29 loc) · 1.24 KB

Advanced Configuration

UDPAdvertisedIP

The UDP proxy process for socks5 is as follows:

  1. Establish a TCP proxy connection
  2. Send the UDP proxy address through the TCP connection
  3. The client then connects to this proxy address
    "ListenPort": 1080,
    "UDPAdvertisedIP": "192.168.0.100"

In the above configuration
The UDP proxy listen addr is: 0.0.0.0:1080
The advertised UDP proxy address is: 192.168.0.100:1080
Please ensure that the UDP proxy can be connected using the advertised UDP proxy address.
If UDPAdvertisedIP is empty, the local address will be used. In general, this is not a problem, but it needs to be configured when the local address cannot be obtained in environments like Docker.

Custom UDP and TCP listening addresses

    "TCPListen": "127.0.0.1:1081",
    "UDPListen": "127.0.0.1:1082",

When TCPListen or UDPListen has a value, ListenPort will be ignored.
In the above scenario, the value of ListenPort, which is 1080, is invalid.
Note: Improper configuration of UDPListen and UDPAdvertisedIP can cause UDP proxy failure.

TCP and UDP Timeout

    "UDPTimout": 60,
    "TCPTimeout": 60,

In general, there is no need to change these values.