Giter Site home page Giter Site logo

ovh-mac-generator's Introduction

ovh-mac-generator

This project contains three scripts that enable you to easily and programmatically generate vMAC (virtualMac) addresses for all IP addresses in a certain range with OVH.

Requirements

  • Node.js >= 4.0.0

Setup

  • Obtain Node.js 4.0.0 or above and NPM
  • Clone this repo
  • cd to the ovh-mac-generator directory
  • npm install

Use

  • Create an OVH application In the US / In Europe - other options available here
  • cp config.js.example config.js
  • Put the APP_KEY and APP_SECRET in the appropriate spots in config.js. Also, populate the endpoint and service name. Possible endpoints can be found here - the service name is the name of your server available in the OVH control panel.
  • node authorize.js. You will see something like this:
Success!
Please do the following:
1. Take the consumerKey and add it to config.js
2. Visit the validationUrl and authorize this application
3. Run node IP_RANGE=$YOURNETWORKRANGE generator.js
{ validationUrl: 'https://ca.api.ovh.com/auth/?credentialToken=sloth',
  consumerKey: 'turtle',
  state: 'pendingValidation' }

Follow the instructions above.

  • IP_RANGE=1.1.1.1/24 node generator.js - substitute your IP range using CIDR notation. This will take a while to run, once it stops proceed on to the last step.
  • IP_RANGE=1.1.1.1/24 node listgen.js - This will take a minute or so depending on how many IPs you have total, once it is done you will get a list of IP addresses and vMACs.
  • You should be done. If you are Virtkick user you can copy and paste the list right into the OVH mapping box to set up your new range in the Virtkick panel.

ovh-mac-generator's People

Contributors

jdppettit avatar silverp1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.