{"id":13509957,"url":"https://github.com/kintoandar/fwd","last_synced_at":"2026-01-08T16:55:57.422Z","repository":{"id":54262548,"uuid":"66765703","full_name":"kintoandar/fwd","owner":"kintoandar","description":"🚂 The little forwarder that could","archived":false,"fork":false,"pushed_at":"2021-08-17T14:26:55.000Z","size":479,"stargazers_count":211,"open_issues_count":1,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-01T10:35:06.937Z","etag":null,"topics":["cli","fwd","golang","network","ngrok","security","utility"],"latest_commit_sha":null,"homepage":"https://blog.kintoandar.com/2016/08/fwd-the-little-forwarder-that-could.html","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/kintoandar.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":"2016-08-28T11:55:53.000Z","updated_at":"2024-10-01T06:01:17.000Z","dependencies_parsed_at":"2022-08-13T10:20:40.034Z","dependency_job_id":null,"html_url":"https://github.com/kintoandar/fwd","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kintoandar%2Ffwd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kintoandar%2Ffwd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kintoandar%2Ffwd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kintoandar%2Ffwd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kintoandar","download_url":"https://codeload.github.com/kintoandar/fwd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246338558,"owners_count":20761402,"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","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","fwd","golang","network","ngrok","security","utility"],"created_at":"2024-08-01T02:01:18.747Z","updated_at":"2026-01-08T16:55:57.388Z","avatar_url":"https://github.com/kintoandar.png","language":"Go","funding_links":[],"categories":["Go","cli"],"sub_categories":[],"readme":"Table of Contents\n=================\n\n  * [Table of Contents](#table-of-contents)\n  * [fwd \\- The little forwarder that could](#fwd---the-little-forwarder-that-could)\n    * [About](#about)\n    * [Use Cases](#use-cases)\n      * [fwd ♥️ ngrok](#fwd-%EF%B8%8F-ngrok)\n      * [Simple Use Case](#simple-use-case)\n    * [Install](#install)\n      * [Binary Releases](#binary-releases)\n      * [Go Tool](#go-tool)\n    * [Usage](#usage)\n    * [Credits](#credits)\n\n# fwd - The little forwarder that could\n[![Travis](https://img.shields.io/travis/kintoandar/fwd.svg)](https://travis-ci.org/kintoandar/fwd)\n\n## About\n`fwd` is a network port forwarder written in golang.\n\nIt's cross platform, supports multiple architectures and it's dead simple to use.\n\nRead all about it in this [article](https://blog.kintoandar.com/2016/08/fwd-the-little-forwarder-that-could.html).\n\n## Use Cases\n### fwd ♥️ ngrok\nI must admit `ngrok` was an huge inspiration for `fwd`. If you don't know the tool you should definitely check out [this talk](https://www.youtube.com/watch?v=F_xNOVY96Ng) from [@inconshreveable](https://twitter.com/inconshreveable).\n\nThis tool combo (fwd + ngrok) allows some wicked mischief, like taking [firewall hole punching](https://en.wikipedia.org/wiki/Hole_punching_(networking)) to another level! And the setup is trivial.\n\n`ngrok` allows to expose a local port on a public endpoint and `fwd` allows to connect a local port to a remote endpoint. You see where I'm heading with this... With both tools you can connect a public endpoint to a remote port as long as you have access to it.\n\nHere's how it works:\n\n```\n                              +---------+                            +---------+\n                        :9000 |         |            172.28.128.3:22 |         |\nInternet +------------------\u003e |   fwd   | +------------------------\u003e |   ssh   |\ntcp.ngrok.io:1234             |         | 172.28.128.1               |         |\n                              +---------+                            +---------+\n```\n\n```\n# get a public endpoint, ex: tcp.ngrok.io:1234\nngrok tcp 9000\n\n# forward connections on :9000 to 172.28.128.3:22\nfwd --from :9000 --to 172.28.128.3:22\n\n# get a shell on 172.28.128.3 via a public endpoint\nssh tcp.ngrok.io -p 1234\n```\n_With great power comes great responsibility._ - Ben Parker\n\n### Simple Use Case\nForwarding a local port to a remote port on a different network:\n\n```\n                             +---------+                             +---------+\n           192.168.1.99:8000 |         |             172.28.128.3:80 |         |\ncurl +---------------------\u003e |   fwd   | +-------------------------\u003e |   web   |\n                             |         | 172.28.128.1                |         |\n                             +---------+                             +---------+\n```\n\n![demo](docs/fwd_http.gif)\n\n## Install\nGet the binaries or build it yourself.\n\n### Releases\nDownload prebuilt binaries for several platforms and architectures:\n\n[Releases](https://github.com/kintoandar/fwd/releases)\n\n### Go Tool\n```\ngo get github.com/kintoandar/fwd/...\ngo install github.com/kintoandar/fwd/...\n```\n\n## Usage\n```\nusage: fwd [\u003cflags\u003e]\n\nName:\n\n  fwd - 🚂 The little forwarder that could\n\nAuthor:\n\n  Joel Bastos @kintoandar\n\nExample:\n\n  fwd --from localhost:8000 --to example.com:80\n\nFlags:\n  -h, --help                   Show context-sensitive help (also try --help-long and --help-man).\n  -f, --from=\"127.0.0.1:8000\"  Local address to bind port (host:port)\n  -t, --to=\"example.com:80\"    Remote address to forward traffic (host:port)\n  -v, --version                Version details\n  -l, --list                   List local network addresses available\n      --log.level=info         Logging level (error, warn, info, debug)\n      --log.format=logfmt      Logging format (logfmt, json)\n      --config=CONFIG          Configuration file path (overrides all flags)\n```\n\n### Configuration file\nFor multiport forwarding support, please check [the example configuration file](config.yml).\n\n\n## Credits\nMade with ♥️ by [kintoandar](https://blog.kintoandar.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkintoandar%2Ffwd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkintoandar%2Ffwd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkintoandar%2Ffwd/lists"}