Coder Social home page Coder Social logo

fastnetmon-netio's Introduction

FastNetmon-netIO

Installation

Download the relevant file and place it in an appropriate location:

wget https://fastnetmon.netio.com.tr/fastnetmon-netio -O /usr/bin/fastnetmon-netio

Grant the file appropriate permissions:

chmod +x /usr/bin/fastnetmon-netio

echo "{}" | sudo tee /usr/bin/output.json > /dev/null

Create a systemd unit file to run it as a service and paste the following content:

nano /etc/systemd/system/fastnetmon-netio.service

Contents of /etc/systemd/system/fastnetmon-netio.service:

# /etc/systemd/system/fastnetmon-netio.service

[Unit]
Description=FastNetMon - netIO
After=network.target

[Service]
ExecStart=/usr/bin/fastnetmon-netio
Restart=always
User=nobody
Group=nogroup
WorkingDirectory=/usr/bin/

[Install]
WantedBy=multi-user.target

Enable the service:

systemctl enable fastnetmon-netio

Start the service:

systemctl start fastnetmon-netio

Using the notify_about_attack.sh File

Create the notify_about_attack.sh file:

nano /usr/local/bin/notify_about_attack.sh

Contents of /usr/local/bin/notify_about_attack.sh:

#!/usr/bin/env bash

if [ "$4" = "unban" ]; then
	curl http://127.0.0.1:8179/remove/$1
	exit 0
fi

if [ "$4" = "ban" ]; then
	curl http://127.0.0.1:8179/add/$1
	exit 0
fi

Grant the file appropriate permissions:

chmod +x /usr/local/bin/notify_about_attack.sh

Edit the FastNetMon configuration file:

nano /etc/fastnetmon.conf

Set the notify_script_path parameter as follows:

notify_script_path = /usr/local/bin/notify_about_attack.sh

Setting up BGP with Your Router

To set up FastNetMon-netIO with your router for BGP, you will need the following information:

FastNetMon-netIO IP= Your server IP address
ASN= 65090
TCP Port= 179
Multihop= enable

Incoming prefixes are tagged with a 666 community tag.

Warning

You can use IP Tables on your installation server. Keep TCP port 8179 closed to the outside.

fastnetmon-netio's People

Contributors

alptekinsunnetci avatar

Stargazers

 avatar Max avatar Theo Baschak avatar

Watchers

Max avatar  avatar

Forkers

zlobar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.