Ad Widget

Collapse

SourceIP for IPv4 AND IPv6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xxiii
    Junior Member
    • Jun 2013
    • 28

    #1

    SourceIP for IPv4 AND IPv6

    I need to specify a sourceip for both ipv4, and ipv6, but this doesn't seem to be possible?

    zabbix_server [16510]: ERROR: invalid "SourceIP" configuration parameter: 'x.x.x.x, x:x:x::x'

    zabbix_server [16537]: ERROR: invalid "SourceIP" configuration parameter: 'x.x.x.x,[x:x:x::x]'
  • forbiddenlake
    Junior Member
    • Sep 2015
    • 3

    #2
    Same question here. When I set SourceIP to an IPv4 address, the Zabbix (2.4.6) server cannot connect to my ipv6-only hosts. Can I set an IPv6 SourceIP?

    Comment

    • xxiii
      Junior Member
      • Jun 2013
      • 28

      #3
      I ended up adding this to our /etc/network/interfaces file on our zabbix server:

      # ipv6 default gateway
      auto eth0:ipv6-gateway
      iface eth0:ipv6-gateway inet6 manual
      pre-up ip route add ::0/0 via x:x::x
      pre-down ip route del ::0/0 via x:x::x

      where x:x::x is on the same network you want it to send out on (and you have an interface with an address in that network).

      This works as long as you don't mind other things originating on that ip OR your other software allows its source-ip to be configured, and you don't have more than one ip in the same network. (or you don't run anything else on your zabbix server).

      Comment

      Working...