{"id":21121458,"url":"https://github.com/oneofone/go-nfqueue","last_synced_at":"2025-07-08T21:32:48.173Z","repository":{"id":16393151,"uuid":"19143904","full_name":"OneOfOne/go-nfqueue","owner":"OneOfOne","description":"Go Wrapper For Creating IPTables NFQueue clients in Go","archived":false,"fork":false,"pushed_at":"2014-04-28T21:04:05.000Z","size":168,"stargazers_count":29,"open_issues_count":2,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T11:25:21.065Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.limitlessfx.com","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/OneOfOne.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":"2014-04-25T11:32:06.000Z","updated_at":"2023-02-20T01:55:02.000Z","dependencies_parsed_at":"2022-09-15T18:12:58.052Z","dependency_job_id":null,"html_url":"https://github.com/OneOfOne/go-nfqueue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OneOfOne/go-nfqueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fgo-nfqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fgo-nfqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fgo-nfqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fgo-nfqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneOfOne","download_url":"https://codeload.github.com/OneOfOne/go-nfqueue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fgo-nfqueue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264352892,"owners_count":23594989,"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-11-20T03:50:31.846Z","updated_at":"2025-07-08T21:32:45.599Z","avatar_url":"https://github.com/OneOfOne.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Go-NFQueue\n==========\nGo Wrapper For Creating IPTables' NFQueue clients in Go\n\nUsage\n------\nCheck the `examples/main.go` file\n\n```bash\n\tcd $GOPATH/github.com/OneOfOne/go-nfqueue/examples\n\tgo build -race \u0026\u0026 sudo ./examples\n```\n* Open another terminal :\n```bash\nsudo iptables -I INPUT 1 -m conntrack --ctstate NEW -j NFQUEUE --queue-num 0\n#or\nsudo iptables -I INPUT -i eth0 -m conntrack --ctstate NEW -j NFQUEUE --queue-num 0\ncurl --head localhost\nping localhost\nsudo iptables -D INPUT -m conntrack --ctstate NEW -j NFQUEUE --queue-num 0\n```\nThen you can `ctrl+c` the program to exit.\n\n* If you have recent enough iptables/nfqueue you could also use a balanced (multithreaded queue).\n* check the example in `examples/mq/multiqueue.go`\n\n```bash\niptables -I INPUT 1  -m conntrack --ctstate NEW -j NFQUEUE --queue-balance 0:5 --queue-cpu-fanout\n```\nNotes\n-----\n\nYou must run the executable as root.\nThis is *WIP*, but all patches are welcome.\n\nLicense\n-------\ngo-nfqueue is under the Apache v2 license, check the included license file.\nCopyright © [Ahmed W.](http://www.limitlessfx.com/)\nSee the included `LICENSE` file.\n\n\u003e Copyright (c) 2014 Ahmed W.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneofone%2Fgo-nfqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneofone%2Fgo-nfqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneofone%2Fgo-nfqueue/lists"}