can't get 0.0.0.0 source to work when used in config
Hi,
here I am again needing samplicator to duplicate SNMP traps from a set of sources to two destinations.
Working
Using receiver on the command line works, eg with an empty config file
/usr/sbin/samplicate -c /etc/samplicator.conf -d 0 -f -S -s 111.22.33.44 -p 162 -4 111.22.33.44/1162
All my SNMP traps coming into port 162 go out to same host, port 1162. So far so good.
Broken
If I use a config entry in /etc/samplicator.conf :
0.0.0.0/0.0.0.0:111.22.33.44/1162
And no destination on the command line:
/usr/sbin/samplicate -c /etc/samplicator.conf -d 0 -f -S -s 111.22.33.44 -p 162 -4
packets are not being sent out, respectively they show up with -d 1 in the console but they do not go out to port 1162.
The last sentence of the README : Receivers specified on the command line will get all packets, those specified in the config-file will get only packets with a matching source. might be an explanation, but I fail to understand the logic.
@sleinen : could you please explain ?