OpnBSD PPTP Client: Install and Create a VPN

To install PPTP client on OpenBSD, you can use the following steps:

  1. Install the necessary packages:
# pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/6.9/packages/amd64/ppp-2.4.7p0.tgz
# pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/6.9/packages/amd64/pptp-1.7.2p0.tgz
  1. Create the /etc/ppp/chap-secrets file, which contains the username and password required to connect to the VPN.
  2. Create the /etc/ppp/peers/pptp file with the following contents, replacing <server-ip> with the IP address of your VPN server:
pty "pptp <server-ip> --nolaunchpppd"
name <username>
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam pptp
  1. Create the /etc/ppp/options.pptp file with the following contents:
lock
noauth
nobsdcomp
nodeflate
  1. Connect to the VPN using the following command:
# pppd call pptp
  1. To disconnect from the VPN, simply use the following command:
# killall pppd

(Link)

Leave a Comment