{"id":20768040,"url":"https://github.com/spithash/dd-wrt-update-suricata-rules-automatically","last_synced_at":"2026-04-18T20:31:57.676Z","repository":{"id":54096778,"uuid":"345992187","full_name":"spithash/DD-WRT-Update-Suricata-Rules-Automatically","owner":"spithash","description":"This is a simple script for updating Emerging Threats rules files and restarting suricata on dd-wrt","archived":false,"fork":false,"pushed_at":"2021-03-11T11:50:12.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T19:34:38.477Z","etag":null,"topics":["dd-wrt","emergingthreats","entware","suricata"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/spithash.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":"2021-03-09T12:04:11.000Z","updated_at":"2022-10-17T20:25:50.000Z","dependencies_parsed_at":"2022-08-13T06:40:59.306Z","dependency_job_id":null,"html_url":"https://github.com/spithash/DD-WRT-Update-Suricata-Rules-Automatically","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spithash/DD-WRT-Update-Suricata-Rules-Automatically","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FDD-WRT-Update-Suricata-Rules-Automatically","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FDD-WRT-Update-Suricata-Rules-Automatically/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FDD-WRT-Update-Suricata-Rules-Automatically/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FDD-WRT-Update-Suricata-Rules-Automatically/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spithash","download_url":"https://codeload.github.com/spithash/DD-WRT-Update-Suricata-Rules-Automatically/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FDD-WRT-Update-Suricata-Rules-Automatically/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31984125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"ssl_error","status_checked_at":"2026-04-18T20:23:29.375Z","response_time":103,"last_error":"SSL_read: 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":["dd-wrt","emergingthreats","entware","suricata"],"created_at":"2024-11-17T11:34:36.808Z","updated_at":"2026-04-18T20:31:57.659Z","avatar_url":"https://github.com/spithash.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Updating Emerging Threats Rules on DD-WRT \u0026 Restarting Suricata\nThis is a simple script for updating Emerging Threats rules files and restarting suricata for dd-wrt. Keeping rules updated for the win.\n\n## Installing from the terminal (ssh)\n\u003e Entware is required see more here: https://wiki.dd-wrt.com/wiki/index.php/Installing_Entware\n\n1) Copy et-update.sh in your /opt/bin/ folder and give execute permissions to it `chmod +x /opt/bin/et-update.sh`\n2) Install cron on dd-wrt `opkg install cron` if you don't have it already.\n3) Go to your DD-WRT's Web Interface at *Administration -\u003e Management* tab, in the **Cron** field where is says *Additional Cron Jobs* and paste this line `0 0 * * * root /bin/sh -c /opt/bin/et-update.sh \u003e /dev/null 2\u003e\u00261`\n4) In your terminal run the command: `stopservice crond \u0026\u0026 startservice crond` and you're done.\n\nIt is important though to change inside the script (or leave as is if you're on the same version) the `suricata-4.1.8` part from the URL we're fetching the rules from, to match your version of suricata. To find what's yours, simply do a `suricata -V` -- mine says *\"This is Suricata version 4.1.8 RELEASE\"* so I changed it to **4.1.8**\n\nBy default this cronjob will run every day at 00:00\n\nI personally run suricata on the **br0** interface, but it's up to you to change that. Use `ifconfig` to find the interface that suits you.\n\nHope someone finds it useful, enjoy :)\n\n### Shoutouts\n\n@OISF\n\nhttps://rules.emergingthreats.net/\n\n### DEMO:\nThis is how it looks like if you run et-update.sh manually on the command line\n\n![Demo Updating Emerging Threats rules on DD-WRT and restarting suricata on SSH manually](https://github.com/spithash/trunk/blob/master/emerging-threats-rules-update-suricata-dd-wrt.gif?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspithash%2Fdd-wrt-update-suricata-rules-automatically","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspithash%2Fdd-wrt-update-suricata-rules-automatically","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspithash%2Fdd-wrt-update-suricata-rules-automatically/lists"}