Skip to content

Support self-relaying without NAT loopback #99

@bp2468

Description

@bp2468

Apart from what is given below I've inlcuded secret and realm. There is no error when checked with trickle ice. But not working in browser.
contents of my yml:

listen:
    -
      ip: "::"
      port: 3478
      transport: udp
      enable_turn: true
    #-
    #  ip: "::"
    #  port: 3478
    #  transport: tcp
    #  enable_turn: true
    #-
    #  ip: "::"
    #  port: 5349
    #  transport: tls

  ## TLS certificate/key files (must be readable by 'eturnal' user!):
  #tls_crt_file: /etc/eturnal/tls/crt.pem
  #tls_key_file: /etc/eturnal/tls/key.pem

  ## The server's public IPv4 address (default: autodetected):
  relay_ipv4_addr: "x.x.x.x"
  ## The server's public IPv6 address (optional):
  #relay_ipv6_addr: "2001:db8::4"

  ## UDP relay port range (usually, several ports per A/V call are required):
  relay_min_port: 12000     # This is the default.
  relay_max_port: 13000     # This is the default.

  ## Reject TURN relaying to the following addresses/networks:
  blacklist_peers: []
    #- recommended           # Expands to various addresses/networks recommended
                            # to be blocked. This is the default.

  ## If 'true', close established calls on expiry of temporary TURN credentials:
  strict_expiry: false      # This is the default.

  ## Logging configuration:
  log_level: info           # critical | error | warning | notice | info | debug
  log_rotate_size: 10485760 # 10 MiB (default: unlimited, i.e., no rotation).
  log_rotate_count: 10      # Keep 10 rotated log files.
  #log_dir: stdout          # Enable for logging to the terminal/journal.

  ## See: https://eturnal.net/doc/#Module_Configuration
  modules:
    mod_log_stun: {}        # Log STUN queries (in addition to TURN sessions).
    #mod_stats_prometheus:  # Expose STUN/TURN and VM metrics to Prometheus.
    #  ip: any              # This is the default: Listen on all interfaces.
    #  port: 8081           # This is the default.
    #  tls: false           # This is the default.
    #  vm_metrics: true     # This is the default.

Log:

