{"id":19929075,"url":"https://github.com/thescriptguy/prismaaccess-egressips","last_synced_at":"2025-05-03T10:31:25.863Z","repository":{"id":41841285,"uuid":"480575884","full_name":"TheScriptGuy/PrismaAccess-EgressIPs","owner":"TheScriptGuy","description":"Provide the egress IPs for the Prisma Access service in a formatted context","archived":false,"fork":false,"pushed_at":"2024-07-24T14:38:12.000Z","size":71,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T14:22:20.549Z","etag":null,"topics":["egress","formatted","ip","ips","mobile-user-gateway","palo-alto-networks","paloaltonetworks","prismaaccess"],"latest_commit_sha":null,"homepage":"","language":"Python","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/TheScriptGuy.png","metadata":{"files":{"readme":"README-powershell.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2022-04-11T22:46:34.000Z","updated_at":"2024-12-12T16:39:58.000Z","dependencies_parsed_at":"2024-04-08T20:44:50.290Z","dependency_job_id":"f50e72fc-3752-4967-876e-3fbce277b3a2","html_url":"https://github.com/TheScriptGuy/PrismaAccess-EgressIPs","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheScriptGuy%2FPrismaAccess-EgressIPs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheScriptGuy%2FPrismaAccess-EgressIPs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheScriptGuy%2FPrismaAccess-EgressIPs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheScriptGuy%2FPrismaAccess-EgressIPs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheScriptGuy","download_url":"https://codeload.github.com/TheScriptGuy/PrismaAccess-EgressIPs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252178805,"owners_count":21707069,"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":["egress","formatted","ip","ips","mobile-user-gateway","palo-alto-networks","paloaltonetworks","prismaaccess"],"created_at":"2024-11-12T22:41:49.658Z","updated_at":"2025-05-03T10:31:25.605Z","avatar_url":"https://github.com/TheScriptGuy.png","language":"Python","readme":"# Powershell Arguments\r\n## Mandatory argument:\r\n* `-api_key` this is the API key used to authenticate.\r\n  - To get the API key:\r\n    - [Panorama](https://docs.paloaltonetworks.com/prisma/prisma-access/preferred/2-2/prisma-access-panorama-admin/prisma-access-overview/retrieve-ip-addresses-for-prisma-access)\r\n    - [Cloud Managed](https://docs.paloaltonetworks.com/prisma/prisma-access/prisma-access-cloud-managed-admin/prisma-access-service-infrastructure/retrieve-ip-addresses-to-allow-for-prisma-access)\r\n  - if -api_key is not passed via command-line, you will be prompted to enter an API key.\r\n\r\n## Default Argument:\r\n* `-dataType EgressIPs`. This will show all the public egress IP addresses for the Prisma Access tenant.\r\n\r\n## Alternate outputs for `-dataType`:\r\n* `ActiveIPOnboardedMobileUserLocations` - Shows all the public egress IPs for mobile users.\r\n* `ActiveMobileUserAddresses` - Shows all the public egress IPs for mobile users.\r\n* `RemoteNetworkAddresses` - Shows all public egress IPs for Remote Networks\r\n* `CleanPipeAddresses` - Shows all public egress IPs for Clean Pipe\r\n* `ExplicitProxyAddresses` - Shows all public egress IPs for Explicit Proxy\r\n\r\n## Optional Argument\r\n* `-environment` - This defaults to prod. Adjust to the correct environment where applicable. Your Account SE should be able to help determine which environment you're in.\r\n  - if `-environment` is not added to command-line argument, then you will be prompted to confirm the environment.\r\n  - if you press enter at the prompt, it will assume you meant `prod`\r\n\r\n\r\n# Example Usage\r\n## All egress IPs for Prisma Access\r\n```powershell\r\nPS1 C:\\\u003e.\\format-egress-ips.ps1 -api_key \u003capi_key\u003e\r\nEnvironment (defaults to prod): \r\nZone              ServiceType    Address         AddressType\r\n----              -----------    -------         -----------\r\nUS Northwest      remote_network 123.264.123.112 active\r\nUS Northwest      gp_gateway     123.264.123.113 active\r\nUS Northwest      gp_gateway     123.264.123.114 active\r\nUS Northwest      swg_proxy      123.264.123.116 active\r\n...\r\n```\r\n\r\n## Loopback IP addresses\r\n```powershell\r\nPS1 C:\\\u003e.\\format-egress-ips.ps1 -api_key \u003capi_key\u003e -dataType loopback_ip\r\nEnvironment (defaults to prod): \r\n\r\nLocation          Type                Loopback IP\r\n--------          ----                -----------\r\nUS Northwest      gpcs_gp_gw          192.168.0.10\r\nUS East           gpcs_gp_portal      192.168.0.11\r\nUS West           gpcs_gp_portal      192.168.0.2\r\nCloudGenix_Branch gpcs_remote_network 192.168.0.3\r\n```\r\n\r\n## Output to csv file\r\n```powershell\r\nPS1 C:\\\u003e.\\format-egress-ips.ps1 -api_key \u003capi_key\u003e -dataType loopback_ip -outputFile loopback.csv\r\nPS1 C:\\\u003e\r\n```\r\n\r\n## Output to json file\r\n```powershell\r\nPS1 C:\\\u003e.\\format-egress-ips.ps1 -api_key \u003capi_key\u003e -dataType loopback_ip -outputFile loopback.json\r\nPS1 C:\\\u003e\r\n\r\n```\r\n\r\n## Output only IP addresses\r\n```powershell\r\nPS1 C:\\\u003e.\\format-egress-ips.ps1 -api_key \u003capi_key\u003e -dataType loopback_ip -outputFile loopback.txt\r\nPS1 C:\\\u003e\r\n\r\n```\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthescriptguy%2Fprismaaccess-egressips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthescriptguy%2Fprismaaccess-egressips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthescriptguy%2Fprismaaccess-egressips/lists"}