[syslog-ng]localport binding...

Nate Campi nate@campin.net
Sun, 15 Sep 2002 18:33:51 -0700

On Sun, Sep 15, 2002 at 08:16:13PM -0400, Robert D. Beal wrote:
> I'm trying to get syslog-ng (1.5.20) to use 514 as its source port when 
> using the udp destination driver as follows:
>     destination d_syslog { udp("" destport(514) localport(514)); 
>     };

I had no idea you could set the local port, I just checked the source of
1.5.20 and found this example:

  destination d_tcp { tcp("" port(1999); localport(999)); };

Looks like you need this:

 destination d_syslog { udp("" port(514); localport(514));  };

Give it a shot.
"Vampireware /n/, a project, capable of sucking the lifeblood out of
anyone unfortunate enough to be assigned to it, which never actually
sees the light of day, but nonetheless refuses to die."