{"id":28509574,"url":"https://github.com/maxomatic458/lantun","last_synced_at":"2025-08-12T00:09:31.326Z","repository":{"id":293511368,"uuid":"981299937","full_name":"maxomatic458/lantun","owner":"maxomatic458","description":"tunnel local ports over the internet","archived":false,"fork":false,"pushed_at":"2025-05-17T15:34:42.000Z","size":120,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-03T02:23:59.880Z","etag":null,"topics":["cli","networking","p2p","quic","tunneling"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxomatic458.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-10T19:40:09.000Z","updated_at":"2025-07-16T12:07:40.000Z","dependencies_parsed_at":"2025-07-02T23:41:31.099Z","dependency_job_id":null,"html_url":"https://github.com/maxomatic458/lantun","commit_stats":null,"previous_names":["maxomatic458/lantun"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/maxomatic458/lantun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxomatic458%2Flantun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxomatic458%2Flantun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxomatic458%2Flantun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxomatic458%2Flantun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxomatic458","download_url":"https://codeload.github.com/maxomatic458/lantun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxomatic458%2Flantun/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269976808,"owners_count":24506471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","networking","p2p","quic","tunneling"],"created_at":"2025-06-08T22:09:06.746Z","updated_at":"2025-08-12T00:09:31.270Z","avatar_url":"https://github.com/maxomatic458.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lantun\n\nlantun is a networking tool that makes it possible to expose local ports over a secure tunnel to the internet.\nlantun is **not** a reverse proxy, so both the host and client need to run the lantun client.\n\n## Tunnel system\nA host can expose a port over the internet by creating a `HostTunnel`, which is identified\nby a 64 character long ID. Everyone who knows this ID can create a `ClientTunnel` to connect to the host.\n\nA `HostTunnel` can be bound to a specific IP address and port like `127.0.0.1:8080/tcp`.\nThe `ClientTunnel` can expose the tunneled connection on a IP address and port on the client network like `127.0.0.1:5000/tcp`.\n\nThis would establish a tunneled connection between client and host.\n\n\nHost: `127.0.0.1:8080/tcp` \u003c-\u003e Client: `127.0.0.1:5000/tcp`\n\nSo the client can now essentially access the hosts service on port 8080 over their own local port 5000.\n\n## Usage\n\nLets say the Host wants to expose a minecraft server running on port 25565.\n\nOn the host side run:\n```\n$ lantun add-host 127.0.0.1:25565 tcp mc-server \n\nTunnel \"mc-server\" with local addr 127.0.0.1:25565/tcp created.\nThe public secret is \"e929b2f2cc170c71ec7b3e71cc78b041c29545095ee0c1d74baba545c5091b02\"\n\nTo add a client tunnel on the client side, use:\n  lantun add-client e929b2f2cc170c71ec7b3e71cc78b041c29545095ee0c1d74baba545c5091b02 127.0.0.1:25565 tcp \u003cname\u003e\n```\n\nOn the client side run:\n```\n$ lantun add-client e929b2f2cc170c71ec7b3e71cc78b041c29545095ee0c1d74baba545c5091b02 127.0.0.1:25565 tcp \u003cname\u003e\n```\n\nNow start the lantun program on both sides and keep it running to tunnel the connection:\n```\n$ lantun\n```\n\nThe client can now join the host's server by connecting to `127.0.0.1:25565`.\n\n\u003e [!NOTE]\n\u003e If configured properly other devices on the client network can also join the host's server by connecting to the local IP address of the client (which is running lantun).\n\nsee `lantun --help` for more options.\n\n### Details\nUnder the hood lantun uses [iroh](https://github.com/n0-computer/iroh) to establish peer-to-peer connections. If a direct connection is not possible a relay server will be used.\nTunnel traffic is encrypted using the private and public keys of the tunnel.\n\nLocation of the lantun config file:\n- Linux: `~/.config/lantun/config.toml`\n- Windows: `%APPDATA%/lantun/config.toml`\n- MacOS: `~/Library/Application Support/lantun/config.toml`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxomatic458%2Flantun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxomatic458%2Flantun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxomatic458%2Flantun/lists"}