Hi guys,

I have been running pmacct with no issues for sometime now, I'm about to add
another network card to my setup to run a bunch of load balanced servers
using LVS (keepalived).

My current pmacctd.conf is this 
!
! pmacct configuration
!
debug: true
logfile: /var/log/pmacct.log
daemonize: true
promisc: false
interface: eth1

plugins: mysql[in], mysql[out]

aggregate[in]: dst_port,dst_host,proto
aggregate_filter[in]: dst net 202.45.102.0/24
sql_table[in]: eth1_in

aggregate[out]: src_port,src_host,proto
aggregate_filter[out]: src net 202.45.102.0/24
sql_table[out]: eth1_out

sql_recovery_logfile[in]: /root/recovery-in-eth1.sql
sql_recovery_logfile[out]: /root/recovery-out-eth1.sql

sql_host: xxx.xxx.xxx.xxx
sql_db: pmacct
sql_table_version: 1
sql_user: xxx
sql_passwd: xxx
sql_refresh_time: 60
sql_optimize_clauses: true
sql_history: 1m
sql_history_roundoff: mh
sql_dont_try_update: true

I gather from reading I need to setup another config file and run a second
instance or pmacctd for the second interface.
What I don't know is what to set the aggregate_filter as.

I'm using LVS-NAT for the load balancer so my eth2 interface has 192.168.1.1
on it. 

firewall# ip addr
1: lo: <LOOPBACK> mtu 16436 qdisc noop
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
3: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:40:d0:43:b7:cc brd ff:ff:ff:ff:ff:ff
    inet 202.45.103.86/30 brd 202.45.103.87 scope global eth0
    inet 202.45.102.90/32 scope global eth0
    inet 202.45.102.91/32 scope global eth0
    inet 202.45.102.92/32 scope global eth0
    inet 202.45.102.71/32 scope global eth0
    inet 202.45.102.72/32 scope global eth0
4: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:0e:0c:d0:71:bc brd ff:ff:ff:ff:ff:ff
    inet 202.45.102.1/25 brd 202.45.102.127 scope global eth1
    inet 202.45.102.90/32 scope global eth1
    inet 202.45.102.70/32 scope global eth1
5: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:40:d0:43:b7:cd brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global eth2

But LVS will be "balancing" the ip 202.45.102.70... have I lost you yet....
So my question is how do I setup pmacct to track the traffic on eth2? Eth2
being "masq's" as such...

Cheers
Adam



_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to