Moved from: https://github.com/MarioVilas/network_tools