{"id":29427559,"url":"https://github.com/samsesh/github-ip-address-list","last_synced_at":"2025-07-12T13:09:31.888Z","repository":{"id":302623691,"uuid":"1013068927","full_name":"samsesh/github-ip-address-list","owner":"samsesh","description":"Automatically generate MikroTik address-list from GitHub's public IPs using GitHub Actions – ready to import in .rsc format.","archived":false,"fork":false,"pushed_at":"2025-07-03T10:34:27.000Z","size":51,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"Localhost","last_synced_at":"2025-07-03T11:36:33.705Z","etag":null,"topics":["address-list","automation","firewall","github-actions","github-api","ip-whitelist","mikrotik","networking","routeros","rsc"],"latest_commit_sha":null,"homepage":"","language":"RouterOS Script","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/samsesh.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-03T10:03:31.000Z","updated_at":"2025-07-03T10:47:20.000Z","dependencies_parsed_at":"2025-07-03T11:37:36.462Z","dependency_job_id":"1ade7821-f63a-4769-ae9b-755596e28930","html_url":"https://github.com/samsesh/github-ip-address-list","commit_stats":null,"previous_names":["samsesh/github-ip-address-list"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samsesh/github-ip-address-list","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsesh%2Fgithub-ip-address-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsesh%2Fgithub-ip-address-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsesh%2Fgithub-ip-address-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsesh%2Fgithub-ip-address-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samsesh","download_url":"https://codeload.github.com/samsesh/github-ip-address-list/tar.gz/refs/heads/Localhost","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsesh%2Fgithub-ip-address-list/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264995833,"owners_count":23695050,"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":["address-list","automation","firewall","github-actions","github-api","ip-whitelist","mikrotik","networking","routeros","rsc"],"created_at":"2025-07-12T13:09:26.172Z","updated_at":"2025-07-12T13:09:31.879Z","avatar_url":"https://github.com/samsesh.png","language":"RouterOS Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub IP List for MikroTik\n\nThis repository automatically fetches the latest list of GitHub IP addresses from [https://api.github.com/meta](https://api.github.com/meta), and converts them into a MikroTik-compatible `.rsc` script file.\n\nThe script updates daily using GitHub Actions and is ideal for firewall rules, NAT exceptions, or routing GitHub traffic via specific interfaces.\n\n---\n\n## 📆 File Generated\n\n* **`github-ip-list.rsc`**\n  A MikroTik-compatible RouterOS script that adds all GitHub IP ranges into an address list named `GitHub`.\n\nExample content:\n\n```mikrotik\n# Auto‎-generated MikroTik address list – GitHub IPs\n/ip firewall address-list\nadd address=140.82.112.0/20 list=GitHub\nadd address=185.199.108.0/22 list=GitHub\nadd address=192.30.252.0/22 list=GitHub\n...\n```\n\n---\n\n## 🚀 MikroTik Import Script\n\nTo automatically fetch and import the IP list into your MikroTik router, run the following script:\n\n```mikrotik\n:foreach i in={\"GitHub\"} do={\n  /tool fetch url=\"https://raw.githubusercontent.com/samsesh/github-ip-address-list/Localhost/github-ip-list.rsc\" dst-path=$i\n  /ip firewall address-list remove [/ip firewall address-list find list=$i]\n  /import file-name=$i\n  /file remove $i\n}\n```\n\n✅ This script will:\n\n* Download the latest IP list from your GitHub repo\n* Remove old entries in the `GitHub` address list\n* Import the updated list\n* Clean up the downloaded file\n\n---\n\n## 🔁 Automation\n\nThis repo uses a [GitHub Actions workflow](.github/workflows/update-github-ips.yml) that:\n\n* Runs daily at midnight UTC\n* Fetches the latest GitHub IP ranges from the GitHub Meta API\n* Builds and commits a MikroTik `.rsc` file (`github-ip-list.rsc`) to the `Localhost` branch\n\nYou can also run the workflow manually from the Actions tab.\n\n---\n\n## 📘 References\n\n* GitHub API: [https://api.github.com/meta](https://api.github.com/meta)\n* MikroTik Scripting Guide: [https://wiki.mikrotik.com/wiki/Manual\\:Scripting](https://wiki.mikrotik.com/wiki/Manual:Scripting)\n* MikroTik `/import` Command: [`/import file-name=yourfile.rsc`](https://wiki.mikrotik.com/wiki/Manual:Console#import)\n\n---\n\n## ☕ Support This Project\n\nIf you find this useful, you can support development here:\n👉 [https://donate.samsesh.net](https://donate.samsesh.net)\n\n---\n\n## 🧑‍💻 Maintainer\n\n**Author:** [samsesh](https://github.com/samsesh)\n**Website:** [samsesh.net](https://samsesh.net)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsesh%2Fgithub-ip-address-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamsesh%2Fgithub-ip-address-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsesh%2Fgithub-ip-address-list/lists"}