Skip to content

Fails to connect on MIT wifi, not falling back to secondary port #2499

@waltmck

Description

@waltmck

Issue

I am trying to connect my laptop (behind a firewall) to my server (not behind a firewall) using zerotier. My laptop is behind MIT's wifi network, which blocks most UDP ports including 9993. Port 4500 is allowed by the firewall, but even when I set secondaryPort = 4500 the devices completely fail to connect.

Diagnostic Info

zerotier-cli info -j output of my server:

{
 "address": "54e1bd21d7",
 "clock": 1755028264468,
 "config": {
  "settings": {
   "allowTcpFallbackRelay": false,
   "concurrency": 4,
   "cpuPinningEnabled": true,
   "defaultBondingPolicy": "balance-aware",
   "forceTcpRelay": false,
   "homeDir": "/var/lib/zerotier-one",
   "interfacePrefixBlacklist": [
    "wg",
    "zt"
   ],
   "listeningOn": [
    "37.27.106.131/9993",
    "37.27.106.131/4500",
    "37.27.106.131/34007"
   ],
   "multicoreEnabled": true,
   "portMappingEnabled": true,
   "primaryPort": 9993,
   "secondaryPort": 4500,
   "softwareUpdate": "disable",
   "softwareUpdateChannel": "release",
   "surfaceAddresses": [
    "37.27.106.131/9993",
    "37.27.106.131/4500",
    "37.27.106.131/34007"
   ],
   "tertiaryPort": 34007
  }
 },
 "online": true,
 "planetWorldId": 149604618,
 "planetWorldTimestamp": 1738848951118,
 "publicIdentity": "54e1bd21d7:0:b08b7ea7a326a57680dbb9ea4abdd4e413f36b0278055ea693dd1301058ce06702da58ca2f16a4182335b44464e29c599b7e112ac49e60af1b29c63e25356dd9",
 "tcpFallbackActive": false,
 "version": "1.14.2",
 "versionBuild": 0,
 "versionMajor": 1,
 "versionMinor": 14,
 "versionRev": 2
}

zerotier-cli info -j output for my laptop:

{
 "address": "53abc8ed10",
 "clock": 1755028020403,
 "config": {
  "settings": {
   "allowTcpFallbackRelay": false,
   "concurrency": 4,
   "cpuPinningEnabled": true,
   "defaultBondingPolicy": "balance-aware",
   "forceTcpRelay": false,
   "homeDir": "/var/lib/zerotier-one",
   "interfacePrefixBlacklist": [
    "wg",
    "zt"
   ],
   "listeningOn": [
    "10.189.97.143/9993",
    "10.189.97.143/33357",
    "10.189.97.143/4500"
   ],
   "multicoreEnabled": true,
   "portMappingEnabled": true,
   "primaryPort": 9993,
   "secondaryPort": 4500,
   "softwareUpdate": "disable",
   "softwareUpdateChannel": "release",
   "surfaceAddresses": [
    "192.54.222.148/22874",
    "192.54.222.148/36632",
    "192.54.222.148/9889",
    "192.54.222.148/13431",
    "192.54.222.148/46838",
    "192.54.222.148/9394",
    "192.54.222.148/47493",
    "192.54.222.148/50122",
    "192.54.222.148/23252",
    "192.54.222.148/52594",
    "192.54.222.148/37364",
    "192.54.222.148/47689",
    "192.54.222.148/15132"
   ],
   "tertiaryPort": 33357
  }
 },
 "online": true,
 "planetWorldId": 149604618,
 "planetWorldTimestamp": 1738848951118,
 "publicIdentity": "53abc8ed10:0:a6ccb9e9c13831758fb5bdb0e01b36f66e5b2c9cecc00b4cfac812c38827ca66166c5f466f68dcb498c485144a76b5c46f49128ec87a91667d7c59d41730d04f",
 "tcpFallbackActive": false,
 "version": "1.14.2",
 "versionBuild": 0,
 "versionMajor": 1,
 "versionMinor": 14,
 "versionRev": 2
}

zerotier-cli peers output of my server:

200 peers
<ztaddr>   <ver>  <role> <lat> <link>   <lastTX> <lastRX> <path>
53abc8ed10 1.14.2 LEAF       0 DIRECT   837      728      192.54.222.148/52594
6ab565387a 1.14.2 LEAF     119 DIRECT   15289    15170    35.209.220.36/33386
778cde7190 -      PLANET   131 DIRECT   276      204363   103.195.103.66/9993
a8f0746744 1.14.0 LEAF       0 DIRECT   6046     6046     192.54.222.136/39309
cafe04eba9 -      PLANET     0 DIRECT   30296    210412   84.17.53.155/9993
cafe80ed74 -      PLANET     0 DIRECT   30296    210274   185.152.67.145/9993
cafefd6717 -      PLANET     0 DIRECT   30296    210195   79.127.159.187/9993

zerotier-cli peers output of my laptop:

200 peers
<ztaddr>   <ver>  <role> <lat> <link>   <lastTX> <lastRX> <path>
54e1bd21d7 1.14.2 LEAF      -1 RELAY
6ab565387a 1.14.2 LEAF      -1 RELAY
778cde7190 -      PLANET    51 DIRECT   53       35042    103.195.103.66/9993
cafe04eba9 -      PLANET   102 DIRECT   5059     34991    84.17.53.155/9993
cafe80ed74 -      PLANET    97 DIRECT   5059     34996    185.152.67.145/9993
cafefd6717 -      PLANET   205 DIRECT   5059     34888    79.127.159.187/9993

Further information

Both port 9993 and port 4500 are open on both devices.

The connection is established successfully if I set primaryPort = 4500 on both devices. However, the connection seems weirdly flaky:

  • I can ping my server from my laptop and vice versa
  • I can ssh from my server into my laptop, but not vice versa
  • I can wget from my server to my laptop, but not vice versa

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions