mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-18 20:47:53 +00:00
update tcp-relay README
This commit is contained in:
parent
db1df58955
commit
b8eb9196e8
@ -2,3 +2,34 @@ TCP Proxy Server
|
||||
======
|
||||
|
||||
This is the TCP proxy server we run for TCP tunneling from peers behind difficult NATs. Regular users won't have much use for this.
|
||||
|
||||
## How to run your own
|
||||
Currently you must build it and distribute it to your server manually.
|
||||
|
||||
To reduce latency, the tcp-relay should be as close as possible to the nodes it is serving. A datacenter in the same city or the LAN would be ideal.
|
||||
|
||||
|
||||
### Build
|
||||
`cd tcp-relay`
|
||||
`make`
|
||||
|
||||
### Point your node at it
|
||||
The default tcp relay is at `204.80.128.1/443` -an anycast address.
|
||||
|
||||
#### Option 1 - local.conf configuration
|
||||
See [Service docs](https://github.com/zerotier/ZeroTierOne/blob/e0acccc3c918b59678033e585b31eb000c68fdf2/service/README.md) for more info on local.conf
|
||||
`{ "settings": { "tcpFallbackRelay": "198.51.100.123/443" } }`
|
||||
|
||||
|
||||
#### Option 2 - redirect 204.80.128.1 to your own IP
|
||||
|
||||
If you are the admin of the network that is blocking ZeroTier UDP, you can transparently redirect 204.80.128.1 to one of your IP addresses. Users won't need to edit their local client configuration.
|
||||
|
||||
Configuring this in your Enterprise Firewall is left as an exercise to the reader.
|
||||
|
||||
Here is an iptables example for illustrative purposes:
|
||||
|
||||
``` shell
|
||||
-A PREROUTING -p tcp -d 204.80.128.1 --dport 443 -j DNAT --to-destination 198.51.100.123
|
||||
-A POSTROUTING -p tcp -d 198.51.100.123 --dport 443 -j SNAT --to-source 204.80.128.1
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user