Skip to main content

Firewall rule updater for Google Cloud Platform

Project description

Overview

A command-line utility to update Google Cloud Platform firewall rules. Particularly, source IP range for allow SSH rule.

Use case

Harden a virtual machine in Google Cloud by allowing only a single IP address to log in through SSH.

Usage

gcpfwup service_account_file.json

The only required argument is a path to Google service account JSON key file. You can download it from Google Cloud Console. It should be under IAM & Admin / Service Accounts and needs permissions for Google compute engine.

Help

gcpfwup --help

usage: gcpfwup [-h] [-v] [--ip IP] service_account_file

positional arguments:
  service_account_file  path to Google API service account JSON file

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         increase output verbosity
  --ip IP               use this IP instead of auto-resolved public IP

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcpfwup-1.0.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

gcpfwup-1.0.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file gcpfwup-1.0.0.tar.gz.

File metadata

  • Download URL: gcpfwup-1.0.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for gcpfwup-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6e5e4fefb8a8b919688963842360944d7e4a19de6994a4fafedd776782eaf722
MD5 9f6d891dfa7f53420de546067061bd5a
BLAKE2b-256 a227542ef42f54cbb8f19af14f0f941049dd55e7093587fec93262955de202c4

See more details on using hashes here.

File details

Details for the file gcpfwup-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: gcpfwup-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for gcpfwup-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69856c7cf68ba59f474b5c6e1ed4c21930079e99bf51f5411bcee27281926bb7
MD5 901c6e98806a2c82149d183bb9003e77
BLAKE2b-256 dad4b6959fec51cf17941441319941284a0e87b726ab0fdcec9213325e08c404

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page