技术文章 Network ovpn over mikrotik
Skip TOC

Article Index

  1. ovpn over mikrotik
  2. Page No current position
  3. Page No
  4. Page No

Page No

sudo apt-get install openvpn easy-rsa

Linux-1

Make an easy-rsa directory inside /etc/openvpn:

cd /etc/openvpn/ sudo mkdir easy-rsa

Linux-2

Use the following command to copy the default easy-rsa into /etc/openvpn/easy-rsa for setting up Certificate Authority (CA), certificates and keys generation for OpenVPN server and clients:

cp -r /usr/share/easy-rsa/* /etc/openvpn/easy-rsa/

Linux-3

Edit /etc/openvpn/easy-rsa/vars:

cd /etc/openvpn/easy-rsa/ vi vars

Linux-4

Edit these parameters according to your need:

export KEY_COUNTRY="US" export KEY_PROVINCE="NC" export KEY_CITY="Winston-Salem" export KEY_ORG="Example Company" export KEY_EMAIL="
 This e-mail address is being protected from spambots. You need JavaScript enabled to view it
 "

Linux-5

Run the clean-all command:

source vars ./clean-all

Linux-6

Now, generate the CA certificate:

 

Page 2 of 4 All Pages

scroll back to top
Top