GithubHelp home page GithubHelp logo

mikrotik-user / ipsec-ike-v2-auto-script Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 3.0 85 KB

These scripts create\remove IPsec IKE v2 server and\or peers

Rascal 100.00%
mikrotik ipsec ikev2 script strongswan vpn

ipsec-ike-v2-auto-script's Introduction

IPSec-IKE-v2-auto-script

These scripts create\remove IPsec IKE v2 server and\or peers.

  1. "IKEv2-server-autoscript.rsc" is an interactive script to create and manage IKEv2 server on mikrotik router.
  2. "IKEv2-peer-autoscript.rsc" is used on client-side mikrotik to create peer.
  3. "IKEv2-remove-peer-autoscript.rsc" is used on client side mikrotik to remove peer.
  4. "IKEv2-strongswan-peer-autoscript.rsc" is used on client-side mikrotik to create peer working with StrongSwan IPSec ikev2 server.

HOW TO...

How to setup an IKE v2 server and create CA certificate.

  1. Download IKEv2-server-autoscript.rsc on your mikrotik router /tool fetch url="https://raw.githubusercontent.com/mikrotik-user/IPSec-IKE-v2-auto-script/main/IKEv2-server-autoscript.rsc" mode=https dst-path=IKEv2-server-autoscript.rsc. Also you may download file manually and upload it to router.
  2. Import script /import IKEv2-server-autoscript.rsc. You may also copy content of this page and paste to a newly created script using GUI.
  3. Run script via CLI. /system script run IKEv2 IMPORTANT: Script won't work if you run it via GUI.
  4. Choose 1. Install IKE v2 server by typing "1"
  5. Follow instructions on CLI

How to create a client and create client's certificate. (Server-side)

  1. Run script via CLI. /system script run IKEv2
  2. Choose 2. Create peer by typing "2"
  3. Follow instructions on CLI

How to setup a peer on client mikrotik router. (Peer-side)

  1. Download IKEv2-peer-autoscript.rsc on your mikrotik router /tool fetch url="https://raw.githubusercontent.com/mikrotik-user/IPSec-IKE-v2-auto-script/main/IKEv2-peer-autoscript.rsc" mode=https dst-path=IKEv2-peer-autoscript.rsc. Also you may download file manually and upload it to router.
  2. Import script /import IKEv2-peer-autoscript.rsc. You may also copy content of this page and paste to a newly created script using GUI.
  3. Run script via CLI. /system script run IKEv2-peer IMPORTANT: Script won't work if you run it via GUI.
  4. Choose 1. Create peer by typing "1"
  5. Follow instructions on CLI

How to setup strongswan client on mikrotik router.

  1. Download "IKEv2-strongswan-peer-autoscript.rsc" on your mikrotik router /tool fetch url="https://raw.githubusercontent.com/mikrotik-user/IPSec-IKE-v2-auto-script/main/IKEv2-strongswan-peer-autoscript.rsc" mode=https dst-path=IKEv2-strongswan-peer-autoscript.rsc. Also you may download file manually and upload it to router.
  2. Import script /import IKEv2-strongswan-peer-autoscript.rsc. You may also copy content of this page and paste to a newly created script using GUI.
  3. Make sure you uploaded certificate file on you router. Run script /system script run IKEv2-strongswan-peer-autoscript
  4. Choose 1. Create peer by typing "1"
  5. Script creates new peer and a new rollback script named "remove-peer-". You can use it to rollback modifications made by "IKEv2-strongswan-peer-autoscript".

ipsec-ike-v2-auto-script's People

Contributors

mikrotik-user avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.