Skip to main content

aws-portknock

Port knocking for AWS security groups

"Port knocking"

Unlike the traditional port knocking utilities, this tool relies on the caller having the rights, through Amazon Web Services' Identity and Access Management roles, to modify a security group.

Usage

$ aws-portknock --help
Usage: aws-portknock [OPTIONS]

Options:
  --port INTEGER  Port to open
  --profile TEXT  Configuration profile to use
  --sgid TEXT     Security group ID
  --help          Show this message and exit.

aws-portknock will determine the caller's public IP and add a rule to the security group allowing access to the requested port from that IP. It then sleeps until the user quits by using CTRL-C.

If a matching rule already exists, nothing happens on exit; otherwise, that added rule is deleted when aws-portknock exits.

For repeated use, create $HOME/.aws/portknock.ini containing, for example:

[default]
sgid = sg-12abcdef
port = 22

[webprofile]
sgid = sg-12abcdef
port = 443

Metadata

Release files for aws-portknock 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-portknock 0.1.2
File Size Uploaded
aws-portknock-0.1.2.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aws-portknock 0.1.2
File Interpreter ABI Platform
aws_portknock-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / aws-portknock-0.1.2.tar.gz

Download URL aws-portknock-0.1.2.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fc61d141f40c9e6a1f50a55349a975f8eacd8c0d1bdb96046af972e22564b0de
BLAKE2b-256 checksum
How to use checksums
787dce8c331a45872c167e63d7a9a6dc5efd5b5a6f7063f281678bb4d93ec6d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / aws_portknock-0.1.2-py3-none-any.whl

Download URL aws_portknock-0.1.2-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58445bbcc4b29578804f951537e1e23c87815a18dd85c05a016a5f6656994c1a
BLAKE2b-256 checksum
How to use checksums
979e6aaabd912e6059d538611fc438c9b256269bc25770c6c5fef7edb99f7cb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page