https://github.com/pyhedgehog/uanytun
https://github.com/pyhedgehog/uanytun
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pyhedgehog/uanytun
- Owner: pyhedgehog
- License: other
- Created: 2022-01-13T11:12:54.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-13T11:13:12.000Z (over 3 years ago)
- Last Synced: 2025-01-14T08:38:26.174Z (5 months ago)
- Language: C
- Size: 332 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
Dependencies
============uAnytun can be built by using either libgcrypt, libnettle or the openssl-crypto
library. The latter is more performant in most cases but there are some license
issues when using this library. It also needs more space when installed.Linux
-----
(this includes Debian with FreeBSD Kernel)using libgcrypt:
build-essential
libgcrypt11-devusing ssl crypto library:
build-essential
libssl-devusing nettle crypto library:
build-essential
nettle-devif you want clang as compiler
clang
if you want to rebuild the manpage:
asciidoc
OpenBSD/FreeBSD
---------------using libgcrypt:
devel/gmake
security/libgcryptusing ssl crypto library:
devel/gmake
if you want to rebuild the manpage:
textproc/asciidoc
textproc/libxslt
textproc/docbook-xsl
sysutils/readlink
misc/getoptInstallation
============Getting the source via GIT:
---------------------------git clone https://git.spreadspace.org/anytun/uanytun.git
cd uanytunBuilding from source
--------------------using libgcrypt:
# cd src
# ./configure
# makeusing ssl crypto library:
# cd src
# ./configure --use-ssl-crypto
# makeNotes:
- try './configure --help' for further information
- if using openssl pre 0.9.8 you have to disable passphrase
because openssl had no SHA256 implementation prior to this
version
- on OpenBSD/FreeBSD you have to use gmake instead of makeInstalling
----------# sudo make install
This will install anytun under the --prefix defined with configure.
Uninstalling
------------# sudo make remove
This removes everything except for the config files
# sudo make purge
This also removes the config files
Usage:
======init.d script
-------------The init.d script can be used to start uanytun at boot time. It searches for
configuration files which reside at $CONFIG_DIR. For each instance of uanytun
which should be started there must be a directory containing at least a file
named config. This file must contain all command line parameter which should
be used when starting the daemon. One line for each parameter. Empty lines and
lines starting with # are ignored. Besides the config file there may be a script
named post-up.sh which will be called when the tun/tap device comes up.
This is an example of how the init.d script can be used to start uanytun:# /etc/init.d/uanytun start client1 p2p-a
In this case the script will start 2 instances of uanytun using the config files
$CONFIG_DIR/client1/config and $CONFIG_DIR/p2p-a/config.
If no instance name is specified the script will use the file $CONFIG_DIR/autostart
to determine which instances to start or stop. This file must contain a list
of instance names which should be used when no names are specified at the command
line. One line for each name. Empty lines and lines starting with # are ignored.