{"id":25220404,"url":"https://github.com/adridevelopsthings/knocker","last_synced_at":"2025-04-05T11:21:11.840Z","repository":{"id":109344029,"uuid":"490070660","full_name":"AdriDevelopsThings/knocker","owner":"AdriDevelopsThings","description":"A simple port knocking server that uses iptables.","archived":false,"fork":false,"pushed_at":"2023-01-22T16:59:59.000Z","size":19,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T21:53:11.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdriDevelopsThings.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}},"created_at":"2022-05-08T22:36:27.000Z","updated_at":"2022-05-08T22:36:50.000Z","dependencies_parsed_at":"2023-04-26T15:16:14.016Z","dependency_job_id":null,"html_url":"https://github.com/AdriDevelopsThings/knocker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fknocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fknocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fknocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fknocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdriDevelopsThings","download_url":"https://codeload.github.com/AdriDevelopsThings/knocker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247326583,"owners_count":20920872,"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":"2025-02-10T21:53:12.845Z","updated_at":"2025-04-05T11:21:11.818Z","avatar_url":"https://github.com/AdriDevelopsThings.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# knocker\nA simple port knocking server that uses iptables.\n\n# Installation\n\nBuild the golang app with `go build -o knock`. You can run the binary with `sudo ./knock` (the server needs root privileges because he creates iptables rules)\n\n## Iptables\nYou have to create the following iptables rules / chains:\n```\n-N knocker # this chain will be used for port releases by knocker\n-A INPUT -j knocker\n-A INPUT -p tcp --dport 9999 -j DROP # drop all packets to your ports that are not released by knocker.\n```\nPlease make sure that the knock_listen_address port is opened in the firewall.\n\n# Configuration\nReplace the values with your needs.\n```json\n[\n  {\n    \"knock_listen_address\": \"127.0.0.1:1234 (where the knock will be expected)\",\n    \"open_port\": \"9999 (the port that is released for the knocking user)\",\n    \"ttl\": 60\n  }\n]\n```\nAfter ttl seconds the port will be blocked again.\n\nYou can configure a other file path to your configuration file by setting the environment variable `KNOCKER_CONFIGURATION_FILE` to the file path.\n\n# How to use?\n\nOpen a tcp connection to the `knock_listen_address`. The tcp connection will be closed after the establishment from the server. The open_port is now accessable by your ip address for ttl seconds.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadridevelopsthings%2Fknocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadridevelopsthings%2Fknocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadridevelopsthings%2Fknocker/lists"}