2025-12-09 17:13:31.112551+05:30 [info] Responding to STUN request [UDP, session pieuezfs7o1i, anonymous, client 14.139.183.221:56783]
2025-12-09 17:13:36.899501+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session nr4hy00cmod5, user 1765280875, client 14.139.183.221:56783]
2025-12-09 17:13:36.899757+05:30 [info] Client requested closing the TURN session [UDP, session yx9i1st562ol, user 1765280875, client 14.139.183.221:56783, relay 14.139.173.219:12397]
2025-12-09 17:13:36.900323+05:30 [info] Deleting TURN allocation [UDP, session yx9i1st562ol, user 1765280875, client 14.139.183.221:56783, relay 14.139.173.219:12397]
2025-12-09 17:13:36.899975+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session rkqku065ho2o, user 1765280878, client 223.239.3.22:59020]
2025-12-09 17:13:36.900504+05:30 [info] Client requested closing the TURN session [UDP, session dlirwpnbodaa, user 1765280878, client 223.239.3.22:59020, relay 14.139.173.219:12003]
2025-12-09 17:13:36.900379+05:30 [notice] Relayed 12 KiB (in 0 B / 0 packets, out 11808 B / 123 packets), duration: 25 seconds [UDP, session yx9i1st562ol, user 1765280875, client 14.139.183.221:56783, relay 14.139.173.219:12397]
2025-12-09 17:13:36.900665+05:30 [info] Deleting TURN allocation [UDP, session dlirwpnbodaa, user 1765280878, client 223.239.3.22:59020, relay 14.139.173.219:12003]
2025-12-09 17:13:36.900681+05:30 [notice] Relayed 12 KiB (in 0 B / 0 packets, out 12200 B / 122 packets), duration: 28 seconds [UDP, session dlirwpnbodaa, user 1765280878, client 223.239.3.22:59020, relay 14.139.173.219:12003]
2025-12-09 17:15:48.998824+05:30 [info] Responding to STUN request [UDP, session 1ch9qtqjyphe, anonymous, client 223.239.3.22:60339]
2025-12-09 17:15:49.036295+05:30 [info] Responding to STUN request [UDP, session but6cfh0b738, anonymous, client 223.239.3.22:60344]
2025-12-09 17:15:49.105221+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session 4b3qe6kgl1zd, user 1765281040:7994747256, client 223.239.3.22:60339]
2025-12-09 17:15:49.106449+05:30 [notice] Creating TURN allocation (lifetime: 600 seconds) [UDP, session 4b3qe6kgl1zd, user 1765281040:7994747256, client 223.239.3.22:60339, relay 14.139.173.219:12221]
2025-12-09 17:15:49.158102+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session deqogxyerp91, user 1765281040:7994747256, client 223.239.3.22:60344]
2025-12-09 17:15:49.158952+05:30 [notice] Creating TURN allocation (lifetime: 600 seconds) [UDP, session deqogxyerp91, user 1765281040:7994747256, client 223.239.3.22:60344, relay 14.139.173.219:12532]
2025-12-09 17:15:49.397403+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session qputgl2eipmb, user 1765281040:7994747256, client 223.239.3.22:60339]
2025-12-09 17:15:51.585154+05:30 [info] Responding to STUN request [UDP, session h8uf3utixieh, anonymous, client 14.139.183.221:50719]
2025-12-09 17:15:51.635748+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session yoto22s2ib1m, user 1765281036:201016, client 14.139.183.221:50719]
2025-12-09 17:15:51.636219+05:30 [notice] Creating TURN allocation (lifetime: 600 seconds) [UDP, session yoto22s2ib1m, user 1765281036:201016, client 14.139.183.221:50719, relay 14.139.173.219:12200]
2025-12-09 17:15:51.639178+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session 3gl1uuovdlxf, user 1765281036:201016, client 14.139.183.221:50719]
2025-12-09 17:15:51.639332+05:30 [info] Creating TURN permission for 10.43.15.96 [UDP, session yoto22s2ib1m, user 1765281036:201016, client 14.139.183.221:50719, relay 14.139.173.219:12200]
2025-12-09 17:15:51.639463+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session t79q2zkkpwhv, user 1765281036:201016, client 14.139.183.221:50719]
2025-12-09 17:15:51.639524+05:30 [info] Creating TURN permission for 223.239.3.22 [UDP, session yoto22s2ib1m, user 1765281036:201016, client 14.139.183.221:50719, relay 14.139.173.219:12200]
2025-12-09 17:15:51.639598+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session 83i4yg6qq9zz, user 1765281036:201016, client 14.139.183.221:50719]
2025-12-09 17:15:51.639646+05:30 [info] Creating TURN permission for 14.139.173.219 [UDP, session yoto22s2ib1m, user 1765281036:201016, client 14.139.183.221:50719, relay 14.139.173.219:12200]
2025-12-09 17:15:52.228945+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session rt2tzsywbua0, user 1765281040:7994747256, client 223.239.3.22:60344]
2025-12-09 17:15:52.229223+05:30 [info] Client requested closing the TURN session [UDP, session deqogxyerp91, user 1765281040:7994747256, client 223.239.3.22:60344, relay 14.139.173.219:12532]
2025-12-09 17:15:52.229708+05:30 [info] Deleting TURN allocation [UDP, session deqogxyerp91, user 1765281040:7994747256, client 223.239.3.22:60344, relay 14.139.173.219:12532]
2025-12-09 17:15:52.229831+05:30 [notice] Relayed 0 KiB (in 0 B / 0 packets, out 0 B / 0 packets), duration: 3 seconds [UDP, session deqogxyerp91, user 1765281040:7994747256, client 223.239.3.22:60344, relay 14.139.173.219:12532]
2025-12-09 17:15:52.238135+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session bbnn9zmgoo2w, user 1765281040:7994747256, client 223.239.3.22:60339]
2025-12-09 17:15:52.238291+05:30 [info] Creating TURN permission for 10.176.16.131 [UDP, session 4b3qe6kgl1zd, user 1765281040:7994747256, client 223.239.3.22:60339, relay 14.139.173.219:12221]
2025-12-09 17:15:52.238448+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session 05bevk52lntq, user 1765281040:7994747256, client 223.239.3.22:60339]
2025-12-09 17:15:52.238520+05:30 [info] Creating TURN permission for 14.139.183.221 [UDP, session 4b3qe6kgl1zd, user 1765281040:7994747256, client 223.239.3.22:60339, relay 14.139.173.219:12221]
2025-12-09 17:15:52.238600+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session 13dpkkytk1ey, user 1765281040:7994747256, client 223.239.3.22:60339]
2025-12-09 17:15:52.238638+05:30 [info] Creating TURN permission for 14.139.173.219 [UDP, session 4b3qe6kgl1zd, user 1765281040:7994747256, client 223.239.3.22:60339, relay 14.139.173.219:12221]
2025-12-09 17:15:54.714273+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session b88eceb90cxk, user 1765281036:201016, client 14.139.183.221:50719]
2025-12-09 17:15:54.714629+05:30 [info] Client requested closing the TURN session [UDP, session yoto22s2ib1m, user 1765281036:201016, client 14.139.183.221:50719, relay 14.139.173.219:12200]
2025-12-09 17:15:54.714938+05:30 [info] Deleting TURN allocation [UDP, session yoto22s2ib1m, user 1765281036:201016, client 14.139.183.221:50719, relay 14.139.173.219:12200]
2025-12-09 17:15:54.714971+05:30 [notice] Relayed 2 KiB (in 0 B / 0 packets, out 2304 B / 24 packets), duration: 3 seconds [UDP, session yoto22s2ib1m, user 1765281036:201016, client 14.139.183.221:50719, relay 14.139.173.219:12200]
2025-12-09 17:15:55.030660+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session jqdrcdb3wi3o, user 1765281040:7994747256, client 223.239.3.22:60339]
2025-12-09 17:15:55.030913+05:30 [info] Client requested closing the TURN session [UDP, session 4b3qe6kgl1zd, user 1765281040:7994747256, client 223.239.3.22:60339, relay 14.139.173.219:12221]
2025-12-09 17:15:55.031221+05:30 [info] Deleting TURN allocation [UDP, session 4b3qe6kgl1zd, user 1765281040:7994747256, client 223.239.3.22:60339, relay 14.139.173.219:12221]
2025-12-09 17:15:55.031320+05:30 [notice] Relayed 2 KiB (in 0 B / 0 packets, out 2100 B / 21 packets), duration: 5 seconds [UDP, session 4b3qe6kgl1zd, user 1765281040:7994747256, client 223.239.3.22:60339, relay 14.139.173.219:12221]
2025-12-09 17:16:42.863497+05:30 [info] Responding to STUN request [UDP, session nlyndmcwumbr, anonymous, client 14.139.183.221:61705]
2025-12-09 17:16:42.932708+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session mwbzqwsko6sf, user 1765281073:turnuser-tcp, client 14.139.183.221:61705]
2025-12-09 17:16:42.933171+05:30 [notice] Creating TURN allocation (lifetime: 600 seconds) [UDP, session mwbzqwsko6sf, user 1765281073:turnuser-tcp, client 14.139.183.221:61705, relay 14.139.173.219:12624]
2025-12-09 17:16:42.995530+05:30 [info] Accepting long-term STUN/TURN authentication [UDP, session 1mwrz9534apa, user 1765281073:turnuser-tcp, client 14.139.183.221:61705]
2025-12-09 17:16:42.995831+05:30 [info] Client requested closing the TURN session [UDP, session mwbzqwsko6sf, user 1765281073:turnuser-tcp, client 14.139.183.221:61705, relay 14.139.173.219:12624]
2025-12-09 17:16:42.996112+05:30 [info] Deleting TURN allocation [UDP, session mwbzqwsko6sf, user 1765281073:turnuser-tcp, client 14.139.183.221:61705, relay 14.139.173.219:12624]
2025-12-09 17:16:42.996191+05:30 [notice] Relayed 0 KiB (in 0 B / 0 packets, out 0 B / 0 packets), duration: 0 seconds [UDP, session mwbzqwsko6sf, user 1765281073:turnuser-tcp, client 14.139.183.221:61705, relay 14.139.173.219:12624]

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestsupportSupport request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions