{"id":13413593,"url":"https://github.com/alegrey91/fwdctl","last_synced_at":"2025-07-09T21:38:37.339Z","repository":{"id":56746402,"uuid":"524478204","full_name":"alegrey91/fwdctl","owner":"alegrey91","description":"⛓️ CLI tool to easily manage IPTables forwards","archived":false,"fork":false,"pushed_at":"2025-01-23T15:26:51.000Z","size":3022,"stargazers_count":66,"open_issues_count":12,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-12T03:14:24.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alegrey91.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":"2022-08-13T18:30:39.000Z","updated_at":"2025-05-02T17:42:28.000Z","dependencies_parsed_at":"2024-04-13T17:39:54.100Z","dependency_job_id":"77fba64f-3291-4ad7-acdd-07346fa9f5f3","html_url":"https://github.com/alegrey91/fwdctl","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/alegrey91/fwdctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Ffwdctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Ffwdctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Ffwdctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Ffwdctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alegrey91","download_url":"https://codeload.github.com/alegrey91/fwdctl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Ffwdctl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264503937,"owners_count":23618763,"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":[],"created_at":"2024-07-30T20:01:44.040Z","updated_at":"2025-07-09T21:38:37.303Z","avatar_url":"https://github.com/alegrey91.png","language":"Go","funding_links":[],"categories":["Networking","网络"],"sub_categories":["Transliteration","音译"],"readme":"# fwdctl\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"fwdctl.png\" alt=\"fwdctl\" width=\"200\"/\u003e\n\u003c/p\u003e\n\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/alegrey91/fwdctl.svg)](https://pkg.go.dev/github.com/alegrey91/fwdctl)\n[![Go Report Card](https://goreportcard.com/badge/github.com/alegrey91/fwdctl)](https://goreportcard.com/report/github.com/alegrey91/fwdctl)\n[![Go Coverage](https://github.com/alegrey91/fwdctl/wiki/coverage.svg)](https://raw.githack.com/wiki/alegrey91/fwdctl/coverage.html)\n![https://img.shields.io/ossf-scorecard/github.com/alegrey91/fwdctl?label=openssf%20scorecard\u0026style=flat](https://img.shields.io/ossf-scorecard/github.com/alegrey91/fwdctl?label=openssf%20scorecard\u0026style=flat)\n[![Awesome](https://awesome.re/badge.svg)](https://github.com/avelino/awesome-go/)\n\n**fwdctl** is a simple and intuitive CLI to manage forwards in your **Linux** server.\n\n## How it works\n\nIt essentially provides commands to manage forwards, using **iptables** under the hood.\n\nLet's do an example:\n\nSuppose you have an **hypervisor** server that hosts some virtual machines inside itself. If you need to expose an internal service, managed by one of these VMs, you can use **fwdctl** from the hypervisor to add the forward to expose this service.\n\n![example](./fwdctl-example.png)\n\nTo do so, you have to type this easy command: \n\n``` shell\nsudo fwdctl create --destination-port 3000 --source-address 192.168.199.105 --source-port 80\n```\n\nThat's it.\n\nFull **documentation** [here](docs/getting-started.md).\n\n## Installation\n\n#### Linux x86_64\n\n```shell\ncurl -s https://raw.githubusercontent.com/alegrey91/fwdctl/main/install | sudo sh\n```\n\n## Seccomp (experimental)\n\nI've recently added a new functionality to trace the system calls used by `fwdctl` during the test pipeline.\n\nThis is done by using another project of mine: [`harpoon`](https://github.com/alegrey91/harpoon).\n\nThanks to this, at the end of the pipeline, we have a **seccomp** profile as artifact. You can use this to run `fwdctl` in a more secure way.\n\nFind the **seccomp** profile here: [`fwdctl-seccomp.json`](hack/fwdctl-seccomp.json).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falegrey91%2Ffwdctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falegrey91%2Ffwdctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falegrey91%2Ffwdctl/lists"}