Conditionaly fixed issue with host reachability for gateway