Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-16082

If SourceIP= is set to IPv4 in /etc/zabbix/zabbix_proxy.conf, the curl should called with -4 flag.

    Details

    • Type: Patch request
    • Status: Closed
    • Priority: Trivial
    • Resolution: Won't fix
    • Affects Version/s: 4.2.1
    • Fix Version/s: None
    • Component/s: Proxy (P)
    • Labels:
      None
    • Environment:
      - Zabbix Proxy with IPv4/IPv6 on its interface.
      - SourceIP= set to IPv4 in /etc/zabbix/zabbix_proxy.conf
      - Web-Checks n Zabbix are used to check a site which has both IPv4/IPv6
    • Team:
      Team A
    • Sprint:
      Sprint 52 (May 2019), Sprint 53 (Jun 2019)

      Description

      Steps to reproduce:

      1. Zabbix Proxy with IPv4/IPv6 on its interface.
      2. SourceIP= set to IPv4 in /etc/zabbix/zabbix_proxy.conf
      3. Web-Checks n Zabbix are used to check a site which has both IPv4/IPv6

      Result:

      1. curl --interface 1.2.3.4 -I https://example.net/
        curl: (45) bind failed with errno 22: Invalid argument

      Expected:

      1. curl --interface 1.2.3.4 -4 -I https://example.net/
        HTTP/1.1 200 OK
        Server: nginx
        ....

      Possible solution:

      If `SourceIP=` is set to `IPv4` in `/etc/zabbix/zabbix_proxy.conf`, the curl should called with `-4` flag.

      Regards,
      Alex.

        Attachments

          Activity

            People

            • Assignee:
              viktors.tjarve Viktors Tjarve
              Reporter:
              zeiter Alex Grebenschikov
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: