{"id":20768037,"url":"https://github.com/spithash/tmg-blacklist-generator","last_synced_at":"2025-08-03T19:13:24.084Z","repository":{"id":178243413,"uuid":"274392035","full_name":"spithash/TMG-Blacklist-Generator","owner":"spithash","description":"A very simple bash script that I wrote to generate an XML IP blacklist so I can import it to Forefront TMG (Threat Management Gateway) URLSets. ","archived":false,"fork":false,"pushed_at":"2020-10-02T10:27:56.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T06:42:22.800Z","etag":null,"topics":["forefront-tmg","tmg-blacklist-generator","xml-ip-blacklist"],"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-23T11:50:22.000Z","updated_at":"2021-03-09T13:06:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a45926d-51bf-4485-a3c1-1d940dee8642","html_url":"https://github.com/spithash/TMG-Blacklist-Generator","commit_stats":null,"previous_names":["spithash/tmg-blacklist-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FTMG-Blacklist-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FTMG-Blacklist-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FTMG-Blacklist-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FTMG-Blacklist-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spithash","download_url":"https://codeload.github.com/spithash/TMG-Blacklist-Generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243097886,"owners_count":20235917,"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":["forefront-tmg","tmg-blacklist-generator","xml-ip-blacklist"],"created_at":"2024-11-17T11:34:35.769Z","updated_at":"2025-03-11T19:28:21.415Z","avatar_url":"https://github.com/spithash.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TMG IP Blacklist XML Generator\nA very simple bash script that I wrote to generate an XML IP blacklist so I can import it to Forefront TMG (Threat Management Gateway) URLSets. \n\nIt's useful when you want to bulk import IPs to block. \n\nThe list is constantly updated, huge shoutout to https://github.com/stamparm/ipsum\n\nYou need both files (sample_tmg.xml \u0026 TMG.sh) for it to work.\n\n# Configuring - Importing/Exporting\nCreate a folder in your home directory and just drop the files there, then just change your destination directory at line #3 of TMG.sh and you're done. (or just clone the repo). \n\nYou probably need to create your own sample_tmg.xml at some point and replace the contents of the file. To do that, go to Forefront TMG Management and just create an empty URLset in Web Access Policy \u003e Toolbox \u003e URL Sets \u003e New \u003e URL set. \nAfter that, right click on it from the list of the URLsets which are in the Toolbox list on the right and export it, it's an XML file. Paste its contents into sample_tmg.xml and when you run TMG.sh, it will use that sample to create the final.xml file.\n\nMore info on exporting the sample XML and also on importing the final.xml that you will generate can be found on this tutorial over here https://github.com/spithash/trunk/wiki/This-tutorial-is-written-to-help-TMG-administrators-to-upload-URL-Sets-the-easiest-way\n# Licence\n\u003cp\u003e\u003ca href=\"https://github.com/spithash/TMG-Blacklist-Generator/blob/master/LICENSE\"\u003eTMG.sh is GPLv3+.\u003c/a\u003e\u003c/p\u003e\n\nEnjoy :)\n\n# Demo (URLSet)\n![TMG.sh execution in linux terminal](https://github.com/spithash/trunk/blob/master/TMG.gif?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspithash%2Ftmg-blacklist-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspithash%2Ftmg-blacklist-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspithash%2Ftmg-blacklist-generator/lists"}