From bec51f5ed108484c5d41a9626f1104f8a0e74be0 Mon Sep 17 00:00:00 2001 From: Grzegorz Surmann Date: Wed, 17 Jul 2024 17:49:43 +0000 Subject: [PATCH] more changes --- INSTALL.md | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 3aac583..f399108 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,29 +1,37 @@ # Installation 1. First, checkout the repository: +``` +git clone https://git.funil.de/sinuspl/bgpblist /opt/bgpblist +``` - git clone https://git.funil.de/sinuspl/bgpblist /opt/bgpblist +2. Copy the default config to create your own: +``` +cp /opt/bgpblist/etc/default/config.ini /opt/bgpblist/etc/config.ini +``` -2. Run it once, it will create config: - - /opt/bgpblist/sbin/bgpblacklistd - -3. Edit the config.ini, if you have are a customer: - - vim /opt/bgpblist/etc/config.ini +3. 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. 4. Copy the systemd unit file: - - cp /opt/bgpblist/etc/systemd/bgpblacklist.service /etc/systemd/system/bgpblacklist.service +``` +cp /opt/bgpblist/etc/systemd/bgpblacklist.service /etc/systemd/system/bgpblacklist.service +``` 5. Reload the systemd: - - systemctl daemon-reload +``` +systemctl daemon-reload +``` 6. Enable the unit: - - systemctl enable bgpblacklist.service +``` +systemctl enable bgpblacklist.service +``` 7. Start the daemon: - - systemctl start bgpblacklist.service +``` +systemctl start bgpblacklist.service +``` \ No newline at end of file