{"id":37155518,"url":"https://github.com/alash3al/go-netfilter-queue","last_synced_at":"2026-01-14T18:23:32.854Z","repository":{"id":57605571,"uuid":"91109020","full_name":"alash3al/go-netfilter-queue","owner":"alash3al","description":"Go bindings for libnetfilter_queue (Forked from openshift/geard)","archived":false,"fork":true,"pushed_at":"2016-04-14T09:21:19.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-21T20:02:56.595Z","etag":null,"topics":["golang","gopacket","iptables","netfilter"],"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/alash3al.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":"2017-05-12T16:13:56.000Z","updated_at":"2017-05-12T16:14:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/alash3al/go-netfilter-queue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alash3al/go-netfilter-queue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alash3al%2Fgo-netfilter-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alash3al%2Fgo-netfilter-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alash3al%2Fgo-netfilter-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alash3al%2Fgo-netfilter-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alash3al","download_url":"https://codeload.github.com/alash3al/go-netfilter-queue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alash3al%2Fgo-netfilter-queue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28430773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["golang","gopacket","iptables","netfilter"],"created_at":"2026-01-14T18:23:32.249Z","updated_at":"2026-01-14T18:23:32.843Z","avatar_url":"https://github.com/alash3al.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. I'm using Go 1.6 for testing.\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 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%2Falash3al%2Fgo-netfilter-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falash3al%2Fgo-netfilter-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falash3al%2Fgo-netfilter-queue/lists"}