Kyle Manna
f1e85c959e
genconfig: Fix typo, use Docker for port mapping
...
* Use docker run ... -p 1337:1194/udp kylemanna/openvpn
2014-07-06 10:51:44 -07:00
Kyle Manna
d412ce9f7e
getclient: Fix sourced env variables
...
* Update to use the sourced environemental variables.
* Add switch for not using default gateway.
2014-07-06 00:25:14 -07:00
Kyle Manna
c3321abce5
README: Minor typo
...
* Multiple steps now. Tweak.
2014-07-06 00:24:54 -07:00
Kyle Manna
ca8f41f341
backup: Add restore step
...
* Add restore step
* Use lzma compression since we're in the 2010's
2014-07-06 00:11:27 -07:00
Kyle Manna
31d631443f
README: Update to reflect recent changes
...
* Change argument parameters.
Closes #4
2014-07-05 23:35:47 -07:00
Kyle Manna
f221b0f0d0
genconfig: Handle route default env
...
* Handle re-inheriting previous routes if not overriden
* Handle leading whitespace
2014-07-05 22:27:30 -07:00
Kyle Manna
3b13cf9918
run: Handle NAT routes dynamically
...
* Handle the NAT routes dynamically
* Stop caring about backwards compatibility for now
2014-07-05 22:27:15 -07:00
Kyle Manna
6ca11162a5
init: Rename to initpki
...
* This function only initialize the EasyRSA PKI tools now.
* Decoupled from the init process.
2014-07-05 22:27:15 -07:00
Kyle Manna
6fe867c52b
genconfig: Add getopts parsing
...
* Pass public server URL via -u argument instead of $1
* Add ability to specify multiple alternative routes
* Add ability to specify override default server internal subnet
* Add ability to write configs without a default route out, not
implemented in other configs yet
2014-07-05 22:27:04 -07:00
Kyle Manna
852d404c12
env: Re-work environment code
...
* Instead of storing just a server_url which was necessary to
regenerate the OpenVPN configs, instead store an env file.
* Move all the env parsing to `ovpn_genconfig` so that it can be re-run
from genconfig instead of from `ovpn_init`.
* Remove all the parsing and env defaults except for genconfig.
NOTE: This breaks the older config method, uesrs will need to re-run
genconfig with an arg[1] as the previous server_url, this will create
the necessary env file the rest of the tools expect.
Example recovery for legacy users:
host$ docker run --rm -it kylemanna/openvpn bash -l
container# ovpn_genconfig $(cat /etc/openvpn/server_url)
2014-07-05 22:07:24 -07:00
Kyle Manna
60671e6819
genconfig: Delete backup if configs are identical
...
* Avoid accumulating noise.
2014-07-01 08:30:28 -07:00
Kyle Manna
a3f80e625f
docs: Add debug document
...
* Start of something useful, maybe.
2014-07-01 00:09:00 -07:00
Kyle Manna
fbc53ebda0
Merge branch 'tweak_configs'
2014-06-30 23:52:37 -07:00
Kyle Manna
e4feb29b87
README: Correct dynamic subnet
...
* Correct dynamic client subnet that recently changed.
2014-06-30 23:45:36 -07:00
Kyle Manna
9951ca6ca2
README: Use long server_url
...
* Attempt to reveal the configurability to the curious.
2014-06-30 23:43:41 -07:00
Kyle Manna
836b473d20
ovpn: Remove reference to udp/1194
...
* Remove references to udp/1194.
* Works better with non-standard ports and tcp.
2014-06-30 23:27:00 -07:00
Kyle Manna
34eca5b96f
ovpn: Convert from servername -> server_url
...
* Previously the server name cached the common name generated during
init and assumed always 1194/udp.
* The new configuration allows for users to pass in a url in a new form
that allows the protocol to be specified as well as the port.
* Example: udp://vpn.example.com:1194
* Try to be backwards compatible.
2014-06-30 23:27:00 -07:00
Kyle Manna
507f27a9e0
docs: Add backup documentation
...
* Brain dump on ways to backup the docker volume container for peace of
mind.
2014-06-30 09:19:36 -07:00
Kyle Manna
aeb1e255cf
Merge branch 'static-ips'
...
Closes #2
2014-06-30 00:39:11 -07:00
Kyle Manna
9a7ccd45ae
docs: Add static IP documentation
...
* Add the documentation while it's fresh.
2014-06-30 00:35:52 -07:00
Kyle Manna
26a14d2f4b
clients: Add support for static subnet
...
* Allow static clients to be placed on 192.168.254.0/24 subnet.
2014-06-30 00:13:55 -07:00
Kyle Manna
5e3c9719c8
run: Always ensure client dir exists
...
* OpenVPN will fail to start if this directory doesn't exist.
2014-06-29 23:26:23 -07:00
Kyle Manna
7b9d82630d
genconfig: Backup old config file
...
* Backup previous config file before overwriting.
2014-06-29 23:26:23 -07:00
Kyle Manna
1aaf6a4359
genconfig: Use servername if $1 not specified
...
* Set the common name to servername set during last ovpn_init if $1 is
not passed in.
* Simplies re-running ovpn_genconfig when features are added.
2014-06-29 23:26:23 -07:00
Kyle Manna
20dc3d6ea0
genconfig: Expand the subnet
...
* Use a larger subnet (2x the size) to allow for more hard-coded
configurations.
2014-06-29 23:26:23 -07:00
Kyle Manna
353019b0e9
genconfig: Add client-config-dir
...
* Add client config directory for client specific configuration options
such as IP addresses.
2014-06-29 23:26:23 -07:00
Kyle Manna
024fa95f19
README: Update to describe current implementation
...
* Update to describe the current implementation as changed following the
fork.
2014-06-05 09:02:49 -07:00
Kyle Manna
126f3a4557
ovpn_init: Protect the CA key by default
...
* Protect the CA key with a passphrase by default to protect it from a
filsystem compromise. An attacker could still steal the other keys
stored (ie the server's cert key), but not issue new keys.
* This is a good compromise for now.
2014-06-04 17:07:07 -07:00
Kyle Manna
e1902bc2cd
ovpn_genconfig: Add generate config script
...
* Create a generate config script so that the new docker containers can
regenerate the OpenVPN configuration without clobbering the PKI setup.
2014-06-04 16:50:53 -07:00
Kyle Manna
d180cce5d0
README: Update with quick blurb on how to use
...
* Brain dump of an example until I get time to properly update.
2014-06-04 15:42:35 -07:00
Kyle Manna
4728990da3
ovpn_getclient: Verify server certificate
...
* Verify the server's certificate to avoid MITM attacks
2014-06-04 15:38:49 -07:00
Kyle Manna
bc4165e587
tls-auth: Enable tls-auth for security
...
* Enabling tls-auth improves security and helps protect against DDoS.
2014-06-04 15:35:18 -07:00
Kyle Manna
1751d00fc9
Dockerfile: Switch to leaner Debian image
...
* Debian testing/Jessie is approximately 30% smaller the Ubuntu, use
that instead.
2014-06-04 11:42:37 -07:00
Kyle Manna
939cf7ab67
ovpen_init: Remove external IP resolution
...
* Disable auto guessing the external IP in favor of the user explicitly
specifying the server name. Save the servername for client cert
generation later.
* Remove dnsutils from build since dig is no longer necessary. Favor
learn and mean images.
2014-06-04 11:15:43 -07:00
Kyle Manna
1869cd85d0
openvpn.sh: Split in to smaller scripts
...
* Split soon to be massive wrapper into smaller managable scripts.
* Re-organized Dockerfile to exploit cache when rebuilding
2014-06-04 11:13:59 -07:00
Kyle Manna
035ff64200
Dockerfile: Add ENV configuration
...
* Add ENV configuration options to Dockerfile as opposed to keeping in
the wrapper script.
* First step to splitting up openvpn.sh in to smaller scripts.
2014-06-04 10:52:59 -07:00
Kyle Manna
f6474d06f9
Dockerfile: Remove unused ports
...
* These ports are unused, remove them to reduce confusion.
2014-06-04 09:30:04 -07:00
Kyle Manna
2d26b87343
run: Remove run script
...
* Replaced by openvpn.sh
2014-06-04 09:29:45 -07:00
Kyle Manna
161acca6a2
openvpn.sh: Add log tail function
...
* Add ability to tail log file as original repo did.
2014-06-04 09:29:17 -07:00
Kyle Manna
7944bcd9fe
serveconfig: Remove
...
* Use the openvpn.sh wrapper script instead
2014-06-04 09:26:53 -07:00
Kyle Manna
422c2a302d
openvpn.sh: Add getclientconfig
...
* Add mechanism to generate and return a client configuration
* Seemlessly Generates certificate if necessary
2014-06-04 09:18:25 -07:00
Kyle Manna
f673ee83ce
openvpn.sh: Save servername used during init
...
* Save the DNS domain name or IP address the server was configured with
* Useful for generating client configurations
2014-06-04 09:08:09 -07:00
Kyle Manna
a1c174f6f5
openvpn.sh: Implement init step and cert gen
...
* Initialize and configure the OpenVPN server
* Generate PKI keys, CA, and certs when needed
2014-06-04 01:39:38 -07:00
Kyle Manna
9e4de074d0
openvpn.sh: Add easyrsa to wrapper
...
* Provide a way to invoke easyrsa form the wrapper
* Add ability to set the EasyRSA vars file which manages the default
settings for the EasyRSA PKI CA.
2014-06-04 00:21:14 -07:00
Kyle Manna
f6873cf5bd
Dockerfile: Add EasyRSA-3 support
...
* EasyRSA v3 is preferred over v2 because it includes support for
elliptic curves.
2014-06-04 00:21:14 -07:00
Kyle Manna
023cfe6596
openvpn.sh: Add wrapper script
...
* Add the beginning of a wrapper script that will handle cert generation
and OpenVPN invocation.
2014-06-03 20:58:13 -07:00
Kyle Manna
47bc4e4865
Dockerfile: Add MAINTAINER line
...
* Add maintrainer line and credit jpetazzo
2014-06-03 20:42:19 -07:00
Kyle Manna
c19b01e005
Dockerfile: Update to Ubuntu 14.04
...
* Upgrade to latest Ubuntu LTS release
2014-06-03 20:31:53 -07:00
Jérôme Petazzoni
a002a7cbec
Merge pull request #4 from ReAzem/patch-1
...
readme updates
2014-05-23 17:13:09 -07:00
Alexandre Viau
93d12716c5
commands were deprecated
2014-05-23 18:31:46 -04:00