zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
14.57k stars 1.71k forks source link

tcp-proxy default port 443 change has no effect #2392

Open chenxudong2020 opened 1 month ago

chenxudong2020 commented 1 month ago

tcp-proxy default port 443 change has no effect

local.conf is configured as follows:

image

local.conf and tcp-proxy are in the same directory. Start command: /var/lib/zerotier-one/tcp-proxy

Because my port 443 is already used by caddy, I get an error that port 443 is occupied.

laduke commented 1 month ago

sorry for any confusion. tcp-proxy doesn't have any configuration options. it runs only on 443.

local.conf configures zerotier-one not tcp-proxy

chenxudong2020 commented 1 month ago

Can it be changed to other ports? Port 443 is strictly controlled in China.

laduke commented 1 month ago

The only way is to edit the source code.

https://github.com/zerotier/ZeroTierOne/blob/36b4659f77bc480fdc510304bc53f009fde5d629/tcp-proxy/tcp-proxy.cpp#L49

chenxudong2020 commented 4 weeks ago

Thank you for your answer. I request to add the function of specifying the port. Since zerotier itself provides the function of forwarding traffic, why do we need to provide proxy?

laduke commented 4 weeks ago

I'm not sure why you need a custom proxy. Most people do not use a custom tcp proxy.