OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: Burschi on December 16, 2020, 08:06:36 pm

Title: syslog-ng message every minute, trying to connect to orphaned interface
Post by: Burschi on December 16, 2020, 08:06:36 pm
So i was in the process converting my internal net to VLAN only networks, with the last step of disabling/unassigning my native LAN interface (igb2, 192.168.10.254). After doing so i found messages from syslog-ng, repeating every minute:
Code: [Select]
syslog-ng Error binding socket; addr='AF_INET(192.168.10.254:0)', error='Can\'t assign requested address (49)'
syslog-ng Initiating connection failed, reconnecting; time_reopen='60'


After fiddling around looking for forgotten references to the old if in the config i found out that the reason was in some config file not available through gui:

Code: [Select]
/usr/local/etc/syslog-ng.conf.d/legacy-remote.conf

network("192.168.10.220" transport("udp") port(514) ip-protocol(4) localip(192.168.10.254));


where .220 is my syslog protocol server and .10.254 is the old if address. Changing that to the new ips solved the problem.
Title: Re: syslog-ng message every minute, trying to connect to orphaned interface
Post by: franco on December 18, 2020, 02:19:24 pm
Should be fixed via syslog-ng in 20.7.6 and up?


Cheers,
Franco
Title: Re: syslog-ng message every minute, trying to connect to orphaned interface
Post by: Burschi on February 06, 2021, 03:21:53 pm
I donĀ“t know if this solves the problem too, i found it by trial-and-error and thought someone might have the same problem.

Sorry for being late to reply.
Title: Re: syslog-ng message every minute, trying to connect to orphaned interface
Post by: franco on February 06, 2021, 04:08:57 pm
I haven't heard this issue again after 20.7.6 so far... either fix is fine for me ;)


Cheers,
Franco