Skip to content

israel-lugo/netforeman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetForeman

license CodacyBadge

Making sure your network is running smoothly.

NetForeman is your network's foreman: an advanced programmable network system supervisor. It is meant to run on network infrastructure systems, such as routers or automated probes, for automatic monitoring and reacting to a wide array of situations.

The idea behind this program is to automate issue detection and problem solving whenever possible. You shouldn't have to stare at screens and graphs 24/7 to know that your firewall's connection tracking table is almost full. When that happens, you shouldn't have to manually go check the top 10 flow endpoints, to find out that a single host is sourcing 1,000,000 flows to different IPs.

Likewise, you shouldn't have to check the routing table on 20 routers to find out that your OSPF designated router is failing in a silent way, still sending out hellos but no longer redistributing LSAs (the consequence being that both the DR and BDR have a full table, but every other router is isolated from the network).

NetForeman's mission is to help detect, diagnose and react to these sorts of problems.

Features

NetForeman supports both IPv4 and IPv6.

This is currently a work in progress; the feature set is under development. The following features are planned for now:

Verifications

  • Monitor the routing table (only Linux for now, but designing for extensibility)
    • The number of routes is within a certain range
    • There is a route for a certain prefix
    • The route for a certain prefix is through a specific nexthop
  • Monitor running processes
    • A certain process is running
  • Monitor connection tracking
    • The number of tracked connections doesn't exceed a certain limit
  • Monitor active DHCP servers
    • Only a specific set of IPs respond to DHCP queries

Actions

Triggered by a verification failure:

  • Insert routes
  • Send emails
  • Restart services
  • Execute arbitrary scripts

Installing

NetForeman requires Python 3.

From source

NetForeman can be run directly from the source directory, as long as the requirements are already installed (or copied to the root of the source directory).

The following third-party modules are required:

netaddr can be installed with the python3-netaddr package on a Debian or Ubuntu system, or dev-python/netaddr on a Gentoo system. pyroute2 would be package python3-pyroute2 on Debian or Ubuntu, but it must be version 0.4.0 or greater; it has no Gentoo package available. pyhocon has no package available for Debian, Ubuntu or Gentoo. pyparsing can be installed as python3-pyparsing on Debian or Ubuntu, or as dev-python/pyparsing on Gentoo. psutil can be installed through package python3-psutil on Debian or Ubuntu, or dev-python/psutil on Gentoo.

Contact

NetForeman is developed by Israel G. Lugo <[email protected]>. Main repository for cloning, submitting issues and/or forking is at https://github.com/israel-lugo/netforeman

License

Copyright (C) 2016, 2017 Israel G. Lugo <[email protected]>

NetForeman is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

NetForeman is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with NetForeman. If not, see <http://www.gnu.org/licenses/>.

Releases

No releases published

Packages

No packages published

Languages