Script to update GCP firewall rule to allow only your public IP
Script to update GCP firewall rule to allow only your public IP
I host my personal VM on Google Cloud Platform and access it mostly through SSH and HTTPS. As a hardening step, I've set up GCP firewall to only allow my home IP address. But my ISP changes my public IP pretty often, so I have to log in to the GCP console and change firewall rule there every time. I wrote a small Python script that automates this routine, and I thought maybe it could be useful to others.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
Cfddns – A No Nonsense Script to Dynamically Update Cloudflare IP
Failed Firewall Update Disaster
The AI agent firewall: catches hijacks that pass every rule
The Firewall for Humanity.
Script for a Automatic Update of Gitea
One hostname to rule them all
One binary to rule them all
One makefile to rule them all
Erlmacs – a script to update your .emacs file for Erlang development
sn00p – poc app firewall