bgpblist/INSTALL.md
2024-07-17 18:19:31 +00:00

1.2 KiB

Installation

Prerequisites

This daemon needs PHP, tested with 5.6., 7.4. and 8.2.*. It may work with others or may not ;)

Quick and fast install

git clone https://git.funil.de/sinuspl/bgpblist /opt/bgpblist
cp /opt/bgpblist/etc/default/config.ini /opt/bgpblist/etc/config.ini
cp /opt/bgpblist/etc/systemd/bgpblacklist.service /etc/systemd/system/bgpblacklist.service
systemctl daemon-reload
systemctl enable bgpblacklist.service
systemctl start bgpblacklist.service

Long install with config

First, checkout the repository:

git clone https://git.funil.de/sinuspl/bgpblist /opt/bgpblist

Copy the default config to create your own:

cp /opt/bgpblist/etc/default/config.ini /opt/bgpblist/etc/config.ini

Edit the config.ini, if you are a customer:

vim /opt/bgpblist/etc/config.ini

If not, dont't edit, it will use the defaults.

Copy the systemd unit file:

cp /opt/bgpblist/etc/systemd/bgpblacklist.service /etc/systemd/system/bgpblacklist.service

Reload the systemd:

systemctl daemon-reload

Enable the unit:

systemctl enable bgpblacklist.service

Start the daemon:

systemctl start bgpblacklist.service