{"id":22615592,"url":"https://github.com/marcellodesales/spf2ip-docker","last_synced_at":"2026-02-07T13:04:09.684Z","repository":{"id":54453694,"uuid":"339504772","full_name":"marcellodesales/spf2ip-docker","owner":"marcellodesales","description":"Get IPS from domain","archived":false,"fork":false,"pushed_at":"2021-02-16T23:23:16.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-28T00:05:36.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcellodesales.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-16T19:17:50.000Z","updated_at":"2021-02-16T23:23:19.000Z","dependencies_parsed_at":"2022-08-13T16:10:31.190Z","dependency_job_id":null,"html_url":"https://github.com/marcellodesales/spf2ip-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcellodesales/spf2ip-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fspf2ip-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fspf2ip-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fspf2ip-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fspf2ip-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcellodesales","download_url":"https://codeload.github.com/marcellodesales/spf2ip-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fspf2ip-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29194486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T12:38:28.597Z","status":"ssl_error","status_checked_at":"2026-02-07T12:38:23.888Z","response_time":63,"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":[],"created_at":"2024-12-08T19:08:26.748Z","updated_at":"2026-02-07T13:04:09.670Z","avatar_url":"https://github.com/marcellodesales.png","language":"Dockerfile","readme":"# \n\nYou can use this container to get the list of IP CDRS from a public host to use in security groups...\n\n# Example\n\n* Gitlab is deployed in Google Cloud. In order to allow their CI/CD workers to call your AWS EC2 resources, you can grab all of the IPS to be used.\n\n```console\n$ docker run -ti marcellodesales/spf2ip --domain  _cloud-netblocks.googleusercontent.com --ip-version 4\nINFO: Getting the ip address with SPF2IP\n8.34.208.0/20\n8.35.192.0/21\n8.35.200.0/23\n23.236.48.0/20\n23.251.128.0/19\n34.64.0.0/11\n34.96.0.0/14\n34.100.0.0/16\n34.102.0.0/15\n34.104.0.0/14\n34.124.0.0/18\n34.124.64.0/20\n34.124.80.0/23\n34.124.84.0/22\n34.124.88.0/23\n34.124.92.0/22\n34.125.0.0/16\n35.184.0.0/14\n35.188.0.0/15\n35.190.0.0/17\n35.190.128.0/18\n35.190.192.0/19\n35.190.224.0/20\n35.190.240.0/22\n35.192.0.0/14\n35.196.0.0/15\n35.198.0.0/16\n35.199.0.0/17\n35.199.128.0/18\n35.200.0.0/13\n35.208.0.0/13\n35.216.0.0/15\n35.219.192.0/24\n35.220.0.0/14\n35.224.0.0/13\n35.232.0.0/15\n35.234.0.0/16\n35.235.0.0/17\n35.235.192.0/20\n35.235.216.0/21\n35.235.224.0/20\n35.236.0.0/14\n35.240.0.0/13\n104.154.0.0/15\n104.196.0.0/14\n107.167.160.0/19\n107.178.192.0/18\n108.59.80.0/20\n108.170.192.0/20\n108.170.208.0/21\n108.170.216.0/22\n108.170.220.0/23\n108.170.222.0/24\n130.211.4.0/22\n130.211.8.0/21\n130.211.16.0/20\n130.211.32.0/19\n130.211.64.0/18\n130.211.128.0/17\n146.148.2.0/23\n146.148.4.0/22\n146.148.8.0/21\n146.148.16.0/20\n146.148.32.0/19\n146.148.64.0/18\n162.216.148.0/22\n162.222.176.0/21\n173.255.112.0/20\n192.158.28.0/22\n199.192.112.0/22\n199.223.232.0/22\n199.223.236.0/23\n208.68.108.0/23\n```\n\n* Now just update the security group\n\n```console\n$ SSH_SG=$(aws ec2 describe-security-groups --group-name \"Supercash SSH\" | jq -r '.SecurityGroups[0].GroupId’)\n\n$ docker run -ti marcellodesales/spf2ip --domain  _cloud-netblocks.googleusercontent.com --ip-version 4  | \\\n       xargs -t -I {}  aws ec2 authorize-security-group-ingress --group-id ${SSH_SG} \\\n       --ip-permissions IpProtocol=tcp,FromPort=23456,ToPort=23456,IpRanges='[{CidrIp={},Description=\"Gitlab CI/CD Wokers”}]\n```\n\n# Development\n\n* Build\n\n```console\n$ docker-compose build\nBuilding spf2ip\nStep 1/7 : FROM python:alpine\n ---\u003e 53261e7e236b\nStep 2/7 : LABEL maintainer=\"marcello.desales@gmail.com\"\n ---\u003e Using cache\n ---\u003e 5f0d69471f50\nStep 3/7 : LABEL origin=\"https://github.com/marcellodesales/docker-pycobertura\"\n ---\u003e Using cache\n ---\u003e 912f43456e0e\nStep 4/7 : RUN pip install --no-cache-dir pip install SPF2IP\n ---\u003e Using cache\n ---\u003e 71019439c630\nStep 5/7 : RUN SPF2IP --help\n ---\u003e Using cache\n ---\u003e d44e95e24ec9\nStep 6/7 : COPY entrypoint.sh /entrypoint.sh\n ---\u003e 7e35a9802d79\nStep 7/7 : ENTRYPOINT [\"/entrypoint.sh\"]\n ---\u003e Running in b725d1ff4540\nRemoving intermediate container b725d1ff4540\n ---\u003e 4083f4250880\n\nSuccessfully built 4083f4250880\nSuccessfully tagged marcellodesales/spf2ip:latest\n```\n\n* Releases\n\n````console\n$ docker-compose push\nPushing spf2ip (marcellodesales/spf2ip:latest)...\nThe push refers to repository [docker.io/marcellodesales/spf2ip]\n1ca4c36fc671: Pushing [==================================================\u003e]  2.048kB\n519e77a2d4bf: Pushing [==================================================\u003e]  4.608kB\n1ca4c36fc671: Pushed\n519e77a2d4bf: Pushed\n05dbf3c3e393: Pushed\nbcacc7286077: Mounted from marcellodesales/cover2cover\nc4cd3bcee4dc: Waiting\n412ecdf509e8: Mounted from library/python\nc4cd3bcee4dc: Mounted from marcellodesales/cover2cover\n777b2c648970: Mounted from marcellodesales/cover2cover\n\nlatest: digest: sha256:a0cea8457cf82741bd10d00b351a4634b5384bec67f6a9719ef26cb23e6abd5b size: 1993\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcellodesales%2Fspf2ip-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcellodesales%2Fspf2ip-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcellodesales%2Fspf2ip-docker/lists"}