- Your server IP address:
/*
* your collector address - syntax: 10.0.0.90, can be empty
*/
#define RECEPTION_ADDRESS ""
- The UDP port declared on your routers:
/*
* your collector port to recept netflow export
*/
#define RECEPTION_PORT 9999
- Routers declaration (be carefull, the index is not the number of your routers, it's the index in the file ROUTERS_LIST, add +1):
/*
* routers index max + 1
*/
#define ROUTER_INDEX_MAX 62
/*
* FILE with your routers IP address
*/
#define ROUTERS_LIST "/home/maintenance/CONF_RENETCOL/R4_R5_routers_list.txt"
- Only if accoun ting mode enabled, declaration of your PREFIX/CIDR:
/*
* FILE with your prefix/subnet
*/
#define SUBNETS_LIST "/home/maintenance/CONF_RENETCOL/T1T2.srt"
- Only if IPv6 accounting mode enabled:
/*
* FILE with your IPv6 prefixes list
*/
#define SUBNETS_V6_LIST "/home/maintenance/renetcol-0.0.14beta3/conf/SUBNETSV6.txt"
- For BGP AS accounting:
/*
* FILE with the list of AS with accounting
*/
#define AS_LIST "/home/maintenance/CONF_RENETCOL/AS_MS.txt"
- For accounting modes:
/*
* constants, here a subnet is include in a prefix
*/
#define MAX_IPV4_PREFIX 1
#define MAX_IPV4_SUBNET 2
#define MAX_AS 4
#define MAX_IPV6_PREFIX 0
#define MAX_IPV6_SUBNET 0
- For DoS detection threshold:
#define MAX_PKTS_DOS 35000 /* dos threshold */
#define RATIO_DOS 1500 /* packets average size */
#define RATIO_FIELD 69 /* field 69 is a "reserved" field who is not used actualy. */
- IMPORTANT: file where filters are declared:
/*
* FILE for the rules
*/
#define RULES_FILE "/home/maintenance/CONF_RENETCOL/rules.txt"
- Declaration of interfaces types: customers vs backbone, for accounting mode
/*
* FILE with SNMP index of the interfaces
* tagged "C"ustomers or "B"ackbone
*/
#define INTERFACES_TYPE_LIST "/home/maintenance/CONF_RENETCOL/interfaces_BB_or_Client.txt"
- Maximun SNMP index:
/*
* maximum SNMP index
*/
#define MAX_SNMP_INDEX 1000
- maximum number of interfaces by router
/*
* maximum number of interfaces by router (one interface == one SNMP index)
*/
#define MAX_INDEX_BY_ROUTER 200
- Paths to RRD data files:
/*
* Path to the rrd file, change and create directories (if no accounting, just create MIB_RRD_LOCATION):
*/
#define PREFIX_RRD_LOCATION "/home/andreu/data/RRD/RENATER/PREFIX/"
#define MATRIX_RRD_LOCATION "/home/andreu/data/RRD/RENATER/MATRIX/"
#define AS_RRD_LOCATION "/home/andreu/data/RRD/RENATER/AS/"
#define SNMP_INDEX_RRD_LOCATION "/home/andreu/data/RRD/RENETCOL_MIB/"
#define MIB_RRD_LOCATION "/home/andreu/data/RRD/RENETCOL_MIB/"
- Your CoS (if accounting):
/*
* Your CoS - DSCP field in decimal notation, EF PHB 101110 (46) == ToS 10111000 (184)
*/
#define FIRST_CoS 46 /* EF, Premium - dec 46, bin 101110 - ToS 10111000 */
#define SECOND_CoS 34 /* AF41, Best than BE - dec 34, bin 100010 - ToS 10001000*/
#define THIRD_CoS 8 /* CS1, Less than BE - dec 8, bin 001000 - 00100000 */
#define FOURTH_CoS 0 /* Best Effort or All flows if not in the 3 others class */