{"id":17291719,"url":"https://github.com/daemon1024/blockport","last_synced_at":"2025-08-24T22:15:15.121Z","repository":{"id":113011238,"uuid":"365716811","full_name":"daemon1024/blockport","owner":"daemon1024","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-09T12:05:12.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-28T17:31:37.851Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daemon1024.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-05-09T09:40:23.000Z","updated_at":"2024-06-19T12:30:40.884Z","dependencies_parsed_at":null,"dependency_job_id":"c8bca7ea-aa4f-4407-8c47-3b895392f2b4","html_url":"https://github.com/daemon1024/blockport","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/daemon1024%2Fblockport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daemon1024%2Fblockport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daemon1024%2Fblockport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daemon1024%2Fblockport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daemon1024","download_url":"https://codeload.github.com/daemon1024/blockport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245718787,"owners_count":20661161,"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-10-15T10:41:40.537Z","updated_at":"2025-03-26T19:15:37.946Z","avatar_url":"https://github.com/daemon1024.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlockPort\n\neBPF program using XDP to drop TCP packets on a specified port\n\n```\nUsage: blockport [--device] \u003cnetwork-device\u003e [--port] \u003cport-number\u003e\n  -device string\n        Network device to attach XDP program to (default \"lo\")\n  -port string\n        Port number to block incoming tcp packets at\n```\n\n# Testing\n\nUsed hping3 to send tcp packets to a particular port using\n\n```sh\nsudo hping3 127.0.0.1 -p 7999\n```\n\nWhen we set a rule to drop packets using iptables using \n\n```sh\nsudo iptables -I INPUT -p tcp --dport 7999 -j DROP\n```\n\nIt reported packet loss.\n\nSimilarly when we ran our tool, it reported packet loss in a similar way.\n\n```\nsudo ./blockport -port 7999\n```\n\n```\n--- 127.0.0.1 hping statistic ---\n14 packets transmitted, 7 packets received, 50% packet loss\nround-trip min/avg/max = 0.8/6.5/11.5 ms\n```\n\n\n| iptables  |  blockport |\n|---|---|\n|  ![image](https://user-images.githubusercontent.com/47106543/117571268-787a0d80-b0eb-11eb-85c0-8f0013daac9e.png) | ![image](https://user-images.githubusercontent.com/47106543/117571225-436dbb00-b0eb-11eb-95e7-11e07fe2506a.png) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaemon1024%2Fblockport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaemon1024%2Fblockport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaemon1024%2Fblockport/lists"}