{"id":20327633,"url":"https://github.com/x-way/ctrmd","last_synced_at":"2025-04-11T20:11:17.651Z","repository":{"id":39787808,"uuid":"171996284","full_name":"x-way/ctrmd","owner":"x-way","description":"Conntrack entry removal daemon","archived":false,"fork":false,"pushed_at":"2025-04-07T05:51:03.000Z","size":3418,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T06:31:20.813Z","etag":null,"topics":["conntrack","golang","iptables","netfilter","nflog"],"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/x-way.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":"2019-02-22T04:49:33.000Z","updated_at":"2025-04-07T05:51:06.000Z","dependencies_parsed_at":"2024-04-04T19:36:01.055Z","dependency_job_id":"edf3569b-524d-4584-84af-50aaa14d540e","html_url":"https://github.com/x-way/ctrmd","commit_stats":{"total_commits":612,"total_committers":6,"mean_commits":102.0,"dds":"0.27941176470588236","last_synced_commit":"ee744d616618f1dd711595baaea359ffd1ff3ec4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fctrmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fctrmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fctrmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fctrmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x-way","download_url":"https://codeload.github.com/x-way/ctrmd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473127,"owners_count":21109628,"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":["conntrack","golang","iptables","netfilter","nflog"],"created_at":"2024-11-14T19:48:20.303Z","updated_at":"2025-04-11T20:11:17.607Z","avatar_url":"https://github.com/x-way.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ctrmd - conntrack entry removal daemon\n[![CircleCI](https://circleci.com/gh/x-way/ctrmd.svg?style=svg)](https://circleci.com/gh/x-way/ctrmd)\n[![Go Report Card](https://goreportcard.com/badge/github.com/x-way/ctrmd)](https://goreportcard.com/report/github.com/x-way/ctrmd)\n\nctrmd provides a mechanism to delete conntrack entries with iptables rules.\n\nAs there is no native support for deleting conntrack entries in iptables, the following approach is used:\n-   packets are sent to a dedicated NFLOG group in iptables\n-   ctrmd listens on this NFLOG group and issues conntrack delete instructions for each received packet\n\n## Usage\nCreate iptables rule\n```\n# iptables -I FORWARDING -s 1.2.3.4 -d 5.6.7.8 -j NFLOG --nflog-group 666\n```\nStart ctrmd\n```\n# ctrmd -g 666\n```\nObserve how conntrack entries are deleted (destroyed in conntrack speak)\n```\n# conntrack -E -e DESTROY\n[DESTROY] udp      17 src=1.2.3.4 dst=5.6.7.8 sport=49481 dport=53 src=5.6.7.8 dst=1.2.3.4 sport=53 dport=49481\n[DESTROY] udp      17 src=1.2.3.4 dst=5.6.7.8 sport=40945 dport=53 src=5.6.7.8 dst=1.2.3.4 sport=53 dport=40945\n[DESTROY] udp      17 src=1.2.3.4 dst=5.6.7.8 sport=49522 dport=53 src=5.6.7.8 dst=1.2.3.4 sport=53 dport=49522\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-way%2Fctrmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-way%2Fctrmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-way%2Fctrmd/lists"}