OpenVPN config generator: Difference between revisions
Jump to navigation
Jump to search
Created page with "Simple configuration generator for OpenVPN which supports ''static IPs, udp/tcp'' [https://github.com/koss822/misc/tree/master/openvpn/conf_generator GitHub Project] == Dire..." |
No edit summary |
||
Line 1: | Line 1: | ||
Simple configuration generator for OpenVPN which supports ''static IPs, udp/tcp'' | Simple configuration generator for OpenVPN which supports ''static IPs, udp/tcp'' | ||
[https://github.com/koss822/misc/tree/master/openvpn/conf_generator GitHub Project] | [https://github.com/koss822/misc/tree/master/Linux/Projects/openvpn/conf_generator GitHub Project] | ||
== Directory structure == | == Directory structure == |
Revision as of 13:00, 24 January 2019
Simple configuration generator for OpenVPN which supports static IPs, udp/tcp
Directory structure
├── clients
│ ├── client1
│ │ ├── client1.client.conf
│ │ └── keys
│ │ ├── ca.crt
│ │ ├── client1.crt
│ │ ├── client1.csr
│ │ └── client1.key
│ └── client2
│ ├── client2.client.conf
│ └── keys
│ ├── ca.crt
│ ├── client2.crt
│ ├── client2.csr
│ └── client2.key
├── genkey.py
├── server
│ ├── ccd
│ │ ├── client1
│ │ └── client2
│ ├── keys
│ │ ├── ca.crt
│ │ ├── ca.key
│ │ ├── dh2048.pem
│ │ ├── server.crt
│ │ ├── server.csr
│ │ └── server.key
│ └── server.conf
Config syntax
---
server:
fqdn: 'openvpn.server.com'
port: '443'
proto: 'udp'
topology: '192.168.10.0 255.255.255.0'
clients:
- name: client1
ip: 192.168.10.10
subnet: 255.255.255.0
- name: client2
ip: 192.168.10.20
subnet: 255.255.255.0
Usage
To generate keys and openvpn configs, just edit config file vpn.yml and run python script genkey.py which will generates all neccesary files. It does not overwrite existing configuration so when you add a new client previous client keys will stay untouched.