Socket
Socket
Sign inDemoInstall

ec2-router

Package Overview
Dependencies
4
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ec2-router

Utility for setting up static routes to EC2 public addresses


Version published
Maintainers
1
Install size
96.3 MB
Created

Changelog

Source

v1.0.2 (2015-11-03)

  • Fixed host routes on Linux

Readme

Source

ec2-router

When starting out with Amazon EC2, it usually easier to start using IP based restrictions instead of doing the "Right Thing™" and setting up a VPN between your network and your VPCs.

This script will walk through your EC2 inventory, and setup a bunch of static host routes to your EC2 public addresses. This allows you to forward all of your traffic to those EC2 instances, say, over your VPN back to your corporate network.

But, really, you should setup a VPN.

Usage

$ npm install -g ec2-router
$ sudo ec2-router

Credentials

ec2-router uses all the typical mechanisms for configuring your AWS credentials.

  • ~/.aws/credentials
# Can be configured manually, or using aws configure
[default]
aws_access_key_id = ***
aws_secret_access_key = ***
  • Environment Variables
$ sudo AWS_ACCESS_KEY_ID=*** AWS_SECRET_ACCESS_KEY=*** ec2-router

Command Options

    --verbose                 Print additional details
    --dry-run                 Print the commands it would execute, but do not
                              execute them
    --delete                  Delete routes to EC2 instances instead of adding
                              them
    --dest [-interface tun0]  Specify the route destination
    --regions [regions]       Comma separated list of regions to query. Defaults
                              to default all regions

Special Thanks

Special thanks to Dan Jenkins for the initial script that this one is based on.

License

MIT

Keywords

FAQs

Last updated on 03 Nov 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc