[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M758HRG4WJ2JG4YV2F0F4MM3":3,"skill-same:01M758HRG4WJ2JG4YV2F0F4MM3":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M758HRG4WJ2JG4YV2F0F4MM3","sync-allow-ips-to-fail2ban",null,"Sync IPs from allow-ips-manual.conf to fail2ban ignoreip","lukemcqueen\u002Fsteadfaste-fleet","lukemcqueen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F405240?v=4","01M757MHPAGRXTJAT46SKZP98R","Luke McQueen","01M757MHPZ573KP8DT9GB8SBQ7",4,"MIT","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsync-allow-ips-to-fail2ban\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: sync-allow-ips-to-fail2ban\nversion: 1.0.0\ndescription: Sync IPs from allow-ips-manual.conf to fail2ban ignoreip\n---\n\n# Sync Allow IPs to fail2ban\n\n## Trigger\nUser says \"add\u002Fremove an allow IP\" or \"sync IPs to fail2ban\".\n\n## Workflow — 3 steps (always do ALL):\n\n### Step 1 — Create\u002Fupdate the source script\nScript lives at `~\u002F.hermes\u002Fscripts\u002Flocal-sync-allow-ips-to-fail2ban.sh`:\n\n```bash\n#!\u002Fbin\u002Fbash\n# Reads IPs from \u002Fetc\u002Fnginx\u002Fallow-ips-manual.conf, strips 127.0.0.1\u002F::1,\n# updates ignoreip in \u002Fetc\u002Ffail2ban\u002Fjail.local, reloads fail2ban.\n\nALLOW_FILE=\"\u002Fetc\u002Fnginx\u002Fallow-ips-manual.conf\"\nJAIL_LOCAL=\"\u002Fetc\u002Ffail2ban\u002Fjail.local\"\n\n# Extract IPs\u002FCIDRs (skip comments, strip \"allow \" and \";\")\nIPS=$(grep -oP 'allow \\K[^;]+' \"$ALLOW_FILE\" | grep -v '^127\\.0\\.0\\.1$' | grep -v '^::1$' | tr '\\n' ' ')\n\n# Build new ignoreip line\nNEW_IGNORE=\"ignoreip = 127.0.0.1\u002F8 ::1 $IPS\"\n\n# Replace in jail.local\nsed -i \"s\u002F^ignoreip = .*\u002F$NEW_IGNORE\u002F\" \"$JAIL_LOCAL\"\n\n# Reload fail2ban\nfail2ban-client reload\n```\n\nMake it executable:\n\n```bash\nchmod +x ~\u002F.hermes\u002Fscripts\u002Flocal-sync-allow-ips-to-fail2ban.sh\n```\n\n### Step 2 — Add an allow IP\nAppend the IP or CIDR to `\u002Fetc\u002Fnginx\u002Fallow-ips-manual.conf` (one per line):\n\n```nginx\nallow 203.0.113.45;\nallow 198.51.100.0\u002F24;\n```\n\nThen run the sync script to propagate to fail2ban:\n\n```bash\nbash ~\u002F.hermes\u002Fscripts\u002Flocal-sync-allow-ips-to-fail2ban.sh\n```\n\n### Step 3 — Verify\nConfirm both layers picked up the IP:\n\n```bash\n# nginx layer — should show the allow line\ngrep -c \"allow 203.0.113.45\" \u002Fetc\u002Fnginx\u002Fallow-ips-manual.conf\n\n# fail2ban layer — ignoreip should contain it\ngrep \"^ignoreip\" \u002Fetc\u002Ffail2ban\u002Fjail.local\n\n# fail2ban reload succeeded\nfail2ban-client status | grep -i \"number of jail\"\n```\n\n## Pitfalls\n\n- **Never add `127.0.0.1` or `::1` to the manual file** — they're always in `ignoreip` by construction; adding them is harmless but noisy.\n- **The allow file is nginx `allow` directives, not raw IPs** — the extractor strips the `allow ` prefix and trailing `;`. A malformed line (missing `;`) silently drops the IP.\n- **`sed` replaces the whole `ignoreip` line** — if jail.local is absent or lacks an `ignoreip` line, the script no-ops; create the line first with `sed -i \"s\u002F^ignoreip = .*\u002Fignoreip = 127.0.0.1\\\u002F8 ::1\u002F\" \"$JAIL_LOCAL\"`.\n- **fail2ban reload is required** — editing jail.local without `fail2ban-client reload` has no effect until the next service restart.\n- **Daily threat-pipeline cron** (5AM) deploys blocked IPs from `deploy\u002Fnginx\u002Fblocked_ips.add` — this allow-list flow is the complementary whitelist; keep them separate.\n\n## Related\n- `threat-defense-pipeline` — the blocking side (fail2ban jails + nginx IP blocking)\n- `linux-server-hardening` — broader server security posture\n","# Sync Allow IPs to fail2ban\n\n## Trigger\nUser says \"add\u002Fremove an allow IP\" or \"sync IPs to fail2ban\".\n\n## Workflow — 3 steps (always do ALL):\n\n### Step 1 — Create\u002Fupdate the source script\nScript lives at `~\u002F.hermes\u002Fscripts\u002Flocal-sync-allow-ips-to-fail2ban.sh`:\n\n```bash\n#!\u002Fbin\u002Fbash\n# Reads IPs from \u002Fetc\u002Fnginx\u002Fallow-ips-manual.conf, strips 127.0.0.1\u002F::1,\n# updates ignoreip in \u002Fetc\u002Ffail2ban\u002Fjail.local, reloads fail2ban.\n\nALLOW_FILE=\"\u002Fetc\u002Fnginx\u002Fallow-ips-manual.conf\"\nJAIL_LOCAL=\"\u002Fetc\u002Ffail2ban\u002Fjail.local\"\n\n# Extract IPs\u002FCIDRs (skip comments, strip \"allow \" and \";\")\nIPS=$(grep -oP 'allow \\K[^;]+' \"$ALLOW_FILE\" | grep -v '^127\\.0\\.0\\.1$' | grep -v '^::1$' | tr '\\n' ' ')\n\n# Build new ignoreip line\nNEW_IGNORE=\"ignoreip = 127.0.0.1\u002F8 ::1 $IPS\"\n\n# Replace in jail.local\nsed -i \"s\u002F^ignoreip = .*\u002F$NEW_IGNORE\u002F\" \"$JAIL_LOCAL\"\n\n# Reload fail2ban\nfail2ban-client reload\n```\n\nMake it executable:\n\n```bash\nchmod +x ~\u002F.hermes\u002Fscripts\u002Flocal-sync-allow-ips-to-fail2ban.sh\n```\n\n### Step 2 — Add an allow IP\nAppend the IP or CIDR to `\u002Fetc\u002Fnginx\u002Fallow-ips-manual.conf` (one per line):\n\n```nginx\nallow 203.0.113.45;\nallow 198.51.100.0\u002F24;\n```\n\nThen run the sync script to propagate to fail2ban:\n\n```bash\nbash ~\u002F.hermes\u002Fscripts\u002Flocal-sync-allow-ips-to-fail2ban.sh\n```\n\n### Step 3 — Verify\nConfirm both layers picked up the IP:\n\n```bash\n# nginx layer — should show the allow line\ngrep -c \"allow 203.0.113.45\" \u002Fetc\u002Fnginx\u002Fallow-ips-manual.conf\n\n# fail2ban layer — ignoreip should contain it\ngrep \"^ignoreip\" \u002Fetc\u002Ffail2ban\u002Fjail.local\n\n# fail2ban reload succeeded\nfail2ban-client status | grep -i \"number of jail\"\n```\n\n## Pitfalls\n\n- **Never add `127.0.0.1` or `::1` to the manual file** — they're always in `ignoreip` by construction; adding them is harmless but noisy.\n- **The allow file is nginx `allow` directives, not raw IPs** — the extractor strips the `allow ` prefix and trailing `;`. A malformed line (missing `;`) silently drops the IP.\n- **`sed` replaces the whole `ignoreip` line** — if jail.local is absent or lacks an `ignoreip` line, the script no-ops; create the line first with `sed -i \"s\u002F^ignoreip = .*\u002Fignoreip = 127.0.0.1\\\u002F8 ::1\u002F\" \"$JAIL_LOCAL\"`.\n- **fail2ban reload is required** — editing jail.local without `fail2ban-client reload` has no effect until the next service restart.\n- **Daily threat-pipeline cron** (5AM) deploys blocked IPs from `deploy\u002Fnginx\u002Fblocked_ips.add` — this allow-list flow is the complementary whitelist; keep them separate.\n\n## Related\n- `threat-defense-pipeline` — the blocking side (fail2ban jails + nginx IP blocking)\n- `linux-server-hardening` — broader server security posture\n",{"name":5,"version":24,"description":7},"1.0.0","main","2e6aa8d15ab0a366c90be54f61bf9c6e97015e83","skills\u002Fdevops\u002Fsync-allow-ips-to-fail2ban",1,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet","steadfaste.com","https:\u002F\u002Fgithub.com\u002Flukemcqueen","AI Architect | Building Hermes Cortex: governed multi-agent AI for autonomous software engineering | Enterprise Tech Consultant","2026-11-14 22:33:34",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add lukemcqueen\u002Fsteadfaste-fleet --skill sync-allow-ips-to-fail2ban",{"tool":40,"command":41},"bunx","bunx skills add lukemcqueen\u002Fsteadfaste-fleet --skill sync-allow-ips-to-fail2ban",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lukemcqueen\u002Fsteadfaste-fleet --skill sync-allow-ips-to-fail2ban","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsync-allow-ips-to-fail2ban\u002FSKILL.md",true,[],[49,57,64,71,78,85],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":56},"01M7DXY4G8NSVB59K8B6S2AQNP","macbook-linux-maintenance","Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":56},"01M7DXXYJCXFJ3TGB84ZQ8KFE6","governance-regression-triage","Triage a host's governance issues: what changed.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-regression-triage\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":56},"01M7DXXSAP1G8FDRJAMXQGBBMK","enforcement-immutability","Use when enforcement files lose their immutable flag.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fenforcement-immutability\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":56},"01M78SSDQVRYX64Y16X32TC0NS","steadfaste-fleet-repo-deploy","Use when committing to the steadfaste-fleet repo.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-repo-deploy\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":56},"01M78SS928F3R2RJAYVW4E30CE","steadfaste-fleet-maintenance","Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-maintenance\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":56},"01M78SP1CHW0T0BWE5ZT6JBPX8","fleet-preflight","DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its \"Repo-Specific Pre-Flight\" section covers git search, Hermes boundary, and deployment verification.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Ffleet-preflight\u002FSKILL.md",[],[]]