BSD Ports

security/dsvpn 0.1.4 DragonFly

Dead Simple VPN

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
net, net-vpn, security
Package size
11.3 KiB, 29.3 KiB installed

Description

DSVPN is a Dead Simple VPN, designed to address the most common use case for using a VPN with a shared key. It works in 'server' or 'client' mode using TCP.

In the other systems

SystemPortVersion
DragonFlysecurity/dsvpn0.1.4
FreeBSDsecurity/dsvpn0.1.4
OpenBSDnet/dsvpn0.1.5
HardenedBSDsecurity/dsvpn0.1.4
GhostBSDsecurity/dsvpn0.1.4

Install

Binary package:

pkg install dsvpn

From DPorts:

cd /usr/dports/security/dsvpn && make install clean

Dependencies

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

DSVPN uses a shared secret. Create it with the following command:

  # dd if=/dev/urandom of=/usr/local/etc/dsvpn.key count=1 bs=2048

Example usage on the server (defaults to listen on 443/TCP):

  # sysrc dsvpn_enable=YES
  # service dsvpn start

Example usage on the client (i.e. server's IP is 10.20.30.40):

  # sysrc dsvpn_enable=YES
  # sysrc dsvpn_remote=10.20.30.40
  # service dsvpn start

Remember to retrieve the shared key from the server before starting it.

If you were previously using a DNS resolver only accessible from the
local network, it won't be accessible through the VPN. That might be
the only thing you may have to change. Use a public resolver, a local
resolver, or DNSCrypt.

The default network created by DSVPN is 192.168.192.0/24.