Valve with bypass connections