Skip to main content

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:

pip 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 -e .

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:

  1. It will create or update the firewall rule with your current public IP address.
  2. It will save the firewall_id and label to 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:

  1. Load the saved firewall_id and label from the configuration file.
  2. 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

2024-08-17

  • First-time Setup: Instructions on how to set the firewall_id and label the 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_id and label if needed.
  • Configuration File: Brief explanation of the config file and its location.

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

acc_fwu-0.1.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

acc_fwu-0.1.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file acc_fwu-0.1.0.tar.gz.

File metadata

  • Download URL: acc_fwu-0.1.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for acc_fwu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e6660fbce674975fca6e6e204d78293b645516b4b0f26e54ca87a24815f04d59
MD5 3745f26050c1bb69bd191f0c544b7919
BLAKE2b-256 4a2247a92b3cc6b8cf769927e01496840ecdc61ac090febc2ed7b737783a5b88

See more details on using hashes here.

File details

Details for the file acc_fwu-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: acc_fwu-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for acc_fwu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df7253dc220522caf64fd7da40ee7ed40ace854016eb110bd49cf561c0649f0d
MD5 39b422106e7a5dcb54a2b575ea90b767
BLAKE2b-256 a0b138cc494c642637c5a7e405af2f1dcdb4cd33e039a330d84be6c02a5e7a62

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