Nöbetnode CF Installation

Nöbetnode CF Installation

For ban ip on cloudflare, you need to install Nöbetnode CF on a server.

When an ip cached on Nöbetci, Nöbetnode CF bans the ip using Cloudflare Firewall Rules API.

Install Nöbetnode CF with this command:

sudo bash -c "$(curl -sL https://github.com/muttehitler/nobetnode-cf/raw/main/script.sh)" @ install

During the installation, you must enter your Cloudflare API Token.

ℹ️

How to get Cloudflare API Token

You can get API Token from Cloudflare page > Manage Account > Account API Tokens. Select “Create Custom Token”. Give “Account.Account Firewall Access Rules” permission and select “Edit”.

  • You’d notice the logs, which you could stop watching by pressing Ctrl+C; The process will continue running normally.
  • the configuration file can be found at /etc/opt/nobetnode-cf/.env (.env file doc)
  • Data files will be placed at /var/lib/nobetnode-cf; e.g. the client certificate.
⚠️
To install the latest nightly release use the --nightly flag.

Then get client certificate using nobetci cli on main server

nobetci cli node settings

After getting client certificate, write it in this file on node server: /var/lib/nobetnode-cf/client.pem

nano /var/lib/nobetnode-cf/client.pem

Up the Nöbetnode CF

nobetnode-cf up

After that add your Nöbetnode CF to Nöbetci with this command (Run it on main server and replace your node name with {node_name}):

nobetci cli node add -n {node_name} -a 127.0.0.1 -p 51032

Then restart Nöbetci

nobetci restart
  • If you add Nöbetnode CF with api, no need to restart

To see the help message of the Nöbetnode CF script, run the following command

nobetnode-cf --help