GithubHelp home page GithubHelp logo

deephack1982 / ipriver_mikrotik_config_generator Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 59 KB

Rails app which when given certain parameters generates a Mikrotik router configuration

Ruby 68.45% JavaScript 1.72% CoffeeScript 4.89% CSS 3.94% HTML 20.99%

ipriver_mikrotik_config_generator's Introduction

README

IP River Mikrotik config generator is a web application which stores router configurations and configurations templates and can generate .rsc files with which to apply these configurations. Presently it supports RB2011 and RB3011 series routers.

Tested with Ruby 2.3.3, Rails 5.0.1, MariaDB 15.1

To deploy simply clone from the deploy branch and run the following from the project directory.

gem install bundle bundle install rake db:setup rake db:schema:load db:seed RAILS_ENV=development rails s -d

USAGE

CREATING A TEMPLATE

Click templates at the top of the interface and then click the link at the bottom to create a new config template. All fields are mandatory. Name and description should assist users in selecting the correct template when making a new config. Config text is where your template configuration goes. Make sure to not enter any interface specific settings or firewall rules as these will be automatically created.

CREATING A CONFIG

Click configs at the top of the interface and then click the link at the bottom to create a new config. Choose a config template from the drop down at the top and then enter your config parameters. All of the fields are mandatory with the exception of the interfaces. In interfaces select the type of interface and enter it's corresponding settings. Any unused interfaces should be set to unused. PPP interfaces must have a username and password, ethernet interfaces must have an IP and subnet, gateway is optional. If you make a mistake then the page will prompt you.

GENERATE A CONFIG FILE

To generate a config file which you can load on to your router click on configs at the top of the interface and then click show next to the config you would like to use. Ensure that the settings are the ones you want to apply and then click the generate link at the bottom of the screen. This will download the rsc file. To apply to your router log in to it via winbox and click on Files, then click on the Upload button and select your configuration file. Now click System -> Reset Configuration. In the popup which appears select the options "No Default Configuration" and "Do Not Backup", in the run after reset drop down select your configuration file. Click OK and confirm to proceed, the router will reboot and apply your configuration. If you need to log in to the router again note that it will only accept winbox connections from IP addresses in the security list.

ipriver_mikrotik_config_generator's People

Contributors

deephack1982 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ipriver_mikrotik_config_generator's Issues

Lock down lcd

Lock down the LCD so that it only displays bandwidth information for ether1. Also change the pin from the default.

Add new interface types

New interface types should be added as follows:-

ethernet should be split into ethernet-wan and ethernet-lan
sfp-wan should be added for fibre connections

The javascript should also be updated to allow entry of gateway for wan connections only.

Download updates on boot locks out router

With the upgrade download-all setting applied the router hangs for a long time after applying the settings file as it doesn't have internet access. This should be removed so that routers can be provisioned before they are sent to site.

Config Issue?

Deployed config: MILLG-S369QU-01 to Live service, now unable to reconnect. Mikrotik has Eth1 connected to RAD unit, nothing connected to Eth2, possible the issue? Does something have to be connected to Eth2 to allow access via LAN IP? I am connecting from 185.113.80.137

Add ppp failover template to seed

Need additional config template with ppp failover which makes use of 3 interfaces.

1 - Ethernet-wan or sfp-wan
2 - Ethernet-lan
3 - PPP

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.