[syslog-ng] Configuring syslog-ng to broadcast
Kevin
kkadow at gmail.com
Mon Apr 24 04:19:06 CEST 2006
On 4/23/06, Jim Schuyler <sky at red7.com> wrote:
> Did we ever establish that syslog-ng cannot do a broadcast?
> Sounds like it can not.
It should be trivial to enable, a one-line change to the source, when
creating a UDP transmit socket you also call setsockopt with
SO_BROADCAST.
Maybe a few more lines if the approach taken is to create a new option
for udp destinations such as 'so_broadcast(yes)', just like a file
destination can have 'create_dirs(yes)' set.
There's no harm done in setting SO_BROADCAST and then sending packets
to a unicast address -- the option won't change anything for regular
packets, it just gives the program permission to send to local
broadcast addresses.
Kevin
More information about the syslog-ng
mailing list