#
# Configuration file for /usr/local/sbin/AcctLog
#
# Use perl(1) syntax for variable definition
#

# Local nets. Only addresses belonging to them will be resolved to names.
#
# Format:
# 	@local_nets = ( "net", "net", ... );
#
# A net should be specified in "net_address/mask_len" notation.
#
@local_nets = (
	# Networks that are in my reverse DNS zones:
	"20.20.20.0/22",	# clients
	"30.30.30.0/24",	# backbone
	"40.40.40.240/28"	# dialup pool
);


# Group lists.
#
# Format:
#	%lists = (
#		"list name" => [ "host group", "host group", ... ],
#		"list name" => [ "host group", "host group", ... ],
#		...
#	);
#
# See TAS.html for details 
#
%lists = (
	"Clients" => [
		"?my.domain.com",
		"my.another-domain.com",
		"*my.internal-lan.com",
		"200.200.200.0/22",	# to aggregate unresolved hosts
		"300.300.300.0/24",
		"*400.400.400.240/28"
	],
	"AnotherISP_1"	=> [
		"50.50.50.0/23",
		"60.60.60.0/23"
	],
	"AnotherISP_2"	=> [
		"70.70.70.0/20"
	],
	"Peers"	=> [
		"AnotherISP_1",
		"AnotherISP_2"
	]
);


# Table definitions for each type of traffic.
#
# Format:
#	%tables = (
#		"traffic type" => [	# set of tables
#			[			# table definition
#				"table caption",
#				"category expression",
#				sort_column,
#				"resolve flag"
#				[		# set of columns
#					[		# column definition
#						"column caption",
#						"category expression",
#						"traffic direction",
#						"measurement units",
#						"agent host list",
#						"protocol list",
#						"status list",
#					],
#					[
#						...
#					],
#					...
#				],
#				"rounding option"
#			],
#			...
#		],
#		"traffic type" => [
#			...
#		],
#		...
#	);
#
# See TAS.html for details 
#
%tables = (
	"ip" => [
		[
			"Traffic for clients (KBytes)",
			"Clients",
			-2,	# descending sort by column 2
			"false",
			[
				[ "In (all)", "total", "to", "mbytes", "*", "*", "*" ],
				[ "Out (all)", "total", "from", "mbytes", "*", "*", "*" ],
				[ "In (ext.)", "total-Peers-Clients", "to", "mbytes", "*", "*", "*" ],
				[ "Out (ext.)", "total-Peers-Clients", "from", "mbytes", "*", "*", "*" ],
				[ "In (peering)", "Peers", "to", "mbytes", "router5", "*", "*" ],
				[ "Out (peering)", "Peers", "from", "mbytes", "router5", "*", "*" ],
				[ "In (local)", "Clients", "to", "mbytes", "*", "*", "*" ],
				[ "Out (local)", "Clients", "from", "mbytes", "*", "*", "*" ]
			],
			"up"
		],
		[
			"Peering traffic (KBytes)",
			"Peers",
			1,	# alphabetic sort by column 1
			"false",
			[
				[ "In", "Clients", "to", "gbytes", "router5", "*", "*" ],
				[ "Out", "Clients", "from", "gbytes", "router5", "*", "*" ]
			],
			"nearest"
		]
#	],
#	"squid" => [
#	],
#	"sendmail" => [
#	],
#	"mailgate" => [
	]
);


# Don't remove this!
1;
