# Installation **Prerequisites** This daemon needs PHP, tested with 5.6, 7.4 and 8.2. It may work with others or may not ;) It needs php-cli residing in /usr/bin/php. Also needs the "pcntl" PHP extension and on Linux the "iproute2" package. **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 ```