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 |
||
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 | |||
***systemctl start pptpd | |||
**Issues or Errors? | |||
***Enable "debug" in | |||
***Check /var/log/messages | |||
**Do additional stuff if desired; | |||
***Webmin, etc. | |||
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 60: | ||
</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"> |