aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--LICENSE21
-rwxr-xr-xdependencies.sh7
-rwxr-xr-xdmvpn-ca26
-rwxr-xr-xnhrp-events12
-rwxr-xr-xsetup.sh9
5 files changed, 49 insertions, 26 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..9de9d7e
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+Copyright (c) 2014-2018 Kaarle Ritvanen
+Copyright (c) 2015-2017 Timo Teräs
+Copyright (c) 2017 Natanael Copa
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/dependencies.sh b/dependencies.sh
index 8d62b85..57a913d 100755
--- a/dependencies.sh
+++ b/dependencies.sh
@@ -1,5 +1,12 @@
#!/bin/sh
+# Install dependencies for dmvpn-tools
+#
+# Copyright (c) 2014-2018 Kaarle Ritvanen
+# Copyright (c) 2017 Natanael Copa
+#
+# See LICENSE file for license details
+
sudo apk add -t .dmvpn-tools-deps \
lua5.2 lua5.2-cqueues lua5.2-lyaml lua5.2-ossl lua5.2-posix \
lua5.2-sql-sqlite3 lua5.2-stringy lua5.2-struct lua-asn1
diff --git a/dmvpn-ca b/dmvpn-ca
index 7e0a57d..2732e87 100755
--- a/dmvpn-ca
+++ b/dmvpn-ca
@@ -3,27 +3,11 @@
--[[
Certificate Authority tool for Dynamic Multipoint VPN
-Copyright (C) 2014-2017 Kaarle Ritvanen
-Copyright (C) 2015 Timo Teräs
-Copyright (C) 2017 Natanael Copa
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+Copyright (c) 2014-2018 Kaarle Ritvanen
+Copyright (c) 2015 Timo Teräs
+Copyright (c) 2017 Natanael Copa
+
+See LICENSE file for license details
]]--
conf_file = io.open(os.getenv('DMVPN_CA_CONF') or '/etc/dmvpn-ca.conf')
diff --git a/nhrp-events b/nhrp-events
index e5e3bbf..2f55657 100755
--- a/nhrp-events
+++ b/nhrp-events
@@ -1,10 +1,14 @@
#!/usr/bin/lua5.2
--- Example NHRP events processing script which validates
--- NHRP registration GRE address against certificate subjectAltName IP
--- and auto-creates BGP pairings and filters based on sbgp extensions.
+--[[
+Example NHRP events processing script which validates NHRP registration GRE
+address against certificate subjectAltName IP, and auto-creates BGP pairings
+and filters based on S-BGP extensions.
--- Depends on lua5.2 lua5.2-posix lua5.2-cqueues lua5.2-ossl lua-asn1
+Copyright (c) 2015-2017 Timo Teräs
+
+See LICENSE file for license details
+]]--
local posix = require 'posix'
local struct = require 'struct'
diff --git a/setup.sh b/setup.sh
index e828e31..51586fb 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,6 +1,13 @@
#!/bin/sh -e
-sh ./dependencies.sh
+# Create test database for dmvpn-ca
+#
+# Copyright (c) 2014-2018 Kaarle Ritvanen
+# Copyright (c) 2017 Natanael Copa
+#
+# See LICENSE file for license details
+
+./dependencies.sh
while read cmd; do
if [ "$cmd" ]; then