To install PPTP client on OpenBSD, you can use the following steps:
- 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
- Create the
/etc/ppp/chap-secrets
file, which contains the username and password required to connect to the VPN. - 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
- Create the
/etc/ppp/options.pptp
file with the following contents:
lock
noauth
nobsdcomp
nodeflate
- Connect to the VPN using the following command:
# pppd call pptp
- To disconnect from the VPN, simply use the following command:
# killall pppd
(Link)