Giter VIP home page Giter VIP logo

openvpn-server-setup's Introduction

OpenVpn Server Setup

This is a tutorial to create open vpn server with user profiles to connect

arduino

Overview

Requirements

first of all you need to have a vps running ubuntu/centos/redhat then in order to create connect to the server and make modifications your gonna need these programs:

  • Putty
  • Filezilla or WinSCP
  • OpenVpn Client (desktop/mobile)

Step 1 (getting ready)

1- Create a directory where you want to store OpenVpn Configurations

mkdir OpenVpn

2- then download the openvpn installer script through the command bellow

wget https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh

3- change the mode of the file to be executable

chmod +x openvpn-install.sh

4- in order to run the script you need to have sudo permissions so add the sudo in the begging of the command for running the script and

sudo ./openvpn-install.sh

Step 2 (setup server)

1- Keep the default ip and hit "Enter"

2- Do you want to enable IPv6 support (NAT)? (y/n): n

3- what port do you want OpenVpn to listen to? Port Choice [1-3]: 1

4- what protocol do you want OpenVpn to use? Protocol [1-2]: 1

5- what DNS resolvers d you want to use with the VPN? DNS[1-12]: 9 Google

6- do you want to use compression? [y/n]: n

7- do you want to customize encryption settings? [y/n]: y

8- choose which cipher you want to use for the data channel? [1-6]: 1

9- choose what kind of certificate you want to use? [1-2]: 1

10- choose which curve you want to use for the certificate's key? [1-3]: 1

11- choose which cipher you want to use for the control channel? [1-2]: 1

12- choose what kind of Diffie-Hllman key you want to use? [1-2]: 1

13- choose which curve you want o use for the ECDH key? [1-3]: 1

14- which digest algorithm do you want to use for HMAC? [1-3]: 1

15- you can add an additional layer of security to ... Control channel additional security mechanism [1-2]: 1

16- Press any key to continue... (hit enter)

'''Wait until the process finish'''

Step 3 (create user)

in order to use the server after setup you will need user profiles to be created:

1- Client name: "Enter any name you want for example: vpn-user-1" 2- do you want to protect the configuration file with a password?: [1-2]: 1 after this step user have been added and the installation is done

Step 4 (download .ovpn)

in order to download the configuration file you have to connect to the server with any ftp client and downloading the username.ovpn file you already created to your system.

Step 5 (setup more clients)

for client side just install openvpn app on your mobile or desktop and import the openvpn profile. then hit connect to start connecting to the server and enjoy using it.

Adding more users

each profile can be connected by one device per time and for each device you have to create one seperated file. so again follow these steps to create more users:

1- run the script again

sudo ./openvpn-install.sh

2- select the

1) Add a new user

3- give a new user name

4- set no password

5- download the .ovpn file and setup your vpn for connection

openvpn-server-setup's People

Contributors

alibigdeli avatar

Stargazers

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