{"id":15048252,"url":"https://github.com/github/synsanity","last_synced_at":"2025-10-04T08:31:10.987Z","repository":{"id":65974907,"uuid":"61508149","full_name":"github/synsanity","owner":"github","description":"netfilter (iptables) target for high performance lockless SYN cookies for SYN flood mitigation","archived":true,"fork":false,"pushed_at":"2018-06-21T23:07:11.000Z","size":28,"stargazers_count":427,"open_issues_count":4,"forks_count":56,"subscribers_count":293,"default_branch":"master","last_synced_at":"2024-09-25T21:09:37.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.condition.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.GPL","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-20T01:14:34.000Z","updated_at":"2024-07-31T03:19:01.000Z","dependencies_parsed_at":"2023-02-19T18:01:05.157Z","dependency_job_id":null,"html_url":"https://github.com/github/synsanity","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/github%2Fsynsanity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fsynsanity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fsynsanity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fsynsanity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/synsanity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219876581,"owners_count":16554769,"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-09-24T21:09:50.166Z","updated_at":"2025-10-04T08:31:05.717Z","avatar_url":"https://github.com/github.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## condition match\n\nThe condition match resurrects the condition match module that was available in the 2.x series kernel.\n\nThis allows a match target that is controlled by a userspace entry in the proc filesystem. For example:\n```\niptables -A INPUT -p tcp -m tcp --dport 80 -m condition ! --condition knockknock -j DROP\n```\n\nBy default, the above rule will match since the condition is default 0, and port 80 will be blocked. This can be toggled via proc:\n```\necho 1 \u003e /proc/net/ipt_condition/knockknock\n# packets to port 80 go through\necho 0 \u003e /proc/net/ipt_condition/knockknock\n# packets to port 80 are blocked again\n```\n\n## CONDITION target\n\nIn addition to the original condition match, a CONDITION target has been added that can change the same condition values based on a certain other set of xtables matches. For example, to enable the above port 80 condition only after a packet arrives on port 42:\n```\niptables -A INPUT -p tcp -m tcp --dport 42 -j CONDITION --condition knockknock\n```\n\nThis would look like the following:\n```\necho 0 \u003e /proc/net/ipt_condition/knockknock\n# packets to port 80 are blocked\nnc localhost 42\n# packets to port 80 are unblocked\necho 0 \u003e /proc/net/ipt_condition/knockknock\n# packets to port 80 are blocked again\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fsynsanity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fsynsanity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fsynsanity/lists"}