[syslog-ng] syslog-ng and IPv6 Interface Binding

Gergely Nagy algernon at balabit.hu
Tue Apr 5 15:01:57 CEST 2011


Reuben Farrelly <reuben-syslogng-list at reub.net> writes:

> I was hoping for a config like this (IPv6 address truncated somewhat):
>
> source net {
>          tcp6( ip(2001::20) port(601) max_connections(25) );
>          udp6( ip(2001::20) port(601) max_connections(25) );
> };
>
> But seems to be a no-go:
>
> -----
>
> Error parsing afsocket, syntax error, unexpected LL_NUMBER, expecting 
> LL_IDENTIFIER or LL_STRING in /etc/syslog-ng/syslog-ng.conf at line 32, 
> column 18:
>
>          tcp6( ip(2001::20) port(601) max_connections(25) );
>                   ^^^^
> -----

I haven't tested it yet, but my vague guess is that ip("2001::20")
should work. (The documentation does mention that ip() expects a string
value)

However, I haven't tried this, so your mileage may vary.

-- 
|8]


More information about the syslog-ng mailing list