-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
65 lines (42 loc) · 1.75 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<h2> OpenVPN Manager for Linux/Gentoo </h2>
This is an attempt to create an awesome open source openVPN Manager for Linux.
It is tested to run on Gentoo Linux, but actually should work on all Linux and OSX, just need to change the paths on the settings pane.
It's still very basic now. I will try to copy some functionality from the official openvpn manager.
Anyone interested to join me is very welcome.
<h2> About Application </h2>
Right now at this early stage, the application is in safe-mode.
Which means that it will make no changes to you current openvpn configuration and files. It will only read and display. So it's safe to try out and experiment.
There are two modes of operation.
<h3>1. Using the database: </h3>
- Using the database to store the user keys.
- you can store more data about the client, such as email, user login, and other stuff.
- if you use other scripts to generate the keys, they will not show up in the application.
You will need to migrate them to the database.
<h3>2. Using the filesystem:</h3>
- default mode
- The keys are store and read by the filesystem each query.
- could be faster.
- if you use other scripts to generate the keys, they will show up in the application.
<h2> Requirements: </h2>
- rails, mysql/sqlite
- OpenVPN
- You need to know where is the 'easyrsa' folder (included in openvpn)
- you need to load the 'vars' variables into the settings of the application.
<h2> Gems </h2>
- formtastic
- authlogic
- thoughtbot-factory_girl
- rspec
- cucumber
<h2> Installation </h2>
1. Edit database.yml
2. Edit db/seed.rb
2. sudo rake gems:install
3. rake db:create
3. rake db:migrate
4. rake db:seed
5. ruby ./script/server
Then login as :
email: "admin"
password: "welcome"
you can change login info in db/seed.rb