Use case: writing TrueNAS reporting data to influxdb app (graphite, port 2003) on same host
I use the official 1.8 influxdb docker image from docker hub. As TrueNAS SCALE does not provide an option to use a custom port to send reporting data to influxdb, I'm stuck to 2003. Thus I defined an external interface in the influxdb app settings. After changing the reporting settings to this IP I noticed, that no data arrives in influxdb. But if I point the reporting data from another TrueNAS system to this influxdb app, data comes in. So, the app works via external interface IP. If I point the reporting from the TrueNAS SCALE system to the other TrueNAS system's influxdb, data arrives there too. So sending reporting data from TrueNAS SCALE works too. That puzzled me.
These are the systems I used for basic networking checks. Both apps are deployed on the TrueNAS SCALE host.
Result from basic network check with ping:
4 -> 1 works
4 -> 2 works
4 -> 3 works
1 -> 2 doesn't work (From 192.168.178.190 icmp_seq=1 Destination Host Unreachable)
1 -> 3 doesn't work (From 192.168.178.190 icmp_seq=1 Destination Host Unreachable)
1 -> 4 works
3 -> 1 doesn't work (From 192.168.178.192 icmp_seq=1 Destination Host Unreachable)
3 -> 4 works
3 -> 2 works
Could not check from 2 because the influxdb image lacks even basic troubleshooting programs like ping
So it seems that no packets are routed between host and apps via the external interface.
Routing table (1)
Routing table (3)
So it seems that no packets are routed between host and apps via the external interface.
Is there a way to fix this (besides setting up a TIG stack in a VM instead of apps
)?
I use the official 1.8 influxdb docker image from docker hub. As TrueNAS SCALE does not provide an option to use a custom port to send reporting data to influxdb, I'm stuck to 2003. Thus I defined an external interface in the influxdb app settings. After changing the reporting settings to this IP I noticed, that no data arrives in influxdb. But if I point the reporting data from another TrueNAS system to this influxdb app, data comes in. So, the app works via external interface IP. If I point the reporting from the TrueNAS SCALE system to the other TrueNAS system's influxdb, data arrives there too. So sending reporting data from TrueNAS SCALE works too. That puzzled me.
These are the systems I used for basic networking checks. Both apps are deployed on the TrueNAS SCALE host.
1 | TrueNAS SCALE host (TrueNAS-SCALE-22.02.4) | 192.168.178.190 |
2 | influxdb app(from docker hub) | 192.168.178.193 |
3 | pihole app (from docker hub) | 192.168.178.192 |
4 | TrueNAS CORE host | 192.168.178.115 |
Result from basic network check with ping:
4 -> 1 works
4 -> 2 works
4 -> 3 works
1 -> 2 doesn't work (From 192.168.178.190 icmp_seq=1 Destination Host Unreachable)
1 -> 3 doesn't work (From 192.168.178.190 icmp_seq=1 Destination Host Unreachable)
1 -> 4 works
3 -> 1 doesn't work (From 192.168.178.192 icmp_seq=1 Destination Host Unreachable)
3 -> 4 works
3 -> 2 works
Could not check from 2 because the influxdb image lacks even basic troubleshooting programs like ping
So it seems that no packets are routed between host and apps via the external interface.
Routing table (1)
Code:
root@truenas-scale[~]# ip route list default via 192.168.178.1 dev eno1 proto static 172.16.0.0/16 dev kube-bridge proto kernel scope link src 172.16.0.1 192.168.178.0/24 dev eno1 proto kernel scope link src 192.168.178.190 root@truenas-scale[~]#
Routing table (3)
Code:
root@pihole-ix-chart-84c4898bd6-kxlgf:/# ip route list default via 172.16.0.1 dev eth0 172.16.0.0/16 dev eth0 proto kernel scope link src 172.16.0.64 192.168.178.0/24 dev net1 proto kernel scope link src 192.168.178.192 root@pihole-ix-chart-84c4898bd6-kxlgf:/#
So it seems that no packets are routed between host and apps via the external interface.
Is there a way to fix this (besides setting up a TIG stack in a VM instead of apps