TunSafe Forum

Welcome to the TunSafe Community Forum. This is open for discussions related to TunSafe and the WireGuard protocol.

You are not logged in.

#1 2019-04-05 16:46:01

something
Member
Registered: 2019-04-05
Posts: 2

how to use Features=hybrid_tcp?

Hi,
on the server side,my Configuration file is as this

[Interface]
PrivateKey = gIIBl0OHb3wZjYGqZtgzRml3wec0e5vqXtSvCTfa42w=
Address = 192.168.2.0/24
ListenPortTCP = 1234


[Peer]
PublicKey = h/trC+5Z8qbGBJtroYITQGMNUn5XQZ/JRqVR3iIH5Ro=
AllowedIPs = 192.168.2.2/24
Features=hybrid_tcp

on the client my Configuration file

[Interface]
PrivateKey = gIIBl0OHb3wZjYGqZtgzRml3wec0e5vqXtSvCTfa42w=
DNS = 8.8.8.8 
Address = 192.168.2.2/24

[Peer]
PublicKey = h/trC+5Z8qbGBJtroYITQGMNUn5XQZ/JRqVR3iIH5Ro=
AllowedIPs = 0.0.0.0/0
Endpoint =serverip:1234
Features=hybrid_tcp

try this but it is not work,so what's the right configuration file for 'Features=hybrid_tcp'?

Offline

#2 2019-04-09 11:04:09

ludde
Administrator
Registered: 2018-03-09
Posts: 127

Re: how to use Features=hybrid_tcp?

For hybrid-tcp to work, you need to use both ListenPort and ListenPortTCP on the server side. The same port number needs to be used for both.

Then use tcp://serverip:1234 as the endpoint.

Server:

[Interface]
PrivateKey = gIIBl0OHb3wZjYGqZtgzRml3wec0e5vqXtSvCTfa42w=
Address = 192.168.2.0/24
ListenPortTCP = 1234
ListenPort = 1234

[Peer]
PublicKey = h/trC+5Z8qbGBJtroYITQGMNUn5XQZ/JRqVR3iIH5Ro=
AllowedIPs = 192.168.2.0/24
Features=hybrid_tcp

Client:

[Interface]
PrivateKey = gIIBl0OHb3wZjYGqZtgzRml3wec0e5vqXtSvCTfa42w=
DNS = 8.8.8.8 
Address = 192.168.2.2/24

[Peer]
PublicKey = h/trC+5Z8qbGBJtroYITQGMNUn5XQZ/JRqVR3iIH5Ro=
AllowedIPs = 0.0.0.0/0
Endpoint = tcp://serverip:1234
Features=hybrid_tcp

Note that hybrid-tcp is an experimental feature and may not be compatible with future versions.

Offline

Board footer

Powered by FluxBB