mtr
mtr copied to clipboard
Unable to run mtr in ICMP mode inside of container
I am using a RHEL8 box to host a podman container. I have installed mtr inside of it, but am unable to get ICMP or TCP traces working, but UDP ones do. My container is based on the UBI8 image.
Running UDP mode produces the output I would expect, and I see a list of hops and the statistics for each:
mtr -u google.com
Running in TCP mode I only see the first hop:
mtr -T google.com
Same with running in ICMP mode:
mtr google.com
The issue with both TCP and ICMP is that only the first hop is displayed and nothing else. What is interesting, is that the hostname for the first hop will change quickly until settling on the final hop name. Almost like a screen rendering issue.
Seems like the root issue is with how MTR needs to access the network sockets, and needs host level networking to be supplied? Just hoping to get some clarity on how one could get MTR working probably in RHEL8 in a podman container. Thanks!
Looks like there is NAT for the container's TCP and ICMP traffic?