2022-09-16 15:34:00 +02:00
2022-09-16 15:34:00 +02:00
2022-09-15 13:45:09 +02:00
2022-09-15 13:45:09 +02:00
2022-09-15 13:45:09 +02:00
2022-09-14 18:38:44 +02:00
2022-09-14 17:29:16 +02:00
2022-09-14 18:38:44 +02:00

Pure Nim NAT traversal

License: MIT License: Apache Stability: experimental

NAT automated port mapping using UPnP for chronos.

Troubleshooting

tinyupnp includes a quick test to see if it's working correctly:

$ nim -d:chronicles_log_level=TRACE c -r tinyupnp.nim
[..]
2022-09-14 17:20:07.224+02:00 Getting all mappings                       topics="tinyupnp"
$

With upnp disabled:

$ nim -d:chronicles_log_level=TRACE c -r tinyupnp.nim
[..]
TRC 2022-09-14 17:23:35.327+02:00 SSDP response with useless service type    topics="tinyupnp" tid=76330 response="HTTP/1.1 200 OK\r\nHOST: 239.255.255.250:1900\r\nEXT:\r\nCACHE-CONTROL: max-age=100\r\nLOCATION: http://192.168.1.10:80/description.xml\r\nSERVER: UPnP/1.0 IpBridge/1.52.0\r\nST: urn:schemas-upnp-org:device:basic:1\r\n\r\n"
INF 2022-09-14 17:23:36.289+02:00 Couldn't find upnp gateway in time

If upnp is enabled in your network and doesn't work with tinyupnp, please open an issue without the logs as they may contain sensitive information!

TODO

  • UPnP implementation
  • Mapping manager
  • NAT-PMP implementation
Description
No description provided
Readme MIT
Languages
Nim 100%