{"id":19819249,"url":"https://github.com/minoritea/tunneler","last_synced_at":"2025-08-02T03:10:17.871Z","repository":{"id":57589204,"uuid":"97313457","full_name":"minoritea/tunneler","owner":"minoritea","description":"Tunneler is a ssh port forwarder with TOML configuration management","archived":false,"fork":false,"pushed_at":"2021-03-25T05:03:12.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-01T11:37:15.848Z","etag":null,"topics":["cli","go","resolving-hostnames","ssh","toml"],"latest_commit_sha":null,"homepage":"","language":"Go","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/minoritea.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}},"created_at":"2017-07-15T12:07:10.000Z","updated_at":"2022-02-01T08:03:21.000Z","dependencies_parsed_at":"2022-09-26T22:20:34.883Z","dependency_job_id":null,"html_url":"https://github.com/minoritea/tunneler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/minoritea/tunneler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minoritea%2Ftunneler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minoritea%2Ftunneler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minoritea%2Ftunneler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minoritea%2Ftunneler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minoritea","download_url":"https://codeload.github.com/minoritea/tunneler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minoritea%2Ftunneler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268330914,"owners_count":24233152,"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-02T02:00:12.353Z","response_time":74,"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","go","resolving-hostnames","ssh","toml"],"created_at":"2024-11-12T10:18:21.589Z","updated_at":"2025-08-02T03:10:17.846Z","avatar_url":"https://github.com/minoritea.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tunneler\nTunneler is a ssh port forwarder with TOML configuration management.\n\n## How to install\n```bash\n# We need a Go language compiler and tools (1.8 or later).\n$ go get -u github.com/minoritea/tunneler\n```\n\n## How to use\n```bash\n$ tunneler -c config.toml\n```\n\n## Configuration\nTunneler uses [TOML](https://github.com/toml-lang/toml) for configuration file format.\n\n[https://github.com/toml-lang/toml](https://github.com/toml-lang/toml)\n\n```toml\n# Each top-level keys corresponds each servers which we want to have them forward connections via SSH.\n# And each entries must includes connection configurations.\n# We can name each entries at will.\n# For example, a configuration for a server which named `bastion` is below.\n[bastion]\n# the server's IP and port\nhost = \"192.168.1.1\"\nport = \"22\"\n\n# the login user's name\nuser = \"remote_user\" \n\n# Tunneler currently supports cert file authentication using PEM format.\n# Cert files must be placed in our local machine.\ncert_path = \"/home/local_user/.ssh/cert.pem\"\n\n# `server`.tunnels is a table of settings for port forwarding targets.\n# We can name each keys at will.\n[bastion.tunnels.postgres]\n# the target server's IP and port\nremote_host = \"192.168.10.1\"\nremote_port = \"5432\"\n# the forwarded local port\nlocal_port  = \"5432\"\n\n# We can adds multiple entries.\n```\n\n### Multi hop SSH tunneling\nTunneler also supports multi hop SSH tunneling.\n\n```toml\n[bastion]\nhost = \"192.168.1.1\"\nport = \"22\"\nuser = \"remote_user\" \ncert_path = \"/home/local_user/.ssh/cert.pem\"\n\n# `server`.cascades is a table of settings for intermediate servers.\n[bastion.cascades.server1]\nhost = \"192.168.100.1\"\nport = \"22\"\nuser = \"remote_user\" \ncert_path = \"/home/local_user/.ssh/cert.pem\"\n\n# We can set multi stage intermediate servers.\n[bastion.cascades.server1.cascades.server2]\nhost = \"192.168.100.2\"\nport = \"22\"\nuser = \"remote_user\" \ncert_path = \"/home/local_user/.ssh/cert.pem\"\n\n[bastion.cascades.server1.cascades.server2.tunnels.postgres]\nremote_host = \"192.168.100.10\"\nremote_port = \"5432\"\nlocal_port  = \"5432\"\n```\n\n### Resolving hostnames on hosts\nTunneler can resolve hostnames on each forwarding servers.\n```toml\n[bastion]\n# ...\n\n[bastion.cascades.foo_example]\nhost = \"foo.example.org\"\nport = \"22\"\nuser = \"foo_user\"\ncert_path = \"/home/local_user/.ssh/cert.pem\"\n# If we want to resolve hostnames on a forwarding server,\n# enable `resolve_on_host`.\n# In this example, the host `foo.example.org` is resolved on `bastion`.\nresolve_on_host = true\n\n[bastion.cascades.foo_example.tunnels.bar_example]\nhost = \"bar.example.org\"\nport = \"80\"\nuser = \"bar_user\"\ncert_path = \"/home/local_user/.ssh/cert.pem\"\n# We can also resolve hostnames in tunnels.\n# Resolving process will run on the server which forwards the tunnel.\n# In this example, the host `bar.example.org` is resolved on `bastion`.\nresolve_on_host = true\n```\n\n## LICENSE\nMIT License (see the attached file: LICENSE)\n\nCopyright (c) 2017 Minori Tokuda\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminoritea%2Ftunneler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminoritea%2Ftunneler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminoritea%2Ftunneler/lists"}