[ZBX-22219] Agent2 ipv6 address does not match allowed hosts with brackets Created: 2023 Jan 18  Updated: 2024 Apr 10  Resolved: 2023 Apr 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 6.2.6
Fix Version/s: 5.0.34rc1, 6.0.16rc1, 6.4.2rc1, 7.0.0alpha1, 7.0 (plan)

Type: Problem report Priority: Major
Reporter: Kevin Schick Assignee: Konstantins Prutkovs (Inactive)
Resolution: Fixed Votes: 1
Labels: agent
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

docker image list
REPOSITORY TAG IMAGE ID CREATED SIZE
zabbix/zabbix-agent2 alpine-6.2-latest cb678bbe1ee5 6 hours ago 70.1MB


Team: Team C
Sprint: Sprint 97 (Feb 2023), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023)
Story Points: 0.5

 Description   

The source address is not matched against ServerActive as described in the documentation.

ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]

It seems the square brackets around the ipv6 address cause a missmatch.

 

Steps to reproduce:

ServerActive=[2001:db8::1]:10051

Result:
=> connection from "2001:db8::1" rejected, allowed hosts: "[2001:db8::1]"
Expected:
2001:db8::1 should match [2001:db8::1] 

 

This bug was initially filed in the zabbix-docker github repo as #1044 but is was concluded that the problem is not caused by the docker environment parameters.



 Comments   
Comment by Konstantins Prutkovs (Inactive) [ 2023 Feb 17 ]

kprutkovs RESOLVED in feature/ZBX-22219-6.2

Comment by Konstantins Prutkovs (Inactive) [ 2023 Apr 17 ]

Fixed in:

Generated at Sun Apr 20 20:47:51 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.