Compile

The program is written in the GoLang language. If you don't have GoLang installed, you can download it here.

  1. First you need to clone the repository: 
    git clone https://git.kor-elf.net/kor-elf-shield/kor-elf-shield.git
  2. Go to the folder with the copy:
    cd kor-elf-shield
  3. Compiling:
    go build -o kor-elf-shield

    After compilation, the "kor-elf-shield" file will appear in the folder.

  4. After that, we copy the "kor-elf-shield" to "/usr/local/bin/". This is necessary so that the program can be called in the console simply by writing "kor-elf-shield".
    sudo cp kor-elf-shield /usr/local/bin/kor-elf-shield
  5. After that, we install the necessary launch rights.:
    sudo chmod +x /usr/local/bin/kor-elf-shield
  6. Copying the default settings:
    sudo cp -r assets/configs /etc/kor-elf-shield
  7. Copying the service settings:
    sudo cp assets/kor-elf-shield.service /etc/systemd/system/kor-elf-shield.service
  8. Copying the logrotate setting so that logs can be rotated:
    sudo cp assets/kor-elf-shield.logrotate /etc/logrotate.d/kor-elf-shield
  9.  It is necessary for systemd to see the new service.:
    sudo systemctl daemon-reload

Before launching the program, we recommend that you read the instructions for the first launch.

After reading the instructions and configuring the program, you can set the autorun:

sudo systemctl enable kor-elf-shield

And run the program itself:

sudo systemctl start kor-elf-shield