Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended functionality #42

Open
wants to merge 90 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
1cff10b
convert to go module
cyberb Dec 7, 2019
aff77a4
CONFIG_FILE env var
cyberb Dec 14, 2019
5adb3b8
config file path
cyberb Dec 15, 2019
da72c97
wip
cyberb Dec 15, 2019
17d573a
fix config
cyberb Dec 17, 2019
2a86f34
upgrade beego to fix arm build
cyberb Dec 17, 2019
ae7da70
ldap support
cyberb Dec 17, 2019
42ef500
auth type debug
cyberb Dec 18, 2019
7599aca
cleanup
cyberb Dec 18, 2019
3f924d7
extract openvpn/easy-rsa config
cyberb Dec 18, 2019
850c62f
fix config
cyberb Dec 18, 2019
474beaa
fix server config path
cyberb Dec 19, 2019
62094df
fix OpenVpnPath
cyberb Dec 19, 2019
4c5b669
reuse management details, cleanup
cyberb Dec 19, 2019
e6ae882
fix client cert path
cyberb Dec 20, 2019
523b1d8
fix path
cyberb Dec 20, 2019
94f501c
convert client conf file to ovpn
cyberb Dec 20, 2019
f55e0e2
fix err check
cyberb Dec 20, 2019
cf110be
disable template escaping
cyberb Dec 21, 2019
80e3b5c
fix keys path
cyberb Dec 21, 2019
e005592
fix dh path
cyberb Dec 21, 2019
73ee093
Support for arm32v7 v.0.1
d3vilh Oct 12, 2021
6d727db
Support for arm32v7 v.0.2
d3vilh Oct 13, 2021
8f8caf4
Support for arm32v7 v.0.3
d3vilh Oct 16, 2021
9e65b54
Support for arm32v7 v.0.3
d3vilh Oct 16, 2021
5fba5bc
Support for arm32v7 v.0.3
d3vilh Oct 17, 2021
a87de3e
exclude .DS_Store
d3vilh Sep 20, 2022
48b14c9
.DS_Store
d3vilh Sep 20, 2022
f602874
revocation feature added
d3vilh Nov 8, 2022
5d04574
custom user and password for UI
d3vilh Nov 9, 2022
100263f
style change
d3vilh Nov 9, 2022
a1fac90
style change
d3vilh Nov 9, 2022
5653d18
Static client IPs
d3vilh Nov 10, 2022
13c5ded
+ OVPN Restart draft
d3vilh Jan 8, 2023
acf9262
bugfix
d3vilh Jan 8, 2023
5cd75ec
static IP controller putty
d3vilh Jan 8, 2023
7aa8b39
restart OpenVPN container draft
d3vilh Jan 8, 2023
f5567af
OpenVPN container restart feature implemented
d3vilh Jan 9, 2023
86791a5
Certificates view update to include "Restart" button
d3vilh Jan 10, 2023
b63fe0d
README.md update
d3vilh Jan 10, 2023
6bb3f6c
README.md update
d3vilh Jan 10, 2023
063f209
+WebForm for Client static IP
d3vilh Jan 11, 2023
19d3237
+ Web form for Client ctatic IP
d3vilh Jan 11, 2023
e31d85e
Local Static IP display
d3vilh Jan 11, 2023
a9434a3
bugfix for staticip
d3vilh Jan 11, 2023
9ce1b71
staticip bugfix
d3vilh Jan 11, 2023
8ba5b68
staticip debug
d3vilh Jan 11, 2023
6289256
bugfix
d3vilh Jan 11, 2023
74eae5f
gugfix for staticip
d3vilh Jan 11, 2023
30c15e0
bugfix for rmclient.sh
d3vilh Jan 12, 2023
a6ee30c
Delete Certificate Test
d3vilh Jan 12, 2023
089cbc0
Remove cert
d3vilh Jan 12, 2023
f95e1b3
Remove Certificate test
d3vilh Jan 12, 2023
16b3e21
Certificate remove test
d3vilh Jan 12, 2023
b500b48
router for Remove Certificste
d3vilh Jan 12, 2023
614a8a3
Router test
d3vilh Jan 12, 2023
47f2d6f
bugfix
d3vilh Jan 12, 2023
af0917a
debug
d3vilh Jan 12, 2023
2753e4d
bugfix
d3vilh Jan 12, 2023
f6c32ed
Certificates Remove testing
d3vilh Jan 13, 2023
67d5a99
Certificate Remove testing
d3vilh Jan 13, 2023
8dcca7d
Client Remove test
d3vilh Jan 13, 2023
7fd8c7e
Cert remove testing
d3vilh Jan 13, 2023
a3e8269
Cert remove testing
d3vilh Jan 13, 2023
9e8379d
Cert removal tests
d3vilh Jan 13, 2023
3909046
Cert remove tests
d3vilh Jan 13, 2023
1222f79
Certs remove tests
d3vilh Jan 13, 2023
2a05636
Certs remote testing
d3vilh Jan 13, 2023
a660c1b
Certs remote testing
d3vilh Jan 13, 2023
51773e2
Certs remote testing
d3vilh Jan 13, 2023
60f6982
Certs remote testing
d3vilh Jan 13, 2023
3bde779
Certs remote testing
d3vilh Jan 13, 2023
e24f4c7
Certs remote testing
d3vilh Jan 13, 2023
dd559db
Certs remote testing
d3vilh Jan 13, 2023
f0b30a4
Certs remote testing
d3vilh Jan 13, 2023
9c08267
Option to Remove Certificate added
d3vilh Jan 13, 2023
a265026
Passphrase port from @bnhf repo
d3vilh Jan 13, 2023
9081811
UI flash for Revoke and delete
d3vilh Jan 14, 2023
b14c243
Go to local libraries
d3vilh Jan 14, 2023
18dd586
Go to local libraries
d3vilh Jan 14, 2023
ed4c694
rel 0.2
d3vilh Jan 14, 2023
2fc9253
rel 0.2
d3vilh Jan 14, 2023
b03df06
rel 0.2
d3vilh Jan 14, 2023
2d5316e
rel 0.2
d3vilh Jan 14, 2023
01b7bcf
rel 0.2 final
d3vilh Jan 14, 2023
46dfc30
rel 0.2 final
d3vilh Jan 14, 2023
8baaf13
rel 0.2 final
d3vilh Jan 14, 2023
3d6992f
rel 0.2 final
d3vilh Jan 14, 2023
e6b2d19
Update README.md
d3vilh Jan 24, 2023
205666b
Update README.md
d3vilh Oct 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/data.db
/openvpn-web-ui*
/lastupdate.tmp
.DS_Store
.vscode
.DS_Store
.DS_Store
7 changes: 7 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": []
}
117 changes: 117 additions & 0 deletions Original_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# OpenVPN-web-ui

