Skip to content

lapause/aws-php-ip-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Basic AWS IP updater

Purpose

Useful if you must access Amazon pretected resources from different locations or from an access point that does not have a fixed IP address.

  • Script will open configured port(s) for your current IP to every configured security groups.
  • Your current IP will then be saved in a storage file. On next run, if your IP changed, the script will first clean up references to the old one.

Groups are EC2 groups by default. You also can use the updated with RDS security groups by prefixing their name by "rds:".

RDS security groups will obviously ignore the port and protocol options as only the MySQL port is concerned.

Usage

$ php AwsSecurityGroupUpdater.php -g GROUP1 [-g GROUP2...] [-p PORT] [-t PROTOCOL] [--grabber URL] [--storage FILE]

Arguments

  • -g: Group name, at least one group must be provided.
  • -p: Port to open, default: 22
  • -t: Protocol to open, default: tcp
  • --grabber: URL to use to grab current device IP address, default: http://icanhazip.com
  • --storage: Path to storage file, default: ~/.aws/lastip

About

Basic IP updater for AWS security groups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages