{"id":15522023,"url":"https://github.com/hyperxpro/cs-fw","last_synced_at":"2025-10-29T00:42:51.859Z","repository":{"id":65286251,"uuid":"588961315","full_name":"hyperxpro/cs-fw","owner":"hyperxpro","description":"CS-FW is a high-performance CS 1.6 firewall based on Linux XDP.","archived":false,"fork":false,"pushed_at":"2023-08-15T15:28:01.000Z","size":151,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T22:21:32.455Z","etag":null,"topics":["counter-strike","counter-strike-global-offensive","ddos","flood","rust-lang","source-engine","vse","xdp"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperxpro.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}},"created_at":"2023-01-14T16:06:58.000Z","updated_at":"2024-05-12T14:19:21.000Z","dependencies_parsed_at":"2023-02-16T10:10:29.679Z","dependency_job_id":"edd0e146-0e60-40bf-a2cd-eec5ad5cdcef","html_url":"https://github.com/hyperxpro/cs-fw","commit_stats":{"total_commits":143,"total_committers":2,"mean_commits":71.5,"dds":0.006993006993006978,"last_synced_commit":"8b512770375471001833880be954429d4b26024b"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperxpro%2Fcs-fw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperxpro%2Fcs-fw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperxpro%2Fcs-fw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperxpro%2Fcs-fw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperxpro","download_url":"https://codeload.github.com/hyperxpro/cs-fw/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250372948,"owners_count":21419722,"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":["counter-strike","counter-strike-global-offensive","ddos","flood","rust-lang","source-engine","vse","xdp"],"created_at":"2024-10-02T10:39:10.053Z","updated_at":"2025-10-29T00:42:51.763Z","avatar_url":"https://github.com/hyperxpro.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CS-FW\nCS-FW is a high-performance CS 1.6 firewall based on Linux XDP.\n\n# System Requirements\nOS: Ubuntu 22.04 LTS\n\u003c/br\u003e\nArchitecture: x86_64\n\u003c/br\u003e\nMemory: 2 GB\n\n### Run:\n```bash\n$ sudo ./csfw -i eth0 -p 127.0.0.1:11011\n```\n\n### Unload\n```bash\n$ sudo ip link set dev eth0 xdp off\n```\n\n# Protection Channels\n1. Allows CS 1.6 game packets only. It tracks traffic and maintains list of genuine clients only and discards all garbage packets.\n2. Drops packets from common UDP reflectors.\n```rust\n    if sport ==  17 ||    // tftp\n        sport == 19 ||    // chargen\n        sport ==  53 ||   // dns\n        sport ==  111 ||  // rpcbind\n        sport ==  123 ||  // ntp\n        sport ==  137 ||  // netbios-ns\n        sport ==  161 ||  // snmp\n        sport ==  389 ||  // ldap\n        sport == 520 ||   // rip\n        sport == 751 ||   // kerberos\n        sport == 1434 ||  // ms-sql-s\n        sport == 1900 ||  // ssdp\n        sport == 5353 ||  // mdns\n        sport == 6881 ||  // bittorrent\n        sport == 11211 {  // memcached\n        return Ok(XdpAction::Drop);\n    }\n```\n\n### Building from Source:\nSee CI [Workflow file](https://github.com/hyperxpro/cs-fw/blob/main/.github/workflows/build.yml) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperxpro%2Fcs-fw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperxpro%2Fcs-fw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperxpro%2Fcs-fw/lists"}