A tool to update Linode/ACC firewall rules with your current IP address.
Project description
acc-firewall_updater
A tool to automatically update the Akamai Connected Cloud (ACC) / Linode firewall rules to allow your IP
Description
acc-fwu is a command-line tool to automatically update Linode/ACC firewall rules with your current IP address. This is particularly useful for dynamically updating firewall rules to allow access from changing IP addresses, like when you visit the gym or you're sat in an airport.
Installation
You can install the package via pip or pipx:
pipx install acc-fwu
Alternatively, you can install it directly from the source:
git clone https://github.com/johnybradshaw/acc-firewall_updater.git
cd acc-firewall_updater
pip install --use-pep517 .
Usage
First-time Setup
The first time you use acc-fwu, you’ll need to provide your Linode/ACC Firewall ID and optionally the label for the rule you want to create or update:
acc-fwu --firewall_id <FIREWALL_ID> --label <RULE_LABEL>
For example:
acc-fwu --firewall_id 123456 --label "Allow-My-Current-IP"
This command will do two things:
- It will create or update the firewall rule with your current public IP address.
- It will save the
firewall_idandlabelto a configuration file(~/.acc-fwu-config)for future use.
Subsequent Usage
After the initial setup, you can simply run acc-fwu without needing to provide the firewall_id and label again:
acc-fwu
This will:
- Load the saved
firewall_idandlabelfrom the configuration file. - Update the firewall rule with your current public IP address.
Updating the Configuration
If you need to change the firewall_id or label, you can do so by running:
acc-fwu --firewall_id <NEW_FIREWALL_ID> --label <NEW_RULE_LABEL>
This will update the configuration file with the new values.
Removing Firewall Rules
You can remove the firewall rule by running:
acc-fwu --remove
Configuration File
The acc-fwu tool saves the firewall_id and label in a configuration file located at ~/.acc-fwu-config. This file is automatically managed by the tool, so you generally won’t need to edit it manually.
Summary of Changes
2025-06-03 - v0.1.4
- Security Fixes: Updated Python dependencies to resolve security vulnerabilities.
2024-10-01 - v0.1.3
- Show IP Address: Now shows the current public IP address when it is updated.
2024-08-20 - v0.1.2
- Fixes: Fixed issue with updating the firewall rule.
2024-08-18 - v0.1.1
- Remove Firewall Rules: Instructions on how to remove the firewall rule.
2024-08-17 - v0.1.0
- First-time Setup: Instructions on how to set the
firewall_idandlabelthe first time you use the tool. - Subsequent Usage: Information about running the tool without additional arguments after the initial setup.
- Updating the Configuration: Guidance on how to change the stored
firewall_idandlabelif needed. - Configuration File: Brief explanation of the config file and its location.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file acc_fwu-0.1.4.tar.gz.
File metadata
- Download URL: acc_fwu-0.1.4.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60b3410e71e052c036069c44e18d0ddc513dd5a7479376af6fe2c5bd82569081
|
|
| MD5 |
c585d7b1e06fe4a356f93403472b7f76
|
|
| BLAKE2b-256 |
73627dacf01544aa4535975ff8f1b394dddfc57dbe289c79592ea0fbe3bad5c9
|
Provenance
The following attestation bundles were made for acc_fwu-0.1.4.tar.gz:
Publisher:
python-app.yml on johnybradshaw/acc-firewall_updater
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
acc_fwu-0.1.4.tar.gz -
Subject digest:
60b3410e71e052c036069c44e18d0ddc513dd5a7479376af6fe2c5bd82569081 - Sigstore transparency entry: 228551951
- Sigstore integration time:
-
Permalink:
johnybradshaw/acc-firewall_updater@c87099a2b8c38afb2f11f23f1fcbdb9b4f3dbfd6 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/johnybradshaw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-app.yml@c87099a2b8c38afb2f11f23f1fcbdb9b4f3dbfd6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file acc_fwu-0.1.4-py3-none-any.whl.
File metadata
- Download URL: acc_fwu-0.1.4-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d16c501f66b1a00d1196ccccce06daa16d90d871ed4d81fa48b1879284cfaf7
|
|
| MD5 |
23f1b628763dcec752acce29b4183fe8
|
|
| BLAKE2b-256 |
004c5d3b34ced29d5f6b960533d7a126c8c0013a49da3c53315289bf9d6f592f
|
Provenance
The following attestation bundles were made for acc_fwu-0.1.4-py3-none-any.whl:
Publisher:
python-app.yml on johnybradshaw/acc-firewall_updater
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
acc_fwu-0.1.4-py3-none-any.whl -
Subject digest:
2d16c501f66b1a00d1196ccccce06daa16d90d871ed4d81fa48b1879284cfaf7 - Sigstore transparency entry: 228551969
- Sigstore integration time:
-
Permalink:
johnybradshaw/acc-firewall_updater@c87099a2b8c38afb2f11f23f1fcbdb9b4f3dbfd6 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/johnybradshaw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-app.yml@c87099a2b8c38afb2f11f23f1fcbdb9b4f3dbfd6 -
Trigger Event:
release
-
Statement type: