1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-06-28 11:55:08 +03:00
Commit Graph

70 Commits

Author SHA1 Message Date
Darik Horn
ba1fa0f1db Change GetExeDir to GetStateDir in Cedar and Mayaqua.
Resolve this AppArmor error by ensuring that certificate files files are
written into /var/lib/softether instead of the current working directory:

	Profile: /usr/sbin/softetherd
	Operation: mkdir
	Name: /usr/sbin/chain_certs
	Denied: c
	Logfile: /var/log/kern.log

	type=1400 audit: apparmor="DENIED" operation="mkdir" profile="/usr/sbin/softetherd" name="/usr/sbin/chain_certs/" pid=36448 comm="softetherd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
2014-07-11 16:18:52 -04:00
Darik Horn
b8e39b6651 Lintian: Override possible-gpl-code-linked-with-openssl.
Resolve this Lintian error:

	E: softether: possible-gpl-code-linked-with-openssl

The OpenSSL license exception is implied by official upstream binary releases
that contain a statically linked libssl.
2014-07-11 14:23:10 -04:00
Darik Horn
44a72b0d6c Lintian: Override soname warnings.
Resolve these Lintian warning:

	W: softether: package-name-doesnt-match-sonames libsoftether
	W: softether: shlib-without-versioned-soname usr/lib/x86_64-linux-gnu/libsoftether.so libsoftether.so

The library interface is entirely private and provided only for build
convenience and runtime optimization. The sonames are not versioned
because the interface is not contracted.
2014-07-11 14:23:09 -04:00
Darik Horn
869575e104 Lintian: Promote standards version to 3.9.5.
Resolve this Lintian warning:

	W: softether source: ancient-standards-version 3.9.1 (current is 3.9.5)
2014-07-11 14:23:09 -04:00
Darik Horn
70c3549c18 Lintian: Create debian/copyright file.
Resolve this Lintian warning:

	W: softether source: no-debian-copyright
2014-07-11 14:23:09 -04:00
Darik Horn
79bea57f31 Lintian: Set the single-debian-patch source option.
Resolve this Lintian warning:

	W: softether source: format-3.0-but-debian-changes-patch
2014-07-11 14:23:09 -04:00
Darik Horn
2a04be6f06 Lintian: Remove build-essential dependency.
Resolve this Lintian error:

	E: softether source: build-depends-on-build-essential build-depends
2014-07-11 14:23:09 -04:00
Darik Horn
7a75543f8e Lintian: Depend on debhelper version 9.
Resolve this Lintian warning:

	W: softether source: package-needs-versioned-debhelper-build-depends 9
2014-07-11 14:23:09 -04:00
Darik Horn
9a8538a6f2 Add an explicit autoconf check for librt.
The realtime extensions library is not automatically linked on Debian ARM
platforms, so do an AC_CHECK_LIB for it in the configuration macro.
2014-07-11 14:23:09 -04:00
Darik Horn
96b9d3ca1e Add dh-apparmor as an explicit build dependency.
The debhelper package has a dh-apparmor dependency on Ubuntu, but not on
Debian.  Add dh-apparmor to the Build-Depends control so that this package
compiles cleanly on vanilla Debian platforms.
2014-07-11 14:23:09 -04:00
Darik Horn
11935cee5a Create an apparmor security profile for softetherd.
Install a mandatory access control for restricing SoftEther to network
facilities only.  This reduces the vulnerability surface of any softetherd
exploit, which is an important because SoftEther currently runs as a fully
privileged process.
2014-07-11 14:23:09 -04:00
Darik Horn
b3e6a7305b Create a ufw firewall template for SoftEther.
Install a `/etc/ufw/applications.d/softether` file that describes
network ports to keep open for the default SoftEther configuration.
2014-07-11 14:23:09 -04:00
Darik Horn
c724d5bf43 Promote debhelper compatibility level to 9.
The compat=9 overlay level is supported by Debian Wheezy, Ubuntu Lucid,
and all other current DEB platforms.
2014-07-11 14:23:09 -04:00
Darik Horn
44981b22b4 Create /lib/systemd/system/softether.service file.
Create a softether.upstart file in the Debian overlay for systems that use
the systemd init subsystem.
2014-07-11 14:23:09 -04:00
Darik Horn
61d215e1c8 Update init files for softetherd.
The check for an upstart configuration in the sysv script is reverted because
upstart and start-stop-daemon can both control the same softetherd instance.
2014-07-11 14:23:09 -04:00
Darik Horn
604b2b884f Create /etc/init/softether.conf for upstart.
Create a softether.upstart file in the Debian overlay for systems that use
the upstart init subsystem.  This lets the operator control the SoftEther
daemon with commands like:

	# start softether
	# stop softether
	# status softether
	# restart softether

Also modify the softether.init file to exit early if the /etc/init/softether
file is installed.  Although the dh_installinit debhelper prefers an upstart
configuration for automatic control, it will also install the sysv script.
2014-07-11 14:23:09 -04:00
Darik Horn
2be40fb555 Redebianize for autotools and dpkg-buildpackage. 2014-07-11 14:23:09 -04:00
Darik Horn
32b552ed22 Create a non-forking softetherd for upstart and systemd.
Implement a daemon that expects to be invoked by a new-style init like upstart
or systemd as:

	/usr/sbin/softetherd [vpnbridge|vpnclient|vpnserver]

