Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document ports used #1767

Closed
kradalby opened this issue Feb 16, 2024 · 3 comments
Closed

Document ports used #1767

kradalby opened this issue Feb 16, 2024 · 3 comments
Labels
bug Something isn't working stale

Comments

@kradalby
Copy link
Collaborator

As part of implementing #1600

We probably need more ports open and we should document which ports are required for each scenarios:

With embedded DERP:

  • 80 -> for generate204
  • 3478 -> STUN
  • 443 -> Headscale + DERP

With Letsencrypt:

  • 80 -> ownership check

Standard:

  • 50443 -> gRPC
  • 9090 -> /metrics
@kradalby kradalby added the bug Something isn't working label Feb 16, 2024
@balki
Copy link

balki commented Apr 8, 2024

Is it possible to change the usage of port 80. I have headscale listening on below

server_url: https://hs.mydomain.com:8443

and caddy web server on port 80 and 443. The clients seem to send the below request to port 80 which gets logged in caddy as errors instead of reaching headscale. Is the below request only used with embedded derp?

{                                                                                                                                                                                                          
    "level": "info",                                                                                                                                                                                         
    "ts": "<timestamp>",                                                                                                                                                                                
    "logger": "http.log.access.log0",                                                                                                                                                                        
    "msg": "handled request",                                                                                                                                                                                
    "request": {                                                                                                                                                                                             
      "remote_ip": "XX.XX.XX.XX",                                                                                                                                                                          
      "remote_port": "40362",                                                                                                                                                                                
      "client_ip": "XX.XX.XX.XX",                                                                                                                                                                          
      "proto": "HTTP/1.1",                                                                                                                                                                                   
      "method": "POST",                                                                                                                                                                                      
      "host": "hs.mydomain.com:80",                                                                                                                                                                              
      "uri": "/ts2021",                                                                                                                                                                                      
      "headers": {                                                                                                                                                                                           
        "User-Agent": [                                                                                                                                                                                      
          "Go-http-client/1.1"                                                                                                                                                                               
        ],                                                                                                                                                                                                   
        "Content-Length": [                                                                                                                                                                                  
          "0"                                                                                                                                                                                                
        ],                                                                                                                                                                                                   
        "Connection": [                                                                                                                                                                                      
          "upgrade"                                                                                                                                                                                          
        ],                                                                                                                                                                                                   
        "Upgrade": [                                                                                                                                                                                         
          "tailscale-control-protocol"                                                                                                                                                                       
        ],                                                                                                                                                                                                   
        "X-Tailscale-Handshake": [                                                                                                                                                                           
          "<base64 encoded binary data>ggwE="                                                         
        ]                                                                                                                                                                                                    
      }                                                                                                                                                                                                      
    },                                                                                                                                                                                                       
    "bytes_read": 0,                                                                                                                                                                                         
    "user_id": "",                                                                                                                                                                                           
    "duration": 0,                                                                                                                                                                                           
    "size": 0,                                                                                                                                                                                               
    "status": 0,                                                                                                                                                                                             
    "resp_headers": {                                                                                                                                                                                        
      "Server": [                                                                                                                                                                                            
        "Caddy"                                                                                                                                                                                              
      ]                                                                                                                                                                                                      
    }                                                                                                                                                                                                        
  }      

Copy link
Contributor

github-actions bot commented Jul 8, 2024

This issue is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the stale label Jul 8, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants