PoPToP Daemon in the Year 2024: Difference between revisions

Created page with "Is it possible to install the PoPToP Daemon / PPTPD in the year 2024? Yes! OK, shhhhhh.... All the faults are understood, etc. But at this late date, it's almost like storing all you're passwords in an unencrypted voice message on an 8-Track Tape. Sure it's unprotected, but how is anyone going to figure out what the passwords are without a ton of work? Anyway, the short version of the installation process is as follows; * Do NOT install via DNF (no packages are av..."
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
Anyway, the short version of the installation process is as follows;
Anyway, the short version of the installation process is as follows;


* Do NOT install via DNF (no packages are available, IE, dnf install pptpd has no packages available as it has been removed from the EPEL repository, as it should have been done)
*Do NOT install via DNF (no packages are available, IE, dnf install pptpd has no packages available as it has been removed from the EPEL repository, as it should have been done)
* Do NOT install via an RPM package (because the 1.4.0 version of PPTPD was built against PPP 2.4.5, and as of 2024, the current version of PPP is 2.4.9)
*Do NOT install via an RPM package (because the 1.4.0 version of PPTPD was built against PPP 2.4.5, and as of 2024, the current version of PPP is 2.4.9)
* Pre-requisites;
*Pre-requisites;
** dnf install ppp ppp-devel
**dnf install ppp ppp-devel
* Install PPTPD
*Install PPTPD
** Download the Source Code: https://sourceforge.net/projects/poptop/files/pptpd/pptpd-1.4.0/
**Download the Source Code: https://sourceforge.net/projects/poptop/files/pptpd/pptpd-1.4.0/
** Untar it into a build directory (steps omitted)
**Untar it into a build directory (steps omitted)
** Run the following commands;
**Run the following commands;
*** ./configure
***./configure
*** make
***make
*** make check
***make check
*** make install
***make install
** Configure (see below for working examples)
**Configure (see below for working examples)
** Do additional stuff if desired;
***/etc/pptpd.conf
*** Webmin, etc.
***/etc/ppp/options
<syntaxhighlight lang="text">
***/etc/ppp/chap-secrets
***/usr/lib/systemd/system/pptpd.service
***/etc/sysconfig/ppptd
**After the above Configuration Files are done
***systemctl enable pptpd
***...before starting the PPTPD Service;
****By default, when compiling the PPTPD from source, the pptpd binary file will be located here: /usr/local/sbin/pptpd, not in the 'usual RPM location' of<span> </span>: /usr/sbin/pptpd, so;
*****ln -s /usr/local/sbin/pptpd /usr/sbin/pptpd (this will keep things as simple as possible if recompiling PPTPD, unlikely for many reasons including the fact the version 1.4.0 is 11 years old as of 2024, but just in case, do it this way)
***systemctl start pptpd
**Issues or Errors?
***Enable "debug" in
***Check /var/log/messages
**Do additional stuff if desired;
***Webmin, etc., change the below items for Webmin to start and stop the PPTPD Service
****systemctl start pptpd
****systemctl stop pptpd
 
Below are examples of files referenced above;<syntaxhighlight lang="text">
/etc/pptpd.conf
/etc/pptpd.conf
localip 192.168.1.200-209
localip 192.168.1.200-209
Line 48: Line 65:




</syntaxhighlight>Create the following File, then systemctl daemon-reload, systemctl enable pptpd<syntaxhighlight lang="text">
[Unit]
Description=PoPToP Point to Point Tunneling Server
After=network.target
[Service]
EnvironmentFile=/etc/sysconfig/pptpd
ExecStart=/usr/sbin/pptpd -f $OPTIONS
[Install]
WantedBy=multi-user.target
</syntaxhighlight>And for the above "systemctl file", make sure the below file exists: /etc/sysconf/pptpd, below are the default contents from the CentOS RPM /etc/sysconfig/pptpd File<syntaxhighlight lang="text">
OPTIONS=


</syntaxhighlight>For additional PPTPD.conf options, see below;<syntaxhighlight lang="text">
</syntaxhighlight>For additional PPTPD.conf options, see below;<syntaxhighlight lang="text">
Line 157: Line 189:
#remoteip 192.168.1.234-238,192.168.1.245
#remoteip 192.168.1.234-238,192.168.1.245


</syntaxhighlight>For options.pptp, sometimes options.pptpd (in /etc/ppp)<syntaxhighlight lang="text">
</syntaxhighlight>For options.pptp, sometimes options.pptpd (in /etc/ppp): REMEMBER: For some reason, either because of the compiled PPTPD binary or the PPP RPM that comes with modern versions of Linux, the options.pptpd or options.pptp File is completely ignored, so, put the below options into /etc/ppp/options;<syntaxhighlight lang="text">
###############################################################################
###############################################################################
# $Id: options.pptpd,v 1.11 2005/12/29 01:21:09 quozl Exp $
# $Id: options.pptpd,v 1.11 2005/12/29 01:21:09 quozl Exp $