## Summary
OpenVPN server web administration interface.

Goal: create quick to deploy and easy to use solution that makes work with small OpenVPN environments a breeze.

If you have docker and docker-compose installed, you can jump directly to [installation](#Prod).

![Status page](docs/images/preview_status.png?raw=true)

Please note this project is in alpha stage. It still needs some work to make it secure and feature complete.

## Motivation



## Features

* status page that shows server statistics and list of connected clients
* easy creation of client certificates
* ability to download client certificates as a zip package with client configuration inside
* log preview
* modification of OpenVPN configuration file through web interface

## Screenshots

[Screenshots](docs/screenshots.md)

## Usage

After startup web service is visible on port 8080. To login use the following default credentials:

* username: admin
* password: b3secure (this will be soon replaced with random password)

Please change password to your own immediately!

### Prod

Requirements:
* docker and docker-compose
* on firewall open ports: 1194/udp and 8080/tcp

Execute commands

curl -O https://raw.githubusercontent.com/adamwalach/openvpn-web-ui/master/docs/docker-compose.yml
docker-compose up -d

It starts two docker containers. One with OpenVPN server and second with OpenVPNAdmin web application. Through a docker volume it creates following directory structure:


.
├── docker-compose.yml
└── openvpn-data
   ├── conf
  │   ├── dh2048.pem
   │   ├── ipp.txt
   │   ├── keys
   │   │   ├── 01.pem
   │   │   ├── ca.crt
   │   │   ├── ca.key
   │   │   ├── index.txt
   │   │   ├── index.txt.attr
   │   │   ├── index.txt.old
   │   │   ├── serial
  │   │   ├── serial.old
   │   │   ├── server.crt
   │   │   ├── server.csr
   │   │   ├── server.key
   │   │   └── vars
   │   ├── openvpn.log
   │   └── server.conf
   └── db
   └── data.db



### Dev

Requirements:
* golang environments
* [beego](https://beego.me/docs/install/)

Execute commands:

go get github.com/adamwalach/openvpn-web-ui
cd $GOPATH/src/github.com/adamwalach/openvpn-web-ui
bee run -gendoc=true

## Todo

* add unit tests
* add option to modify certificate properties
* generate random admin password at initialization phase
* add versioning
* add automatic ssl/tls (check how [ponzu](https://github.com/ponzu-cms/ponzu) did it)


## License

This project uses [MIT license](LICENSE)

## Remarks

### Vendoring
https://github.com/kardianos/govendor is used for vendoring.

To update dependencies from GOPATH:

`govendor update +v`

### Template
AdminLTE - dashboard & control panel theme. Built on top of Bootstrap 3.

Preview: https://almsaeedstudio.com/themes/AdminLTE/index2.html

Loading