Alternatively, if the command line argument is empty, then use the
`SOFTETHER_MODE` environment variable instead.
2014-07-11 14:21:23 -04:00
Darik Horn
7bcb2d135b Use FHS installation directories.
Install to `/usr/sbin`, `/usr/lib`, and `/var/lib` according to the Linux
filesystem hierarchy standard if SoftEther is built through autotools.

In a managed installation, the FHS stipulates that the application must
accomodate a read-only installation path.  This requires a new `GetStateDir`
function that substitues `GetExeDir` in some parts of the code.
2014-07-11 13:45:41 -04:00
Darik Horn
070e32986e Create libsoftether.so and dynamically link the userland.
Sharing object code between vpnbridge, vpnclient, vpnserver, and vpncmd
reduces the binary size of SoftEther by 85% and its administrative memory
footprint by 50%.
2014-07-11 13:43:22 -04:00
Darik Horn
688630dee2 Create autotools plumbing for SoftEther.
Add autoconf and automake capabilities to SoftEther so that it can be built
like this:

	# autoreconf --force --install
	# ./configure
	# make install DESTDIR=/tmp/softether

All standard configure parameters are supported, plus:

	# ./configure --enable-debug

Autotools support makes porting, cross compiling, and optimization much easier.

These GNU autoconf-archive components are used for dependency checking:

  * ax_check_openssl.m4
  * ax_check_zlib.m4
  * ax_lib_readline.m4
  * ax_pthread.m4
  * ax_with_curses.m4

NB: http://www.gnu.org/software/autoconf-archive/
2014-07-11 13:43:22 -04:00
dnobori
ea38eef377 v4.08-9449-rtm 2014-06-08 16:40:44 +09:00
dnobori
719ee999d6 v4.07-9448-rtm 2014-06-06 06:53:20 +09:00
dnobori
7839d2939e v4.06-9437-beta 2014-04-09 11:30:07 +09:00
dnobori
a3a4ad0b0a v4.06-9436-beta 2014-04-09 09:35:00 +09:00
Daiyuu Nobori
a22f8216ae Merge pull request #45 from sahal/master
A few minor fixes
2014-04-08 22:26:37 +09:00
Sahal Ansari
0f49c92c31 missed a pair of quotation marks 2014-04-01 14:52:52 +00:00
Sahal Ansari
759e4789f6 One can now launch the script from any location, not just debian/ 2014-04-01 14:46:02 +00:00
Sahal Ansari
358357db1e -z instead of -e for non-files 2014-03-31 07:43:37 +00:00
Daiyuu Nobori
19ca16ef2b Merge pull request #42 from sahal/master
This version is more logical and less ugly
2014-03-30 21:32:36 +09:00
Sahal Ansari
8508f7c594 This version is more logical, less ugly, and incorporates and as described in the Debian manual. 2014-03-30 10:56:27 +00:00
Daiyuu Nobori
d8fc11d0ff Merge pull request #41 from sahal/master
quick and dirty (emphasis on dirty) debian changelog generator
2014-03-29 17:14:51 +09:00
Sahal Ansari
86b5ea39cb quick and dirty (emphasis on dirty) debian changelog generator for SoftEtherVPN 2014-03-29 07:11:07 +00:00
dnobori
16d73ccb57 v4.06-9435-beta 2014-03-26 12:38:30 +09:00
dnobori
e61fca4d9d v4.06-9433-beta 2014-03-21 14:07:45 +09:00
dnobori
dc5d3ee2ae v4.06-9432-beta 2014-03-20 17:05:40 +09:00
dnobori
cf2a6a42bc v4.06-9430-beta 2014-03-20 05:45:05 +09:00
Daiyuu Nobori
dcd9b94381 Merge pull request #34 from nattoheaven/osxtune
Several Fixes for OS X
2014-03-19 20:30:42 +09:00
Daiyuu Nobori
d2d61b2da5 Merge pull request #30 from yfdyh000/patch-1
Update strtable_cn.stb
2014-03-19 20:25:52 +09:00
nattoheaven
4c48388b12 Several Tunings for OS X 2014-03-12 08:06:21 +09:00
dnobori
14e8693421 Merge branch 'master' of https://github.com/thepoch/SoftEtherVPN into thepoch-master 2014-03-06 23:38:31 +09:00
Dexter Ang
a67b4e30b6 Workaround for when vpnserver hangs on stop. 2014-03-03 15:54:21 +08:00
YF
923c97a946 Update strtable_cn.stb
update and fixes the translation.
2014-02-21 06:22:55 +08:00
dnobori
496167ee81 v4.05-9423-beta 2014-02-18 20:09:33 +09:00
Daiyuu Nobori
a832506f35 Merge pull request #29 from thepoch/master
Files for building CentOS/RHEL RPM.
2014-02-18 20:08:03 +09:00
Dexter Ang
8fe51b74cf Files for building CentOS/RHEL RPM. 2014-02-18 06:20:37 +08:00
dnobori
e8ce5fa014 v4.05-9422-beta 2014-02-17 03:16:50 +09:00
Daiyuu Nobori
bad6a4c22b Merge pull request #23 from el1n/autoconnect
Client Manager supporting /hostname and /password
2014-02-17 01:05:37 +09:00
Daiyuu Nobori
4abd47fd9a Merge pull request #25 from hsaito/master
Adding to check for armv6l so Debian package can be built on Raspberry P...
2014-02-10 15:42:46 +09:00
Hideki Saito
ec484dba12 Adding to check for armv6l so Debian package can be built on Raspberry Pi 2014-02-09 22:26:55 -08:00