Hi.
Please could you advise.
I would like to use pmacct-fe to monitor the bandwith usage on different ports, so i can monitor perfomance of vpns ..
I need to monitor eth0 public interface all traffic all ports eth1 private interface eth1 all ports and tun0...
I need some help making sense of the syntax of pmacctd.conf, so I can achieve the above ..
!
! pmacct configuration example
!
! daemonize: true
! debug: true
!
plugins: pgsql[out], pgsql[in], pgsql[shsp], pgsql[shdp], pgsql[dhsp], pgsql[dhdp]
plugin_pipe_size: 1024000
! plugin_buffer_size: 8192
sql_cache_entries: 99991
sql_history: 1h
sql_history_roundoff: h
! sql_passwd: yourpassword
!
interface: eth0
! promisc: true
!
!
! The following filter avoids internal traffic to be counted; transit network may also
! require to discard non-local in-transit traffic.
! pcap_filter: vlan and (not ((src net 150.145.80.0/20 or src net
194.119.200.0/21) and (dst net 150.145.80.0/20 or dst net
194.119.200.0/21)))
!
!
aggregate[out]: src_host
aggregate_filter[out]: vlan and (src net 150.145.80.0/20 or src net 194.119.200.0/21)
sql_optimize_clauses[out]: true
sql_table[out]: acct_out
sql_refresh_time[out]: 60
!
aggregate[in]: dst_host
aggregate_filter[in]: vlan and (dst net 150.145.80.0/20 or dst net 194.119.200.0/21)
sql_optimize_clauses[in]: true
sql_table[in]: acct_in
sql_refresh_time[in]: 60
!
!
aggregate_filter[shsp]: vlan and (src net 150.145.80.0/20 or src net 194.119.200.0/21)
aggregate[shsp]: src_host,src_port,proto
sql_table[shsp]: srchost_srcport
sql_refresh_time[shsp]: 120
sql_optimize_clauses[shsp]: true
sql_preprocess[shsp]: minb=60000
!
aggregate_filter[shdp]: vlan and (src net 150.145.80.0/20 or src net 194.119.200.0/21)
aggregate[shdp]: src_host,dst_port,proto
sql_table[shdp]: srchost_dstport
sql_refresh_time[shdp]: 120
sql_optimize_clauses[shdp]: true
sql_preprocess[shdp]: minb=60000
!
aggregate_filter[dhsp]: vlan and (dst net 150.145.80.0/20 or dst net 194.119.200.0/21)
aggregate[dhsp]: dst_host,src_port,proto
sql_table[dhsp]: dsthost_srcport
sql_refresh_time[dhsp]: 120
sql_optimize_clauses[dhsp]: true
sql_preprocess[dhsp]: minb=60000
!
aggregate_filter[dhdp]: vlan and (dst net 150.145.80.0/20 or dst net 194.119.200.0/21)
aggregate[dhdp]: dst_host,dst_port,proto
sql_table[dhdp]: dsthost_dstport
sql_refresh_time[dhdp]: 120
sql_optimize_clauses[dhdp]: true
sql_preprocess[dhdp]: minb=60000
--
Gregory Machin
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.linuxpro.co.za
www.exponent.co.za
Web Hosting Solutions
Scalable Linux Solutions
www.iberry.info (support and admin)
+27 72 524 8096
