Page MenuHomeVyOS Platform

syslog can't be configured with an ipv6 literal destination in 1.2.x
Open, Requires assessmentPublicBUG

Description

In 1.1.x, we could configure syslog to send to an IPv6 address with set system syslog host "[a:b:c:d]:514" facility blah level blah. In 1.2.x, "host" can only be an IPv4 literal or a hostname. Any chance we can get back the ability to send to an IPv6 address?

Details

Difficulty level
Unknown (require assessment)
Version
1.2.6-S1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Try one of them options

set system static-host-mapping host-name n1.log.local inet '2001:db8::2'
set system syslog host n1.log.local facility all
set system syslog host n1.log.local port '514'
set system syslog host 2001:db8::2 facility all
set system syslog host 2001:db8::2 port '514'

1.1.8 configuration

set system syslog host [2001:db8::2]:514 facility all level 'all'

Can't migrate to 1.2

Expected format @[2001:db8::2]:514

# sudo cat /etc/rsyslog.d/vyos-rsyslog.conf 

## generated by syslog.py ##
## file based logging
$outchannel global,/var/log/messages,262144,/usr/sbin/logrotate /etc/logrotate.d/vyos-rsyslog
*.notice;local7.debug :omfile:$global
## remote logging
*.* @[2001:db8::2]:514

Fixed in VyOS 1.4-rolling-202103110218

set system syslog global facility all level 'info'
set system syslog global facility protocols level 'debug'
set system syslog host 192.168.122.1 facility all level 'all'
set system syslog host 192.168.122.1 port '514'
set system syslog host 2001:db8::2 facility all level 'all'
set system syslog host 2001:db8::3 facility all level 'all'
set system syslog host 2001:db8::3 port '514'
set system syslog host 2001:db8::4 facility all level 'all'
set system syslog host 2001:db8::4 port '514'

Rsyslog

vyos@r-roll01# sudo cat /etc/rsyslog.d/vyos-rsyslog.conf 
## generated by syslog.py ##
## file based logging
$outchannel global,/var/log/messages,262144,/usr/sbin/logrotate /etc/logrotate.d/vyos-rsyslog
*.info;local7.debug :omfile:$global
## console logging
## remote logging
*.* @192.168.122.1:514
*.* @[2001:db8::2]
*.* @[2001:db8::3]:514
*.* @[2001:db8::4]:514

It can be "cherry-picked" to 1.3