Centos 9 and tinc
Download and untar sources
wget https://tinc-vpn.org/packages/tinc-1.0.36.tar.gz
tar -xf tinc-1.0.36.tar.gz
Install needed packages
As we will need to compile the source code some packages need to be added. Don't worry, you can remove them after the installation 😇
sudo dnf install make gcc zlib-devel lzo-devel openssl-devel
Compile and install
./configure --prefix= --with-systemd
Note that adding --with-systemd
will install systemd services making it whole easier to run the daemon automatically at startup.
make
sudo make install
Here is the output you should obtain meaning the installation was successful :
Making install in src
make[1]: Entering directory '/user/tinc-1.0.36/src'
make[2]: Entering directory '/user/tinc-1.0.36/src'
/bin/mkdir -p '/sbin'
/bin/install -c tincd '/sbin'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/user/tinc-1.0.36/src'
make[1]: Leaving directory '/user/tinc-1.0.36/src'
Making install in doc
make[1]: Entering directory '/user/tinc-1.0.36/doc'
make[2]: Entering directory '/user/tinc-1.0.36/doc'
make[2]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/share/info'
/bin/install -c -m 644 ./tinc.info '/share/info'
/bin/mkdir -p '/share/man/man5'
/bin/install -c -m 644 tinc.conf.5 '/share/man/man5'
/bin/mkdir -p '/share/man/man8'
/bin/install -c -m 644 tincd.8 '/share/man/man8'
make[2]: Leaving directory '/user/tinc-1.0.36/doc'
make[1]: Leaving directory '/user/tinc-1.0.36/doc'
Making install in systemd
make[1]: Entering directory '/user/tinc-1.0.36/systemd'
make[2]: Entering directory '/user/tinc-1.0.36/systemd'
make[2]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/lib/systemd/system'
/bin/install -c -m 644 tinc.service tinc@.service '/lib/systemd/system'
make[2]: Leaving directory '/user/tinc-1.0.36/systemd'
make[1]: Leaving directory '/user/tinc-1.0.36/systemd'
make[1]: Entering directory '/user/tinc-1.0.36'
make[2]: Entering directory '/user/tinc-1.0.36'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/user/tinc-1.0.36'
make[1]: Leaving directory '/user/tinc-1.0.36'
Start the daemon
sudo systemctl enable tinc
sudo systemctl enable tinc@mytunnel