{"id":37098932,"url":"https://github.com/iwind/gonetfilterqueue","last_synced_at":"2026-01-14T12:01:48.354Z","repository":{"id":57534388,"uuid":"282193069","full_name":"iwind/GoNetfilterQueue","owner":"iwind","description":"Go bindings for libnetfilter_queue (Forked from openshift/geard)","archived":false,"fork":true,"pushed_at":"2020-10-03T09:38:59.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-12T15:32:00.298Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"AkihiroSuda/go-netfilter-queue","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iwind.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":"2020-07-24T10:40:27.000Z","updated_at":"2020-10-03T09:39:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/iwind/GoNetfilterQueue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iwind/GoNetfilterQueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwind%2FGoNetfilterQueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwind%2FGoNetfilterQueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwind%2FGoNetfilterQueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwind%2FGoNetfilterQueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iwind","download_url":"https://codeload.github.com/iwind/GoNetfilterQueue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwind%2FGoNetfilterQueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-14T12:01:47.617Z","updated_at":"2026-01-14T12:01:48.343Z","avatar_url":"https://github.com/iwind.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-netfilter-queue\n==================\n[![Build Status](https://travis-ci.org/AkihiroSuda/go-netfilter-queue.svg)](https://travis-ci.org/AkihiroSuda/go-netfilter-queue)\n[![GoDoc](https://godoc.org/github.com/AkihiroSuda/go-netfilter-queue?status.svg)](https://godoc.org/github.com/AkihiroSuda/go-netfilter-queue)\n\nGo bindings for libnetfilter_queue\n\n_Forked from [openshift/geard@be0423a](https://github.com/openshift/geard/tree/be0423a67449bc4be1419e03e8bdf459ff0df07e/pkg/go-netfilter-queue)_ for supporting recent environments.\n\nThis library provides access to packets in the IPTables netfilter queue (NFQUEUE).\nThe libnetfilter_queue library is part of the [Netfilter project](http://netfilter.org/projects/libnetfilter_queue/).\n\nExample\n=======\n\nuse IPTables to direct all outgoing Ping/ICMP requests to the queue 0:\n\n    iptables -A OUTPUT -p icmp -j NFQUEUE --queue-num 0\n\nYou can then use go-netfilter-queue to inspect the packets:\n\n    package main\n    \n    import (\n            \"fmt\"\n            \"github.com/AkihiroSuda/go-netfilter-queue\"\n            \"os\"\n    )\n    \n    func main() {\n            var err error\n    \n            nfq, err := netfilter.NewNFQueue(0, 100, netfilter.NF_DEFAULT_PACKET_SIZE)\n            if err != nil {\n                    fmt.Println(err)\n                    os.Exit(1)\n            }\n            defer nfq.Close()\n            packets := nfq.GetPackets()\n    \n            for true {\n                    select {\n                    case p := \u003c-packets:\n                            fmt.Println(p.Packet)\n                            p.SetVerdict(netfilter.NF_ACCEPT)\n                    }\n            }\n    }\n\nTo inject a new or modified packet in the place of the original packet, use:\n\n    p.SetVerdictWithPacket(netfilter.NF_ACCEPT, byte_slice)\n\nInstead of:\n\n    p.SetVerdict(netfilter.NF_ACCEPT)\n\nTo undo the IPTables redirect. Run:\n\n    iptables -D OUTPUT -p icmp -j NFQUEUE --queue-num 0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwind%2Fgonetfilterqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiwind%2Fgonetfilterqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwind%2Fgonetfilterqueue/lists"}