Hi,
setup was fast and easy. Connector is running on a Raspberry Pi Docker behind a Ubiquiti UDMP
with a public IPv4 & IPv6 address.
Using an iPhone with the Twingate App as client device.
I am able to reach my created resources. But always as “relayed” connection. Never seen a direct connection in the activity logs. Doesn’t matter if my mobile device is using LTE (outside) or the local Wifi (inside).
Twingate makes no sense for me, if I am sitting in front of my resources and the connection is always routed through a relay in a different country. Also if you have a slow internet connection all resources are then also slow from internal network.
Connector log if Client is using LTE:
[DEBUG] [libsdwan] [client(3503174115)] handle_message: got MESSAGE_DIRECT_CONNECT_INFO message
[DEBUG] [libsdwan] [client(3503174115)] process_direct_connect_info_message: {"addresses":[{"ip":"56.x.x.x","port":40390}]}
[DEBUG] [libsdwan] [direct] on_bus_event: {"addresses":[{"ip":"56.x.x.x","port":40390}]}
[DEBUG] [libsdwan] [client(3503174115)] send_direct_connect_info: asldjflasdfljkhasdklf43jkhlsydvjksdkljhfnsalkjdhfsakld
[DEBUG] [libsdwan] [client(3503174115)] send_message: arg: 102 (MESSAGE_DIRECT_CONNECT_INFO), len: 91
[DEBUG] [libsdwan] [direct] operator(): say hello to addr=56.x.x.x:40390
[DEBUG] [libsdwan] [direct] operator(): say hello to addr=56.x.x.x:40390
[DEBUG] [libsdwan] [direct] operator(): say hello to addr=56.x.x.x:40390
Connector log if client is using local Wifi (resource and client in the same network):
[DEBUG] [libsdwan] [client(300553183)] handle_message: got MESSAGE_DIRECT_CONNECT_INFO message
[DEBUG] [libsdwan] [client(300553183)] process_direct_connect_info_message: {"addresses":[{"ip":"<my-wan-ip>","port":53409}]}
[DEBUG] [libsdwan] [direct] on_bus_event: {"addresses":[{"ip":"<my-wan-ip>","port":53409}]}
[DEBUG] [libsdwan] [client(300553183)] send_direct_connect_info: eyJhbGciOiasdfasdfsadfsadfsadfsadfsadfsafsadfsadfsNX1dfQ
[DEBUG] [libsdwan] [client(300553183)] send_message: arg: 102 (MESSAGE_DIRECT_CONNECT_INFO), len: 91
[DEBUG] [libsdwan] [relay] get_needed_conns_count: relay 34.65.135.45:30017, needed_conns_count 0
[DEBUG] [libsdwan] [relay] get_needed_conns_count: relay 34.65.205.249:30013, needed_conns_count 0
[DEBUG] [libsdwan] [relay] get_needed_conns_count: relay 34.65.236.137:30002, needed_conns_count 0
[DEBUG] [libsdwan] [relay] get_needed_conns_count: relay 34.65.80.146:30012, needed_conns_count 0
[DEBUG] [libsdwan] [relay] get_all_listen_addrs: listeners_ size 1
[DEBUG] [libsdwan] [direct] operator(): say hello to addr=<my-wan-ip>:53409
[DEBUG] [libsdwan] [direct] operator(): say hello to addr=<my-wan-ip>:53409
[DEBUG] [libsdwan] [direct] operator(): say hello to addr=<my-wan-ip>:53409
What can I check/do to make direct connections instead of always relayed connections?
Thx
Edit 1: Tested also Tailscale and direct connections are always established. So in general my network setup works with peer-to-peer connections.