Skip to content

Instantly share code, notes, and snippets.

@lkmhaqer
Created August 31, 2016 19:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lkmhaqer/2db5f739cf6f46e35103f3fdfd91d270 to your computer and use it in GitHub Desktop.
Save lkmhaqer/2db5f739cf6f46e35103f3fdfd91d270 to your computer and use it in GitHub Desktop.
! pmacctd configuration
!
!
!
daemonize: true
pidfile: /var/run/pmacctd.pid
syslog: daemon
geoip_ipv4_file: /usr/local/share/GeoIP/GeoIP.dat
!
!aggregate: src_host_country, dst_host_country, flows,src_host,dst_host,src_port,dest_port,proto
! on this network
!pcap_filter: net 172.16.0.0/12
! on this interface
interface: any
!
! bgp config
bgp_peer_src_as_type: bgp
bgp_src_local_pref_type: bgp
pmacctd_net: bgp
pmacctd_as: bgp
bgp_daemon: true
bgp_daemon_ip: 172.22.150.119
!bgp_daemon_port: 17979
bgp_daemon_max_peers: 10
bgp_agent_map: /etc/pmacct/agent_peer.map
classifiers: /home/user/traffic-class/
snaplen: 700
plugins: memory
aggregate: src_host_country, dst_host_country, flows, class, src_host, dst_host, src_as, dst_as, peer_src_as, peer_dst_as, peer_src_ip, peer_dst_ip, local_pref, as_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment