Protect your VM with a Google Cloud Firewall Rule. Create and associate a Firewall Policy with a new or existing Google Cloud Instance and manage its allowed IPv4 Addresses with fwsync.
- GCP account
- VM Instance
- Firewall Rule associated with running Instance
The recommended method of authentication is to run the following command:
$ gcloud auth application-default login$ fwsync init --provider google --project YOUR_PROJECT
Whenever your ISP leases you a new IP, you can run fwsync update to seemlessly update your managed firewall rule.