Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lucas Kanashiro
openvpn
Compare Revisions
e385682719c2c6215022bcfa9ae0ddc6a593db5d...e1e1377bb8424326e05de1aebfd09e65942af9d9
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 249+
files are displayed.
openvpn.sln
View file @
e1e1377b
Microsoft Visual Studio Solution File, Format Version 11.00
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual C++ Express 2010
# Visual Studio Version 16
VisualStudioVersion = 16.0.31205.134
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openvpnserv", "src\openvpnserv\openvpnserv.vcxproj", "{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openvpnserv", "src\openvpnserv\openvpnserv.vcxproj", "{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}"
EndProject
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openvpn", "src\openvpn\openvpn.vcxproj", "{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openvpn", "src\openvpn\openvpn.vcxproj", "{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}"
...
@@ -9,30 +11,97 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "msvc-generate", "build\msvc
...
@@ -9,30 +11,97 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "msvc-generate", "build\msvc
EndProject
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "compat", "src\compat\compat.vcxproj", "{4B2E2719-E661-45D7-9203-F6F456B22F19}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "compat", "src\compat\compat.vcxproj", "{4B2E2719-E661-45D7-9203-F6F456B22F19}"
EndProject
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tapctl", "src\tapctl\tapctl.vcxproj", "{A06436E7-D576-490D-8BA0-0751D920334A}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openvpnmsica", "src\openvpnmsica\openvpnmsica.vcxproj", "{D41AA9D6-B818-476E-992E-0E16EB86BEE2}"
EndProject
Global
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Debug|Win32 = Debug|Win32
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|ARM64 = Release|ARM64
Release|Win32 = Release|Win32
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Debug|ARM64.ActiveCfg = Debug|ARM64
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Debug|ARM64.Build.0 = Debug|ARM64
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Debug|Win32.ActiveCfg = Debug|Win32
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Debug|Win32.ActiveCfg = Debug|Win32
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Debug|Win32.Build.0 = Debug|Win32
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Debug|Win32.Build.0 = Debug|Win32
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Debug|x64.ActiveCfg = Debug|x64
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Debug|x64.Build.0 = Debug|x64
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Release|ARM64.ActiveCfg = Release|ARM64
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Release|ARM64.Build.0 = Release|ARM64
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Release|Win32.ActiveCfg = Release|Win32
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Release|Win32.ActiveCfg = Release|Win32
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Release|Win32.Build.0 = Release|Win32
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Release|Win32.Build.0 = Release|Win32
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Release|x64.ActiveCfg = Release|x64
{9C91EE0B-817D-420A-A1E6-15A5A9D98BAD}.Release|x64.Build.0 = Release|x64
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Debug|ARM64.ActiveCfg = Debug|ARM64
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Debug|ARM64.Build.0 = Debug|ARM64
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Debug|Win32.ActiveCfg = Debug|Win32
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Debug|Win32.ActiveCfg = Debug|Win32
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Debug|Win32.Build.0 = Debug|Win32
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Debug|Win32.Build.0 = Debug|Win32
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Debug|x64.ActiveCfg = Debug|x64
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Debug|x64.Build.0 = Debug|x64
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Release|ARM64.ActiveCfg = Release|ARM64
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Release|ARM64.Build.0 = Release|ARM64
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Release|Win32.ActiveCfg = Release|Win32
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Release|Win32.ActiveCfg = Release|Win32
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Release|Win32.Build.0 = Release|Win32
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Release|Win32.Build.0 = Release|Win32
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Release|x64.ActiveCfg = Release|x64
{29DF226E-4D4E-440F-ADAF-5829CFD4CA94}.Release|x64.Build.0 = Release|x64
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Debug|ARM64.ActiveCfg = Debug|ARM64
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Debug|ARM64.Build.0 = Debug|ARM64
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Debug|Win32.ActiveCfg = Debug|Win32
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Debug|Win32.ActiveCfg = Debug|Win32
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Debug|Win32.Build.0 = Debug|Win32
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Debug|Win32.Build.0 = Debug|Win32
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Debug|x64.ActiveCfg = Debug|x64
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Debug|x64.Build.0 = Debug|x64
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Release|ARM64.ActiveCfg = Release|ARM64
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Release|ARM64.Build.0 = Release|ARM64
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Release|Win32.ActiveCfg = Release|Win32
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Release|Win32.ActiveCfg = Release|Win32
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Release|Win32.Build.0 = Release|Win32
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Release|Win32.Build.0 = Release|Win32
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Release|x64.ActiveCfg = Release|x64
{8598C2C8-34C4-47A1-99B0-7C295A890615}.Release|x64.Build.0 = Release|x64
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Debug|ARM64.ActiveCfg = Debug|ARM64
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Debug|ARM64.Build.0 = Debug|ARM64
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Debug|Win32.ActiveCfg = Debug|Win32
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Debug|Win32.ActiveCfg = Debug|Win32
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Debug|Win32.Build.0 = Debug|Win32
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Debug|Win32.Build.0 = Debug|Win32
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Debug|x64.ActiveCfg = Debug|x64
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Debug|x64.Build.0 = Debug|x64
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Release|ARM64.ActiveCfg = Release|ARM64
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Release|ARM64.Build.0 = Release|ARM64
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Release|Win32.ActiveCfg = Release|Win32
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Release|Win32.ActiveCfg = Release|Win32
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Release|Win32.Build.0 = Release|Win32
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Release|Win32.Build.0 = Release|Win32
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Release|x64.ActiveCfg = Release|x64
{4B2E2719-E661-45D7-9203-F6F456B22F19}.Release|x64.Build.0 = Release|x64
{A06436E7-D576-490D-8BA0-0751D920334A}.Debug|ARM64.ActiveCfg = Debug|ARM64
{A06436E7-D576-490D-8BA0-0751D920334A}.Debug|ARM64.Build.0 = Debug|ARM64
{A06436E7-D576-490D-8BA0-0751D920334A}.Debug|Win32.ActiveCfg = Debug|Win32
{A06436E7-D576-490D-8BA0-0751D920334A}.Debug|Win32.Build.0 = Debug|Win32
{A06436E7-D576-490D-8BA0-0751D920334A}.Debug|x64.ActiveCfg = Debug|x64
{A06436E7-D576-490D-8BA0-0751D920334A}.Debug|x64.Build.0 = Debug|x64
{A06436E7-D576-490D-8BA0-0751D920334A}.Release|ARM64.ActiveCfg = Release|ARM64
{A06436E7-D576-490D-8BA0-0751D920334A}.Release|ARM64.Build.0 = Release|ARM64
{A06436E7-D576-490D-8BA0-0751D920334A}.Release|Win32.ActiveCfg = Release|Win32
{A06436E7-D576-490D-8BA0-0751D920334A}.Release|Win32.Build.0 = Release|Win32
{A06436E7-D576-490D-8BA0-0751D920334A}.Release|x64.ActiveCfg = Release|x64
{A06436E7-D576-490D-8BA0-0751D920334A}.Release|x64.Build.0 = Release|x64
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Debug|ARM64.ActiveCfg = Debug|ARM64
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Debug|ARM64.Build.0 = Debug|ARM64
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Debug|Win32.ActiveCfg = Debug|Win32
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Debug|Win32.Build.0 = Debug|Win32
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Debug|x64.ActiveCfg = Debug|x64
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Debug|x64.Build.0 = Debug|x64
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Release|ARM64.ActiveCfg = Release|ARM64
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Release|ARM64.Build.0 = Release|ARM64
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Release|Win32.ActiveCfg = Release|Win32
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Release|Win32.Build.0 = Release|Win32
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Release|x64.ActiveCfg = Release|x64
{D41AA9D6-B818-476E-992E-0E16EB86BEE2}.Release|x64.Build.0 = Release|x64
EndGlobalSection
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
HideSolutionNode = FALSE
EndGlobalSection
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {EB3CE5D3-415C-46F0-96AB-E1CDA287AB6D}
EndGlobalSection
EndGlobal
EndGlobal
sample/Makefile.am
View file @
e1e1377b
...
@@ -5,13 +5,16 @@
...
@@ -5,13 +5,16 @@
# packet encryption, packet authentication, and
# packet encryption, packet authentication, and
# packet compression.
# packet compression.
#
#
# Copyright (C) 2002-20
18
OpenVPN Inc <sales@openvpn.net>
# Copyright (C) 2002-20
22
OpenVPN Inc <sales@openvpn.net>
# Copyright (C) 2006-2012 Alon Bar-Lev <alon.barlev@gmail.com>
# Copyright (C) 2006-2012 Alon Bar-Lev <alon.barlev@gmail.com>
#
#
MAINTAINERCLEANFILES
=
\
MAINTAINERCLEANFILES
=
\
$(srcdir)
/Makefile.in
$(srcdir)
/Makefile.in
DISTCLEANFILES
=
\
$(builddir)
/sample-plugins/Makefile
EXTRA_DIST
=
\
EXTRA_DIST
=
\
sample-plugins
\
sample-plugins
\
sample-config-files
\
sample-config-files
\
...
...
sample/Makefile.in
deleted
100644 → 0
View file @
e3856827
# Makefile.in generated by automake 1.16.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2018 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
#
# OpenVPN -- An application to securely tunnel IP networks
# over a single UDP port, with support for SSL/TLS-based
# session authentication and key exchange,
# packet encryption, packet authentication, and
# packet compression.
#
# Copyright (C) 2002-2018 OpenVPN Inc <sales@openvpn.net>
# Copyright (C) 2006-2012 Alon Bar-Lev <alon.barlev@gmail.com>
#
VPATH
=
@srcdir@
am__is_gnu_make
=
{
\
if
test
-z
'
$(MAKELEVEL)
'
;
then
\
false
;
\
elif
test
-n
'
$(MAKE_HOST)
'
;
then
\
true
;
\
elif
test
-n
'
$(MAKE_VERSION)
'
&&
test
-n
'
$(CURDIR)
'
;
then
\
true
;
\
else
\
false
;
\
fi
;
\
}
am__make_running_with_option
=
\
case
$
${
target_option
-
}
in
\
?
)
;;
\
*
)
echo
"am__make_running_with_option: internal error: invalid"
\
"target option '
$
${
target_option
-
}
' specified"
>
&2
;
\
exit
1
;;
\
esac
;
\
has_opt
=
no
;
\
sane_makeflags
=
$$
MAKEFLAGS
;
\
if
$(am__is_gnu_make)
;
then
\
sane_makeflags
=
$$
MFLAGS
;
\
else
\
case
$$
MAKEFLAGS
in
\
*
\\
[
\ \
]
*
)
\
bs
=
\\
;
\
sane_makeflags
=
`
printf
'%s\n'
"
$$
MAKEFLAGS"
\
|
sed
"s/
$$
bs
$$
bs[
$$
bs
$$
bs ]*//g"
`
;;
\
esac
;
\
fi
;
\
skip_next
=
no
;
\
strip_trailopt
()
\
{
\
flg
=
`
printf
'%s\n'
"
$$
flg"
|
sed
"s/
$$
1.*
$$
//"
`
;
\
}
;
\
for
flg
in
$$
sane_makeflags
;
do
\
test
$$
skip_next
=
yes
&&
{
skip_next
=
no
;
continue
;
}
;
\
case
$$
flg
in
\
*
=
*
|
--
*
)
continue
;;
\
-
*
I
)
strip_trailopt
'I'
;
skip_next
=
yes
;;
\
-
*
I?
*
)
strip_trailopt
'I'
;;
\
-
*
O
)
strip_trailopt
'O'
;
skip_next
=
yes
;;
\
-
*
O?
*
)
strip_trailopt
'O'
;;
\
-
*
l
)
strip_trailopt
'l'
;
skip_next
=
yes
;;
\
-
*
l?
*
)
strip_trailopt
'l'
;;
\
-[dEDm]
)
skip_next
=
yes
;;
\
-[JT]
)
skip_next
=
yes
;;
\
esac
;
\
case
$$
flg
in
\
*
$$
target_option
*
)
has_opt
=
yes
;
break
;;
\
esac
;
\
done
;
\
test
$$
has_opt
=
yes
am__make_dryrun
=
(
target_option
=
n
;
$(am__make_running_with_option)
)
am__make_keepgoing
=
(
target_option
=
k
;
$(am__make_running_with_option)
)
pkgdatadir
=
$(datadir)
/@PACKAGE@
pkgincludedir
=
$(includedir)
/@PACKAGE@
pkglibdir
=
$(libdir)
/@PACKAGE@
pkglibexecdir
=
$(libexecdir)
/@PACKAGE@
am__cd
=
CDPATH
=
"
$
${
ZSH_VERSION
+.
}
$(PATH_SEPARATOR)
"
&&
cd
install_sh_DATA
=
$(install_sh)
-c
-m
644
install_sh_PROGRAM
=
$(install_sh)
-c
install_sh_SCRIPT
=
$(install_sh)
-c
INSTALL_HEADER
=
$(INSTALL_DATA)
transform
=
$(program_transform_name)
NORMAL_INSTALL
=
:
PRE_INSTALL
=
:
POST_INSTALL
=
:
NORMAL_UNINSTALL
=
:
PRE_UNINSTALL
=
:
POST_UNINSTALL
=
:
build_triplet
=
@build@
host_triplet
=
@host@
subdir
=
sample
ACLOCAL_M4
=
$(top_srcdir)
/aclocal.m4
am__aclocal_m4_deps
=
$(top_srcdir)
/m4/ax_emptyarray.m4
\
$(top_srcdir)
/m4/ax_socklen_t.m4
\
$(top_srcdir)
/m4/ax_varargs.m4
$(top_srcdir)
/m4/libtool.m4
\
$(top_srcdir)
/m4/ltoptions.m4
$(top_srcdir)
/m4/ltsugar.m4
\
$(top_srcdir)
/m4/ltversion.m4
$(top_srcdir)
/m4/lt~obsolete.m4
\
$(top_srcdir)
/m4/pkg.m4
$(top_srcdir)
/version.m4
\
$(top_srcdir)
/compat.m4
$(top_srcdir)
/configure.ac
am__configure_deps
=
$(am__aclocal_m4_deps)
$(CONFIGURE_DEPENDENCIES)
\
$(ACLOCAL_M4)
DIST_COMMON
=
$(srcdir)
/Makefile.am
$(am__DIST_COMMON)
mkinstalldirs
=
$(install_sh)
-d
CONFIG_HEADER
=
$(top_builddir)
/config.h
\
$(top_builddir)
/include/openvpn-plugin.h
CONFIG_CLEAN_FILES
=
CONFIG_CLEAN_VPATH_FILES
=
AM_V_P
=
$
(
am__v_P_@AM_V@
)
am__v_P_
=
$
(
am__v_P_@AM_DEFAULT_V@
)
am__v_P_0
=
false
am__v_P_1
=
:
AM_V_GEN
=
$
(
am__v_GEN_@AM_V@
)
am__v_GEN_
=
$
(
am__v_GEN_@AM_DEFAULT_V@
)
am__v_GEN_0
=
@echo
" GEN "
$@
;
am__v_GEN_1
=
AM_V_at
=
$
(
am__v_at_@AM_V@
)
am__v_at_
=
$
(
am__v_at_@AM_DEFAULT_V@
)
am__v_at_0
=
@
am__v_at_1
=
SOURCES
=
DIST_SOURCES
=
am__can_run_installinfo
=
\
case
$$
AM_UPDATE_INFO_DIR
in
\
n|no|NO
)
false
;;
\
*
)
(
install-info
--version
)
>
/dev/null 2>&1
;;
\
esac
am__vpath_adj_setup
=
srcdirstrip
=
`
echo
"
$(srcdir)
"
|
sed
's|.|.|g'
`
;
am__vpath_adj
=
case
$$
p
in
\
$(srcdir)
/
*
)
f
=
`
echo
"
$$
p"
|
sed
"s|^
$$
srcdirstrip/||"
`
;;
\
*
)
f
=
$$
p
;;
\
esac
;
am__strip_dir
=
f
=
`
echo
$$
p |
sed
-e
's|^.*/||'
`
;
am__install_max
=
40
am__nobase_strip_setup
=
\
srcdirstrip
=
`
echo
"
$(srcdir)
"
|
sed
's/[].[^$$\\*|]/\\\\&/g'
`
am__nobase_strip
=
\
for
p
in
$$
list
;
do
echo
"
$$
p"
;
done
|
sed
-e
"s|
$$
srcdirstrip/||"
am__nobase_list
=
$(am__nobase_strip_setup)
;
\
for
p
in
$$
list
;
do
echo
"
$$
p
$$
p"
;
done
|
\
sed
"s|
$$
srcdirstrip/| |;"
' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,'
|
\
$(AWK)
'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] ==
$(am__install_max)
) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list
=
\
sed
'$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
\
sed
'$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir
=
{
\
test
-z
"
$$
files"
\
||
{
test
!
-d
"
$$
dir"
&&
test
!
-f
"
$$
dir"
&&
test
!
-r
"
$$
dir"
;
}
\
||
{
echo
" ( cd '
$$
dir' && rm -f"
$$
files
")"
;
\
$(am__cd)
"
$$
dir"
&&
rm
-f
$$
files
;
}
;
\
}
am__installdirs
=
"
$(DESTDIR)$(sampledir)
"
DATA
=
$(sample_DATA)
am__tagged_files
=
$(HEADERS)
$(SOURCES)
$(TAGS_FILES)
$(LISP)
am__DIST_COMMON
=
$(srcdir)
/Makefile.in
DISTFILES
=
$(DIST_COMMON)
$(DIST_SOURCES)
$(TEXINFOS)
$(EXTRA_DIST)
ACLOCAL
=
@ACLOCAL@
AMTAR
=
@AMTAR@
AM_DEFAULT_VERBOSITY
=
@AM_DEFAULT_VERBOSITY@
AR
=
@AR@
AS
=
@AS@
AUTOCONF
=
@AUTOCONF@
AUTOHEADER
=
@AUTOHEADER@
AUTOMAKE
=
@AUTOMAKE@
AWK
=
@AWK@
CC
=
@CC@
CCDEPMODE
=
@CCDEPMODE@
CFLAGS
=
@CFLAGS@
CMAKE
=
@CMAKE@
CPP
=
@CPP@
CPPFLAGS
=
@CPPFLAGS@
CYGPATH_W
=
@CYGPATH_W@
DEFS
=
@DEFS@
DEPDIR
=
@DEPDIR@
DLLTOOL
=
@DLLTOOL@
DL_LIBS
=
@DL_LIBS@
DSYMUTIL
=
@DSYMUTIL@
DUMPBIN
=
@DUMPBIN@
ECHO_C
=
@ECHO_C@
ECHO_N
=
@ECHO_N@
ECHO_T
=
@ECHO_T@
EGREP
=
@EGREP@
EXEEXT
=
@EXEEXT@
FGREP
=
@FGREP@
GIT
=
@GIT@
GREP
=
@GREP@
IFCONFIG
=
@IFCONFIG@
INSTALL
=
@INSTALL@
INSTALL_DAT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_CFLAGS
=
@OPTIONAL_INOTIFY_CFLAGS@
OPTIONAL_INOTIFY_LIBS
=
@OPTIONAL_INOTIFY_LIBS@
OPTIONAL_LZ4_CFLAGS
=
@OPTIONAL_LZ4_CFLAGS@
OPTIONAL_LZ4_LIBS
=
@OPTIONAL_LZ4_LIBS@
OPTIONAL_LZO_CFLAGS
=
@OPTIONAL_LZO_CFLAGS@
OPTIONAL_LZO_LIBS
=
@OPTIONAL_LZO_LIBS@
OPTIONAL_PKCS11_HELPER_CFLAGS
=
@OPTIONAL_PKCS11_HELPER_CFLAGS@
OPTIONAL_PKCS11_HELPER_LIBS
=
@OPTIONAL_PKCS11_HELPER_LIBS@
OPTIONAL_SELINUX_LIBS
=
@OPTIONAL_SELINUX_LIBS@
OPTIONAL_SYSTEMD_LIBS
=
@OPTIONAL_SYSTEMD_LIBS@
OTOOL
=
@OTOOL@
OTOOL64
=
@OTOOL64@
P11KIT_CFLAGS
=
@P11KIT_CFLAGS@
P11KIT_LIBS
=
@P11KIT_LIBS@
PACKAGE
=
@PACKAGE@
PACKAGE_BUGREPORT
=
@PACKAGE_BUGREPORT@
PACKAGE_NAME
=
@PACKAGE_NAME@
PACKAGE_STRING
=
@PACKAGE_STRING@
PACKAGE_TARNAME
=
@PACKAGE_TARNAME@
PACKAGE_URL
=
@PACKAGE_URL@
PACKAGE_VERSION
=
@PACKAGE_VERSION@
PATH_SEPARATOR
=
@PATH_SEPARATOR@
PKCS11_HELPER_CFLAGS
=
@PKCS11_HELPER_CFLAGS@
PKCS11_HELPER_LIBS
=
@PKCS11_HELPER_LIBS@
PKG_CONFIG
=
@PKG_CONFIG@
PKG_CONFIG_LIBDIR
=
@PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH
=
@PKG_CONFIG_PATH@
PLUGINDIR
=
@PLUGINDIR@
PLUGIN_AUTH_PAM_CFLAGS
=
@PLUGIN_AUTH_PAM_CFLAGS@
PLUGIN_AUTH_PAM_LIBS
=
@PLUGIN_AUTH_PAM_LIBS@
RANLIB
=
@RANLIB@
RC
=
@RC@
ROUTE
=
@ROUTE@
SED
=
@SED@
SELINUX_LIBS
=
@SELINUX_LIBS@
SET_MAKE
=
@SET_MAKE@
SHELL
=
@SHELL@
SOCKETS_LIBS
=
@SOCKETS_LIBS@
STRIP
=
@STRIP@
SYSTEMD_ASK_PASSWORD
=
@SYSTEMD_ASK_PASSWORD@
SYSTEMD_UNIT_DIR
=
@SYSTEMD_UNIT_DIR@
TAP_CFLAGS
=
@TAP_CFLAGS@
TAP_WIN_COMPONENT_ID
=
@TAP_WIN_COMPONENT_ID@
TAP_WIN_MIN_MAJOR
=
@TAP_WIN_MIN_MAJOR@
TAP_WIN_MIN_MINOR
=
@TAP_WIN_MIN_MINOR@
TEST_CFLAGS
=
@TEST_CFLAGS@
TEST_LDFLAGS
=
@TEST_LDFLAGS@
TMPFILES_DIR
=
@TMPFILES_DIR@
VERSION
=
@VERSION@
abs_builddir
=
@abs_builddir@
abs_srcdir
=
@abs_srcdir@
abs_top_builddir
=
@abs_top_builddir@
abs_top_srcdir
=
@abs_top_srcdir@
ac_ct_AR
=
@ac_ct_AR@
ac_ct_CC
=
@ac_ct_CC@
ac_ct_DUMPBIN
=
@ac_ct_DUMPBIN@
am__include
=
@am__include@
am__leading_dot
=
@am__leading_dot@
am__quote
=
@am__quote@
am__tar
=
@am__tar@
am__untar
=
@am__untar@
bindir
=
@bindir@
build
=
@build@
build_alias
=
@build_alias@
build_cpu
=
@build_cpu@
build_os
=
@build_os@
build_vendor
=
@build_vendor@
builddir
=
@builddir@
datadir
=
@datadir@
datarootdir
=
@datarootdir@
docdir
=
@docdir@
dvidir
=
@dvidir@
exec_prefix
=
@exec_prefix@
host
=
@host@
host_alias
=
@host_alias@
host_cpu
=
@host_cpu@
host_os
=
@host_os@
host_vendor
=
@host_vendor@
htmldir
=
@htmldir@
includedir
=
@includedir@
infodir
=
@infodir@
install_sh
=
@install_sh@
libdir
=
@libdir@
libexecdir
=
@libexecdir@
libsystemd_CFLAGS
=
@libsystemd_CFLAGS@
libsystemd_LIBS
=
@libsystemd_LIBS@
localedir
=
@localedir@
localstatedir
=
@localstatedir@
mandir
=
@mandir@
mkdir_p
=
@mkdir_p@
oldincludedir
=
@oldincludedir@
pdfdir
=
@pdfdir@
plugindir
=
@plugindir@
prefix
=
@prefix@
program_transform_name
=
@program_transform_name@
psdir
=
@psdir@
sampledir
=
@sampledir@
sbindir
=
@sbindir@
sharedstatedir
=
@sharedstatedir@
srcdir
=
@srcdir@
sysconfdir
=
@sysconfdir@
systemdunitdir
=
@systemdunitdir@
target_alias
=
@target_alias@
tmpfilesdir
=
@tmpfilesdir@
top_build_prefix
=
@top_build_prefix@
top_builddir
=
@top_builddir@
top_srcdir
=
@top_srcdir@
MAINTAINERCLEANFILES
=
\
$(srcdir)
/Makefile.in
EXTRA_DIST
=
\
sample-plugins
\
sample-config-files
\
sample-windows
\
sample-keys
\
sample-scripts
@WIN32_TRUE@
sample_DATA
=
\
@WIN32_TRUE@ client.ovpn
\
@WIN32_TRUE@ server.ovpn
\
@WIN32_TRUE@ sample-windows/sample.ovpn
all
:
all-am
.SUFFIXES
:
$(srcdir)/Makefile.in
:
$(srcdir)/Makefile.am $(am__configure_deps)
@
for
dep
in
$?
;
do
\
case
'
$(am__configure_deps)
'
in
\
*
$$
dep
*
)
\
(
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
)
\
&&
{
if
test
-f
$@
;
then
exit
0
;
else
break
;
fi
;
}
;
\
exit
1
;;
\
esac
;
\
done
;
\
echo
' cd
$(top_srcdir)
&&
$(AUTOMAKE)
--foreign sample/Makefile'
;
\
$(am__cd)
$(top_srcdir)
&&
\
$(AUTOMAKE)
--foreign
sample/Makefile
Makefile
:
$(srcdir)/Makefile.in $(top_builddir)/config.status
@
case
'$?'
in
\
*
config.status
*
)
\
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
;;
\
*
)
\
echo
' cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/$@
$(am__maybe_remake_depfiles)
'
;
\
cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/
$@
$(am__maybe_remake_depfiles)
;;
\
esac
;
$(top_builddir)/config.status
:
$(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
$(top_srcdir)/configure
:
$(am__configure_deps)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
$(ACLOCAL_M4)
:
$(am__aclocal_m4_deps)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
$(am__aclocal_m4_deps)
:
mostlyclean-libtool
:
-
rm
-f
*
.lo
clean-libtool
:
-
rm
-rf
.libs _libs
install-sampleDATA
:
$(sample_DATA)
@
$(NORMAL_INSTALL)
@
list
=
'
$(sample_DATA)
'
;
test
-n
"
$(sampledir)
"
||
list
=
;
\
if
test
-n
"
$$
list"
;
then
\
echo
"
$(MKDIR_P)
'
$(DESTDIR)$(sampledir)
'"
;
\
$(MKDIR_P)
"
$(DESTDIR)$(sampledir)
"
||
exit
1
;
\
fi
;
\
for
p
in
$$
list
;
do
\
if
test
-f
"
$$
p"
;
then
d
=
;
else
d
=
"
$(srcdir)
/"
;
fi
;
\
echo
"
$$
d
$$
p"
;
\
done
|
$(am__base_list)
|
\
while
read
files
;
do
\
echo
"
$(INSTALL_DATA)
$$
files '
$(DESTDIR)$(sampledir)
'"
;
\
$(INSTALL_DATA)
$$
files
"
$(DESTDIR)$(sampledir)
"
||
exit
$$
?
;
\
done
uninstall-sampleDATA
:
@
$(NORMAL_UNINSTALL)
@
list
=
'
$(sample_DATA)
'
;
test
-n
"
$(sampledir)
"
||
list
=
;
\
files
=
`
for
p
in
$$
list
;
do
echo
$$
p
;
done
|
sed
-e
's|^.*/||'
`
;
\
dir
=
'
$(DESTDIR)$(sampledir)
'
;
$(am__uninstall_files_from_dir)
tags TAGS
:
ctags CTAGS
:
cscope cscopelist
:
distdir
:
$(BUILT_SOURCES)
$(MAKE)
$(AM_MAKEFLAGS)
distdir-am
distdir-am
:
$(DISTFILES)
@
srcdirstrip
=
`
echo
"
$(srcdir)
"
|
sed
's/[].[^$$\\*]/\\\\&/g'
`
;
\
topsrcdirstrip
=
`
echo
"
$(top_srcdir)
"
|
sed
's/[].[^$$\\*]/\\\\&/g'
`
;
\
list
=
'
$(DISTFILES)
'
;
\
dist_files
=
`
for
file
in
$$
list
;
do
echo
$$
file
;
done
|
\
sed
-e
"s|^
$$
srcdirstrip/||;t"
\
-e
"s|^
$$
topsrcdirstrip/|
$(top_builddir)
/|;t"
`
;
\
case
$$
dist_files
in
\
*
/
*
)
$(MKDIR_P)
`
echo
"
$$
dist_files"
|
\
sed
'/\//!d;s|^|
$(distdir)
/|;s,/[^/]*$$,,'
|
\
sort
-u
`
;;
\
esac
;
\
for
file
in
$$
dist_files
;
do
\
if
test
-f
$$
file
||
test
-d
$$
file
;
then
d
=
.
;
else
d
=
$(srcdir)
;
fi
;
\
if
test
-d
$$
d/
$$
file
;
then
\
dir
=
`
echo
"/
$$
file"
|
sed
-e
's,/[^/]*$$,,'
`
;
\
if
test
-d
"
$(distdir)
/
$$
file"
;
then
\
find
"
$(distdir)
/
$$
file"
-type
d
!
-perm
-700
-exec
chmod
u+rwx
{}
\;
;
\
fi
;
\
if
test
-d
$(srcdir)
/
$$
file
&&
test
$$
d
!=
$(srcdir)
;
then
\
cp
-fpR
$(srcdir)
/
$$
file
"
$(distdir)$$
dir"
||
exit
1
;
\
find
"
$(distdir)
/
$$
file"
-type
d
!
-perm
-700
-exec
chmod
u+rwx
{}
\;
;
\
fi
;
\
cp
-fpR
$$
d/
$$
file
"
$(distdir)$$
dir"
||
exit
1
;
\
else
\
test
-f
"
$(distdir)
/
$$
file"
\
||
cp
-p
$$
d/
$$
file
"
$(distdir)
/
$$
file"
\
||
exit
1
;
\
fi
;
\
done
check-am
:
all-am
check
:
check-am
all-am
:
Makefile $(DATA)
installdirs
:
for
dir
in
"
$(DESTDIR)$(sampledir)
"
;
do
\
test
-z
"
$$
dir"
||
$(MKDIR_P)
"
$$
dir"
;
\
done
install
:
install-am
install-exec
:
install-exec-am
install-data
:
install-data-am
uninstall
:
uninstall-am
install-am
:
all-am
@
$(MAKE)
$(AM_MAKEFLAGS)
install-exec-am install-data-am
installcheck
:
installcheck-am
install-strip
:
if
test
-z
'
$(STRIP)
'
;
then
\
$(MAKE)
$(AM_MAKEFLAGS)
INSTALL_PROGRAM
=
"
$(INSTALL_STRIP_PROGRAM)
"
\
install_sh_PROGRAM
=
"
$(INSTALL_STRIP_PROGRAM)
"
INSTALL_STRIP_FLAG
=
-s
\
install
;
\
else
\
$(MAKE)
$(AM_MAKEFLAGS)
INSTALL_PROGRAM
=
"
$(INSTALL_STRIP_PROGRAM)
"
\
install_sh_PROGRAM
=
"
$(INSTALL_STRIP_PROGRAM)
"
INSTALL_STRIP_FLAG
=
-s
\
"INSTALL_PROGRAM_ENV=STRIPPROG='
$(STRIP)
'"
install
;
\
fi
mostlyclean-generic
:
clean-generic
:
distclean-generic
:
-
test
-z
"
$(CONFIG_CLEAN_FILES)
"
||
rm
-f
$(CONFIG_CLEAN_FILES)
-
test
.
=
"
$(srcdir)
"
||
test
-z
"
$(CONFIG_CLEAN_VPATH_FILES)
"
||
rm
-f
$(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic
:
@
echo
"This command is intended for maintainers to use"
@
echo
"it deletes files that may require special tools to rebuild."
-
test
-z
"
$(MAINTAINERCLEANFILES)
"
||
rm
-f
$(MAINTAINERCLEANFILES)
clean
:
clean-am
clean-am
:
clean-generic clean-libtool mostlyclean-am
distclean
:
distclean-am
-
rm
-f
Makefile
distclean-am
:
clean-am distclean-generic
dvi
:
dvi-am
dvi-am
:
html
:
html-am
html-am
:
info
:
info-am
info-am
:
install-data-am
:
install-sampleDATA
install-dvi
:
install-dvi-am
install-dvi-am
:
install-exec-am
:
install-html
:
install-html-am
install-html-am
:
install-info
:
install-info-am
install-info-am
:
install-man
:
install-pdf
:
install-pdf-am
install-pdf-am
:
install-ps
:
install-ps-am
install-ps-am
:
installcheck-am
:
maintainer-clean
:
maintainer-clean-am
-
rm
-f
Makefile
maintainer-clean-am
:
distclean-am maintainer-clean-generic
mostlyclean
:
mostlyclean-am
mostlyclean-am
:
mostlyclean-generic mostlyclean-libtool
pdf
:
pdf-am
pdf-am
:
ps
:
ps-am
ps-am
:
uninstall-am
:
uninstall-sampleDATA
.MAKE
:
install-am install-strip
.PHONY
:
all all-am check check-am clean clean-generic clean-libtool
\
cscopelist-am ctags-am distclean distclean-generic
\
distclean-libtool distdir dvi dvi-am html html-am info info-am
\
install install-am install-data install-data-am install-dvi
\
install-dvi-am install-exec install-exec-am install-html
\
install-html-am install-info install-info-am install-man
\
install-pdf install-pdf-am install-ps install-ps-am
\
install-sampleDATA install-strip installcheck installcheck-am
\
installdirs maintainer-clean maintainer-clean-generic
\
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am
\
ps ps-am tags-am uninstall uninstall-am uninstall-sampleDATA
.PRECIOUS
:
Makefile
@WIN32_TRUE@client.ovpn
:
sample-config-files/client.conf
@WIN32_TRUE@
-rm
-f
client.ovpn
@WIN32_TRUE@
cp
"$(srcdir)/sample-config-files/client.conf"
client.ovpn
@WIN32_TRUE@server.ovpn
:
sample-config-files/server.conf
@WIN32_TRUE@
-rm
-f
server.ovpn
@WIN32_TRUE@
cp
"$(srcdir)/sample-config-files/server.conf"
server.ovpn
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT
:
sample/sample-config-files/client.conf
View file @
e1e1377b
...
@@ -90,7 +90,7 @@ cert client.crt
...
@@ -90,7 +90,7 @@ cert client.crt
key
client
.
key
key
client
.
key
# Verify server certificate by checking that the
# Verify server certificate by checking that the
# certicate has the correct key usage set.
# certi
fi
cate has the correct key usage set.
# This is an important precaution to protect against
# This is an important precaution to protect against
# a potential attack discussed here:
# a potential attack discussed here:
# http://openvpn.net/howto.html#mitm
# http://openvpn.net/howto.html#mitm
...
@@ -112,7 +112,7 @@ tls-auth ta.key 1
...
@@ -112,7 +112,7 @@ tls-auth ta.key 1
# then you must also specify it here.
# then you must also specify it here.
# Note that v2.4 client/server will automatically
# Note that v2.4 client/server will automatically
# negotiate AES-256-GCM in TLS mode.
# negotiate AES-256-GCM in TLS mode.
# See also the
ncp
-cipher option in the manpage
# See also the
data
-cipher
s
option in the manpage
cipher
AES
-
256
-
CBC
cipher
AES
-
256
-
CBC
# Enable compression on the VPN link.
# Enable compression on the VPN link.
...
...
sample/sample-config-files/firewall.sh
View file @
e1e1377b
...
@@ -50,7 +50,7 @@ iptables -A OUTPUT -p tcp --sport 137:139 -o eth0 -j DROP
...
@@ -50,7 +50,7 @@ iptables -A OUTPUT -p tcp --sport 137:139 -o eth0 -j DROP
iptables
-A
OUTPUT
-p
udp
--sport
137:139
-o
eth0
-j
DROP
iptables
-A
OUTPUT
-p
udp
--sport
137:139
-o
eth0
-j
DROP
# Check source address validity on packets going out to internet
# Check source address validity on packets going out to internet
iptables
-A
FORWARD
-s
!
$PRIVATE
-i
eth1
-j
DROP
iptables
-A
FORWARD
!
-s
$PRIVATE
-i
eth1
-j
DROP
# Allow local loopback
# Allow local loopback
iptables
-A
INPUT
-s
$LOOP
-j
ACCEPT
iptables
-A
INPUT
-s
$LOOP
-j
ACCEPT
...
...
sample/sample-config-files/loopback-client
View file @
e1e1377b
...
@@ -8,6 +8,9 @@
...
@@ -8,6 +8,9 @@
#
#
# ./openvpn --config sample-config-files/loopback-client (In one window)
# ./openvpn --config sample-config-files/loopback-client (In one window)
# ./openvpn --config sample-config-files/loopback-server (Simultaneously in another window)
# ./openvpn --config sample-config-files/loopback-server (Simultaneously in another window)
#
# this config file has the crypto material (cert, key, ..) "inlined",
# while the "server" config has it as external reference - test both paths
rport 16000
rport 16000
lport 16001
lport 16001
...
@@ -18,9 +21,206 @@ verb 3
...
@@ -18,9 +21,206 @@ verb 3
reneg-sec 10
reneg-sec 10
tls-client
tls-client
remote-cert-tls server
remote-cert-tls server
ca sample-keys/ca.crt
#ca sample-keys/ca.crt
key sample-keys/client.key
<ca>
cert sample-keys/client.crt
-----BEGIN CERTIFICATE-----
tls-auth sample-keys/ta.key 1
MIIGKDCCBBCgAwIBAgIJAKFO3vqQ8q6BMA0GCSqGSIb3DQEBCwUAMGYxCzAJBgNV
BAYTAktHMQswCQYDVQQIEwJOQTEQMA4GA1UEBxMHQklTSEtFSzEVMBMGA1UEChMM
T3BlblZQTi1URVNUMSEwHwYJKoZIhvcNAQkBFhJtZUBteWhvc3QubXlkb21haW4w
HhcNMTQxMDIyMjE1OTUyWhcNMjQxMDE5MjE1OTUyWjBmMQswCQYDVQQGEwJLRzEL
MAkGA1UECBMCTkExEDAOBgNVBAcTB0JJU0hLRUsxFTATBgNVBAoTDE9wZW5WUE4t
VEVTVDEhMB8GCSqGSIb3DQEJARYSbWVAbXlob3N0Lm15ZG9tYWluMIICIjANBgkq
hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsJVPCqt3vtoDW2U0DII1QIh2Qs0dqh88
8nivxAIm2LTq93e9fJhsq3P/UVYAYSeCIrekXypR0EQgSgcNTvGBMe20BoHO5yvb
GjKPmjfLj6XRotCOGy8EDl/hLgRY9efiA8wsVfuvF2q/FblyJQPR/gPiDtTmUiqF
qXa7AJmMrqFsnWppOuGd7Qc6aTsae4TF1e/gUTCTraa7NeHowDaKhdyFmEEnCYR5
CeUsx2JlFWAH8PCrxBpHYbmGyvS0kH3+rQkaSM/Pzc2bS4ayHaOYRK5XsGq8XiNG
KTTLnSaCdPeHsI+3xMHmEh+u5Og2DFGgvyD22gde6W2ezvEKCUDrzR7bsnYqqyUy
n7LxnkPXGyvR52T06G8KzLKQRmDlPIXhzKMO07qkHmIonXTdF7YI1azwHpAtN4dS
rUe1bvjiTSoE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Vp4JJwj3GUoehFJoFhsxnKr8HZyLwBKlCmUVm
VxnshRWiAU18emUmeAtSGawlAS3QXhikVZDdd/L20YusLT+DXV81wlKR97/r9+17
klQOLkSdPm9wcMDOWMNHX8bUg8kCgYEA8k+hQv6+TR/+Beao2IIctFtw/EauaJiJ
wW5ql1cpCLPMAOQUvjs0Km3zqctfBF8mUjdkcyJ4uhL9FZtfywY22EtRIXOJ/8VR
we65mVo6RLR8YVM54sihanuFOnlyF9LIBWB+9pUfh1/Y7DSebh7W73uxhAxQhi3Y
QwfIQIFd8OkCgYBalH4VXhLYhpaYCiXSej6ot6rrK2N6c5Tb2MAWMA1nh+r84tMP
gMoh+pDgYPAqMI4mQbxUmqZEeoLuBe6VHpDav7rPECRaW781AJ4ZM4cEQ3Jz/inz
4qOAMn10CF081/Ez9ykPPlU0bsYNWHNd4eB2xWnmUBKOwk7UgJatVPaUiQKBgQCI
f18CVGpzG9CHFnaK8FCnMNOm6VIaTcNcGY0mD81nv5Dt943P054BQMsAHTY7SjZW
HioRyZtkhonXAB2oSqnekh7zzxgv4sG5k3ct8evdBCcE1FNJc2eqikZ0uDETRoOy
s7cRxNNr+QxDkyikM+80HOPU1PMPgwfOSrX90GJQ8QKBgEBKohGMV/sNa4t14Iau
qO8aagoqh/68K9GFXljsl3/iCSa964HIEREtW09Qz1w3dotEgp2w8bsDa+OwWrLy
0SY7T5jRViM3cDWRlUBLrGGiL0FiwsfqiRiji60y19erJgrgyGVIb1kIgIBRkgFM
2MMweASzTmZcri4PA/5C0HYb
-----END PRIVATE KEY-----
</key>
#cert sample-keys/client.crt
<cert>
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=KG, ST=NA, L=BISHKEK, O=OpenVPN-TEST/emailAddress=me@myhost.mydomain
Validity
Not Before: Oct 22 21:59:53 2014 GMT
Not After : Oct 19 21:59:53 2024 GMT
Subject: C=KG, ST=NA, O=OpenVPN-TEST, CN=Test-Client/emailAddress=me@myhost.mydomain
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (2048 bit)
Modulus:
00:ec:65:8f:e9:12:c2:1a:5b:e6:56:2a:08:a9:82:
3a:2d:44:78:a3:00:3b:b0:9f:e7:27:10:40:93:ef:
f1:cc:3e:a0:aa:04:a2:80:1b:13:a9:e6:fe:81:d6:
70:90:a8:d8:d4:de:30:d8:35:00:d2:be:62:f0:48:
da:fc:15:8d:c4:c6:6d:0b:99:f1:2b:83:00:0a:d3:
2a:23:0b:e5:cd:f9:35:df:43:61:15:72:ad:95:98:
f6:73:21:41:5e:a0:dd:47:27:a0:d5:9a:d4:41:a8:
1c:1d:57:20:71:17:8f:f7:28:9e:3e:07:ce:ec:d5:
0e:42:4f:1e:74:47:8e:47:9d:d2:14:28:27:2c:14:
10:f5:d1:96:b5:93:74:84:ef:f9:04:de:8d:4a:6f:
df:77:ab:ea:d1:58:d3:44:fe:5a:04:01:ff:06:7a:
97:f7:fd:e3:57:48:e1:f0:df:40:13:9f:66:23:5a:
e3:55:54:3d:54:39:ee:00:f9:12:f1:d2:df:74:2e:
ba:d7:f0:8d:c6:dd:18:58:1c:93:22:0b:75:fa:a8:
d6:e0:b5:2f:2d:b9:d4:fe:b9:4f:86:e2:75:48:16:
60:fb:3f:c9:b4:30:42:29:fb:3b:b3:2b:b9:59:81:
6a:46:f3:45:83:bf:fd:d5:1a:ff:37:0c:6f:5b:fd:
61:f1
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
X509v3 Subject Key Identifier:
D2:B4:36:0F:B1:FC:DD:A5:EA:2A:F7:C7:23:89:FA:E3:FA:7A:44:1D
X509v3 Authority Key Identifier:
keyid:2B:40:E5:C9:7D:F5:F4:96:38:E9:2F:E3:2F:D9:40:64:C9:8E:05:9B
DirName:/C=KG/ST=NA/L=BISHKEK/O=OpenVPN-TEST/emailAddress=me@myhost.mydomain
serial:A1:4E:DE:FA:90:F2:AE:81
Signature Algorithm: sha256WithRSAEncryption
7f:e0:fe:84:a7:ec:df:62:a5:cd:3c:c1:e6:42:b1:31:12:f0:
b9:da:a7:9e:3f:bd:96:52:b6:fc:55:74:64:3e:e4:ff:7e:aa:
f7:3e:06:18:5f:73:85:f8:c8:e0:67:1b:4d:97:ca:05:d0:37:
07:33:64:9b:e6:78:77:14:9a:55:bb:2a:ac:c3:7f:c9:15:08:
83:5c:c8:c2:61:d3:71:4c:05:0b:2b:cb:a3:87:6d:a0:32:ed:
b0:b3:27:97:4a:55:8d:01:2a:30:56:68:ab:f2:da:5c:10:73:
c9:aa:0a:9c:4b:4c:a0:5b:51:6e:0a:7e:6c:53:80:b0:00:e1:
1e:9a:4c:0a:37:9e:20:89:bc:c5:e5:79:58:b7:45:ff:d3:c4:
a1:fd:d9:78:3d:45:16:74:df:82:44:1d:1d:81:50:5a:b9:32:
4c:e2:4f:3f:0e:3a:65:5a:64:83:3b:29:31:c4:99:88:bc:c5:
84:39:f2:19:12:e1:66:d0:ea:fb:75:b1:d2:27:be:91:59:a3:
2b:09:d5:5c:bf:46:8e:d6:67:d6:0b:ec:da:ab:f0:80:19:87:
64:07:a9:77:b1:5e:0c:e2:c5:1d:6a:ac:5d:23:f3:30:75:36:
4e:ca:c3:4e:b0:4d:8c:2c:ce:52:61:63:de:d5:f5:ef:ef:0a:
6b:23:25:26:3c:3a:f2:c3:c2:16:19:3f:a9:32:ba:68:f9:c9:
12:3c:3e:c6:1f:ff:9b:4e:f4:90:b0:63:f5:d1:33:00:30:5a:
e8:24:fa:35:44:9b:6a:80:f3:a6:cc:7b:3c:73:5f:50:c4:30:
71:d8:74:90:27:0a:01:4e:a5:5e:b1:f8:da:c2:61:81:11:ae:
29:a3:8f:fa:7e:4c:4e:62:b1:00:de:92:e3:8f:6a:2e:da:d9:
38:5d:6b:7c:0d:e4:01:aa:c8:c6:6d:8b:cd:c0:c8:6e:e4:57:
21:8a:f6:46:30:d9:ad:51:a1:87:96:a6:53:c9:1e:c6:b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ZNnb0WErJBsdRET7STCHt0kj
CAKK4CXz9EM=
-----END CERTIFICATE-----
</cert>
#tls-auth sample-keys/ta.key 1
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
a863b1cbdb911ff4ef3360ce135157e7
241a465f5045f51cf9a92ebc24da34fd
5fc48456778c977e374d55a8a7298aef
40d0ab0c60b5e09838510526b73473a0
8da46a8c352572dd86d4a871700a915b
6aaa58a9dac560db2dfdd7ef15a202e1
fca6913d7ee79c678c5798fbf7bd920c
caa7a64720908da7254598b052d07f55
5e31dc5721932cffbdd8965d04107415
46c86823da18b66aab347e4522cc05ff
634968889209c96b1024909cd4ce574c
f829aa9c17d5df4a66043182ee23635d
8cabf5a7ba02345ad94a3aa25a63d55c
e13f4ad235a0825e3fe17f9419baff1c
e73ad1dd652f1e48c7102fe8ee181e54
10a160ae255f63fd01db1f29e6efcb8e
-----END OpenVPN Static key V1-----
</tls-auth>
cipher AES-256-GCM
ping 1
ping 1
inactive 120 10000000
inactive 120 10000000
sample/sample-config-files/loopback-server
View file @
e1e1377b
...
@@ -22,5 +22,6 @@ ca sample-keys/ca.crt
...
@@ -22,5 +22,6 @@ ca sample-keys/ca.crt
key sample-keys/server.key
key sample-keys/server.key
cert sample-keys/server.crt
cert sample-keys/server.crt
tls-auth sample-keys/ta.key 0
tls-auth sample-keys/ta.key 0
cipher AES-256-GCM
ping 1
ping 1
inactive 120 10000000
inactive 120 10000000
sample/sample-config-files/server.conf
View file @
e1e1377b
...
@@ -235,7 +235,7 @@ keepalive 10 120
...
@@ -235,7 +235,7 @@ keepalive 10 120
# to help block DoS attacks and UDP port flooding.
# to help block DoS attacks and UDP port flooding.
#
#
# Generate with:
# Generate with:
# openvpn --genkey
--secret
ta.key
# openvpn --genkey
tls-auth
ta.key
#
#
# The server and each client must have
# The server and each client must have
# a copy of this key.
# a copy of this key.
...
...
sample/sample-config-files/static-home.conf
deleted
100644 → 0
View file @
e3856827
#
# Sample OpenVPN configuration file for
# home using a pre-shared static key.
#
# '#' or ';' may be used to delimit comments.
# Use a dynamic tun device.
# For Linux 2.2 or non-Linux OSes,
# you may want to use an explicit
# unit number such as "tun1".
# OpenVPN also supports virtual
# ethernet "tap" devices.
dev
tun
# Our OpenVPN peer is the office gateway.
remote
1
.
2
.
3
.
4
# 10.1.0.2 is our local VPN endpoint (home).
# 10.1.0.1 is our remote VPN endpoint (office).
ifconfig
10
.
1
.
0
.
2
10
.
1
.
0
.
1
# Our up script will establish routes
# once the VPN is alive.
up
./
home
.
up
# Our pre-shared static key
secret
static
.
key
# Cipher to use
cipher
AES
-
256
-
CBC
# OpenVPN 2.0 uses UDP port 1194 by default
# (official port assignment by iana.org 11/04).
# OpenVPN 1.x uses UDP port 5000 by default.
# Each OpenVPN tunnel must use
# a different port number.
# lport or rport can be used
# to denote different ports
# for local and remote.
;
port
1194
# Downgrade UID and GID to
# "nobody" after initialization
# for extra security.
;
user
nobody
;
group
nobody
# If you built OpenVPN with
# LZO compression, uncomment
# out the following line.
;
comp
-
lzo
# Send a UDP ping to remote once
# every 15 seconds to keep
# stateful firewall connection
# alive. Uncomment this
# out if you are using a stateful
# firewall.
;
ping
15
# Uncomment this section for a more reliable detection when a system
# loses its connection. For example, dial-ups or laptops that
# travel to other locations.
;
ping
15
;
ping
-
restart
45
;
ping
-
timer
-
rem
;
persist
-
tun
;
persist
-
key
# Verbosity level.
# 0 -- quiet except for fatal errors.
# 1 -- mostly quiet, but display non-fatal network errors.
# 3 -- medium output, good for normal operation.
# 9 -- verbose, good for troubleshooting
verb
3
sample/sample-config-files/static-office.conf
deleted
100644 → 0
View file @
e3856827
#
# Sample OpenVPN configuration file for
# office using a pre-shared static key.
#
# '#' or ';' may be used to delimit comments.
# Use a dynamic tun device.
# For Linux 2.2 or non-Linux OSes,
# you may want to use an explicit
# unit number such as "tun1".
# OpenVPN also supports virtual
# ethernet "tap" devices.
dev
tun
# 10.1.0.1 is our local VPN endpoint (office).
# 10.1.0.2 is our remote VPN endpoint (home).
ifconfig
10
.
1
.
0
.
1
10
.
1
.
0
.
2
# Our up script will establish routes
# once the VPN is alive.
up
./
office
.
up
# Our pre-shared static key
secret
static
.
key
# Cipher to use
cipher
AES
-
256
-
CBC
# OpenVPN 2.0 uses UDP port 1194 by default
# (official port assignment by iana.org 11/04).
# OpenVPN 1.x uses UDP port 5000 by default.
# Each OpenVPN tunnel must use
# a different port number.
# lport or rport can be used
# to denote different ports
# for local and remote.
;
port
1194
# Downgrade UID and GID to
# "nobody" after initialization
# for extra security.
;
user
nobody
;
group
nobody
# If you built OpenVPN with
# LZO compression, uncomment
# out the following line.
;
comp
-
lzo
# Send a UDP ping to remote once
# every 15 seconds to keep
# stateful firewall connection
# alive. Uncomment this
# out if you are using a stateful
# firewall.
;
ping
15
# Uncomment this section for a more reliable detection when a system
# loses its connection. For example, dial-ups or laptops that
# travel to other locations.
;
ping
15
;
ping
-
restart
45
;
ping
-
timer
-
rem
;
persist
-
tun
;
persist
-
key
# Verbosity level.
# 0 -- quiet except for fatal errors.
# 1 -- mostly quiet, but display non-fatal network errors.
# 3 -- medium output, good for normal operation.
# 9 -- verbose, good for troubleshooting
verb
3
sample/sample-config-files/tls-home.conf
View file @
e1e1377b
...
@@ -4,12 +4,9 @@
...
@@ -4,12 +4,9 @@
#
#
# '#' or ';' may be used to delimit comments.
# '#' or ';' may be used to delimit comments.
# Use a dynamic tun device.
# Use a dynamic tun device. For non-Linux OSes, you may want to use an
# For Linux 2.2 or non-Linux OSes,
# explicit unit number such as "tun1".
# you may want to use an explicit
# OpenVPN also supports virtual ethernet "tap" devices.
# unit number such as "tun1".
# OpenVPN also supports virtual
# ethernet "tap" devices.
dev
tun
dev
tun
# Our OpenVPN peer is the office gateway.
# Our OpenVPN peer is the office gateway.
...
@@ -37,6 +34,9 @@ cert home.crt
...
@@ -37,6 +34,9 @@ cert home.crt
# Our private key
# Our private key
key
home
.
key
key
home
.
key
# Our data channel cipher (must match peer config)
cipher
AES
-
256
-
GCM
# OpenVPN 2.0 uses UDP port 1194 by default
# OpenVPN 2.0 uses UDP port 1194 by default
# (official port assignment by iana.org 11/04).
# (official port assignment by iana.org 11/04).
# OpenVPN 1.x uses UDP port 5000 by default.
# OpenVPN 1.x uses UDP port 5000 by default.
...
...
sample/sample-config-files/tls-office.conf
View file @
e1e1377b
...
@@ -37,6 +37,9 @@ cert office.crt
...
@@ -37,6 +37,9 @@ cert office.crt
# Our private key
# Our private key
key
office
.
key
key
office
.
key
# Our data channel cipher (must match peer config)
cipher
AES
-
256
-
GCM
# OpenVPN 2.0 uses UDP port 1194 by default
# OpenVPN 2.0 uses UDP port 1194 by default
# (official port assignment by iana.org 11/04).
# (official port assignment by iana.org 11/04).
# OpenVPN 1.x uses UDP port 5000 by default.
# OpenVPN 1.x uses UDP port 5000 by default.
...
...
sample/sample-config-files/xinetd-client-config
deleted
100644 → 0
View file @
e3856827
# This OpenVPN config file
# is the client side counterpart
# of xinetd-server-config
dev tun
ifconfig 10.4.0.1 10.4.0.2
remote my-server
port 1194
user nobody
secret /root/openvpn/key
inactive 600
sample/sample-config-files/xinetd-server-config
deleted
100644 → 0
View file @
e3856827
# An xinetd configuration file for OpenVPN.
#
# This file should be renamed to openvpn or something suitably
# descriptive and copied to the /etc/xinetd.d directory.
# xinetd can then be made aware of this file by restarting
# it or sending it a SIGHUP signal.
#
# For each potential incoming client, create a separate version
# of this configuration file on a unique port number. Also note
# that the key file and ifconfig endpoints should be unique for
# each client. This configuration assumes that the OpenVPN
# executable and key live in /root/openvpn. Change this to fit
# your environment.
service openvpn_1
{
type = UNLISTED
port = 1194
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /root/openvpn/openvpn
server_args = --inetd --dev tun --ifconfig 10.4.0.2 10.4.0.1 --secret /root/openvpn/key --inactive 600 --user nobody
}
sample/sample-keys/gen-sample-keys.sh
View file @
e1e1377b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# Run this script to set up a test CA, and test key-certificate pair for a
# Run this script to set up a test CA, and test key-certificate pair for a
# server, and various clients.
# server, and various clients.
#
#
# Copyright (C) 2014 Steffan Karger <steffan@karger.me>
# Copyright (C) 2014
-2022
Steffan Karger <steffan@karger.me>
set
-eu
set
-eu
command
-v
openssl
>
/dev/null 2>&1
||
{
echo
>
&2
"Unable to find openssl. Please make sure openssl is installed and in your path."
;
exit
1
;
}
command
-v
openssl
>
/dev/null 2>&1
||
{
echo
>
&2
"Unable to find openssl. Please make sure openssl is installed and in your path."
;
exit
1
;
}
...
@@ -15,7 +15,7 @@ then
...
@@ -15,7 +15,7 @@ then
fi
fi
# Generate static key for tls-auth (or static key mode)
# Generate static key for tls-auth (or static key mode)
$(
dirname
${
0
}
)
/../../src/openvpn/openvpn
--genkey
--secret
ta.key
$(
dirname
${
0
}
)
/../../src/openvpn/openvpn
--genkey
tls-auth
ta.key
# Create required directories and files
# Create required directories and files
mkdir
-p
sample-ca
mkdir
-p
sample-ca
...
...
sample/sample-keys/openssl.cnf
View file @
e1e1377b
...
@@ -19,7 +19,7 @@ crl = $dir/crl.pem # The current CRL
...
@@ -19,7 +19,7 @@ crl = $dir/crl.pem # The current CRL
private_key = $dir/ca.key # The private key
private_key = $dir/ca.key # The private key
RANDFILE = $dir/.rand # private random number file
RANDFILE = $dir/.rand # private random number file
x509_extensions = basic_exts # The exten
t
ions to add to the cert
x509_extensions = basic_exts # The exten
s
ions to add to the cert
# This allows a V2 CRL. Ancient browsers don't like it, but anything Easy-RSA
# This allows a V2 CRL. Ancient browsers don't like it, but anything Easy-RSA
# is designed for will. In return, we get the Issuer attached to CRLs.
# is designed for will. In return, we get the Issuer attached to CRLs.
...
@@ -54,7 +54,7 @@ default_bits = 2048
...
@@ -54,7 +54,7 @@ default_bits = 2048
default_keyfile = privkey.pem
default_keyfile = privkey.pem
default_md = sha256
default_md = sha256
distinguished_name = cn_only
distinguished_name = cn_only
x509_extensions = easyrsa_ca # The exten
t
ions to add to the self signed cert
x509_extensions = easyrsa_ca # The exten
s
ions to add to the self signed cert
# A placeholder to handle the $EXTRA_EXTS feature:
# A placeholder to handle the $EXTRA_EXTS feature:
#%EXTRA_EXTS% # Do NOT remove or change this line as $EXTRA_EXTS support requires it
#%EXTRA_EXTS% # Do NOT remove or change this line as $EXTRA_EXTS support requires it
...
...
sample/sample-plugins/Makefile.am
0 → 100644
View file @
e1e1377b
#
# OpenVPN -- An application to securely tunnel IP networks
# over a single UDP port, with support for SSL/TLS-based
# session authentication and key exchange,
# packet encryption, packet authentication, and
# packet compression.
#
# Copyright (C) 2002-2022 OpenVPN Inc <sales@openvpn.net>
#
MAINTAINERCLEANFILES
=
\
$(srcdir)
/Makefile.in
AM_CPPFLAGS
=
-I
$(top_srcdir)
-I
$(top_builddir)
\
-I
$(top_srcdir)
/include
-I
$(top_builddir)
/include
# We don't want automake to pull in libtool for building these
# sample-plugins. Even though this breaks the conceptual ideas
# around autoconf/automake/libtools ... these sample plug-ins
# are just sample code, not to be installed or distributed outside
# of the source tarball. Not even built by default, by design.
#
# We only add this as a simple and convenient way to build all
# these plug-ins with the same build parameters as the rest
# of the OpenVPN code.
#
# All the plugins which will be built are processed in this
# separate Makefile, which disconnects everything just enough
# to achieve our goal.
include
Makefile.plugins
dist-hook
:
make
-f
Makefile.plugins clean
sample/sample-plugins/Makefile.plugins
0 → 100644
View file @
e1e1377b
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2020-2022 OpenVPN Inc <sales@openvpn.net>
#
#
# Plug-ins to build - listed entries should not carry any extensions
#
PLUGINS
=
\
defer/multi-auth
\
keying-material-exporter-demo/keyingmaterialexporter
\
log/log log/log_v3
\
simple/base64
\
simple/simple
\
client-connect/sample-client-connect
# All the plugins to build - rewritten with .so extension
all
:
$(foreach var
,
$(PLUGINS)
,
$(var).so)
# Do not automatically remove object files
# This is a special Make setting, to avoid adding an implicit
# 'rm' command on object files - due to the .c.o/%.so rules below
.PRECIOUS
:
%.o
# Compile step
.c.o
:
test
-d
`
dirname
$@
`
||
$(MKDIR_P)
`
dirname
$@
`
;
\
$(CC)
-c
-o
$@
$(CFLAGS)
$(AM_CPPFLAGS)
-fPIC
$<
# Link step
%.so
:
%.o
$(CC)
$(LDFLAGS)
-shared
-fPIC
-o
$@
$<
# Clean up all build object and shared object files
clean
:
rm
-f
$(
foreach
var,
$(PLUGINS)
,
$(var)
.o
)
\
$(
foreach
var,
$(PLUGINS)
,
$(var)
.so
)
sample/sample-plugins/README
0 → 100644
View file @
e1e1377b
OpenVPN plug-in examples.
Examples provided:
* authentication and logging
simple/simple.c -- using the --auth-user-pass-verify callback, verify
that the username/password is "foo"/"bar".
defer/multi-auth.c
-- using the --auth-user-pass-verify callback,
test deferred authentication. Can be used to test multiple
authentication plugins in the same server config.
log/log.c -- Extended variant of simple/simple.c which adds more
logging of what is happening inside the plug-in
log/log_v3.c -- A variant of log/log.c, which makes use of the
OpenVPN plug-in v3 API. This will also log even more
information related to certificates in use.
* client-connect (and logging)
client-connect/sample-client-connect -- demonstrate how to use the
CLIENT_CONNECT and CLIENT_CONNECT_V2 hooks to achieve
"per client configuration / logging / ..." actions,
both in synchronous and async/deferred mode
* cryptography related
simple/base64.c -- Example using the OpenVPN exported base64 encode/decode
functions
keying-material-exporter-demo/keyingmaterialexporter.c
-- Example based on TLS Keying Material Exporters over HTTP [RFC-5705]
(openvpn/doc/keying-material-exporter.txt). For more details, see
keying-material-exporter-demo/README
To build on *BSD/Linux platforms (requires GNU Make):
gmake (builds a default set of plug-ins)
gmake simple/simple.so
To build on Windows platform (MinGW):
cd simple; ./winbuild simple.so
To use in OpenVPN, add to config file:
plugin simple.so (Linux/BSD/etc.)
plugin simple.dll
sample/sample-plugins/client-connect/README
0 → 100644
View file @
e1e1377b
OpenVPN plugin examples.
Examples provided:
sample-client-connect.c
- hook to all plugin hooks that openvpn offers
- log which hook got called
- on CLIENT_CONNECT or CLIENT_CONNECT_V2 set some config variables
(controlled by "setenv plugin_cc_config ..." and "plugin_cc2_config"
in openvpn's config)
- if the environment variable UV_WANT_CC_FAIL is set, fail
- if the environment variable UV_WANT_CC_DISABLE is set, reject ("disable")
- if the environment variable UV_WANT_CC_ASYNC is set, go to
asynchronous/deferred mode on CLIENT_CONNECT, and sleep for
${UV_WANT_CC_ASYNC} seconds
- if the environment variable UV_WANT_CC2_FAIL is set, fail CC2
- if the environment variable UV_WANT_CC2_DISABLE is set, reject ("disable")
- if the environment variable UV_WANT_CC2_ASYNC is set, go to
asynchronous/deferred mode on CLIENT_CONNECT_V2, and sleep for
${UV_WANT_CC2_ASYNC} seconds
(this can be client-controlled with --setenv UV_WANT_CC_ASYNC nnn
etc. --> for easy testing server code paths)
To build for unixy platforms (not very sophisticated right now, needs gmake):
.../sample-plugins$ gmake client-connect/sample-client-connect.so
(This plugin has not been tested on Windows, and might not even work due
to its use of fork() and wait(). Let us know if it does or needs patches)
To use in OpenVPN, add to config file:
plugin sample-client-connect.so (Linux/BSD/etc.)
Prev
1
…
5
6
7
8
9
10
11
12
13
Next