Альтернатива samba для linux

чем заменить samba сервер

Переносил инфраструктуру одного windows-сервера на ubuntu-server 14.04. Для поддержки части сети, клиентами которой являются как windows, так и ubuntu клиенты был развернут samba сервер с несколькими ресурсами. Проблема заключается в том, что есть один ресурс, в корневом каталоге которого находится уже 17000 файлов, причем windows-клиенты, заходя на него, получают список файлов и показывают его за секунду-две, в то время как ubuntu-nautilus’ные клиенты загружают ресурс 15-30 секунд. Аналогично с поиском по именам файлов. Чем обуславливается такая разница? Как можно увеличить скорость загрузки списка файлов и поиска?

Я уже копал в сторону увеличения скорости работы smb сервера, но кроме как на скорость загрузки файлов это никак не повлияло. Поиск и открытие длятся долго.

Хотелось бы просто настроить быстрое отображение и поиск по самбе. Однако возможно придется разворачивать параллельно еще какой нибудь сервер для обеспечения скорости у ubuntu клиентов, что вы можете посоветовать в качестве простого в развертывании и эффективного файлсервера для ubuntu? nfs?

nfs норм. Но странно, что так долго на наутилусах. Может, это наутилусопроблемы? Просто монтирование что даёт?

cifs монтирование через autofs ничего не дает, скорость поиска и открытия такая же большая; разве что при поиске наутилус показывает найденные файлы сразу, а не после окончания поиска. может винда использует дополнительные методы для получения списка содержимого, которые не поддерживаются убунтой?

А если не рассматривать nautilius, а что-нибудь другое? Оно так же себя ведёт?

Потому что на винде асинхронный запрос stat() в зависимости от текущих настроек окна эксплопера (тип сортировки, размер окна, тип вывода:список, таблица и т.п.). В итоге, винда запрашивает только первые 10-20 файлов, после инфу скидывает в кэш, народе Thumbs.db. В то время как в линухе все почестному: лс по кругу дергает stat() на каждый файл и так до бесконечности, кэширование это ведь нанотехнологии 🙂

А что Linux не умеет в кэширование?

ну так общее время загрузки даже асинхронно у винды должно быть не меньше чем у убунты. я пытался настраивать aio в smb.conf но это никак не помогло.

Умеет, но для этого надо примастрячить сюда cachefs. И то, я не уверен что будет список кешироваться, а не сами файлы. Ну и да, ядро должно быть с поддержкой SMB2

Источник

Файловый сервер SMB3 появится в Linux 5.15

В версии ядра Linux 5.15 внедрят KSMBD, новую реализацию ​​файлового сервера на протоколе SMB3. Он разработан сотрудниками Samsung и LG и ориентирован на более высокую производительность и новые функции.

Читайте также:  Text editor windows unix line endings

Внедрение KSMBD расширит возможности, связанные с использованием RDMA. Это более простая альтернатива проекта Samba для поддержки SMB/CIFS на Linux и других не-Windows платформах.

Стив Френч, курирующий существующий код CIFS/SMB3 в ядре Linux, в воскресенье вечером отправил пул реквест для внедрения этого файлового сервера.

KSMBD представляет собой новый сервер ядра, который реализует серверную часть протокола SMB3. Его задача состоит в том, чтобы обеспечить оптимизированную производительность и лучшее распределенное кэширование на локальных системах, которое позволяет существенно сократить трафик.

Более глобальной целью KSMBD является более быстрое добавление новых функций (например, RDMA, также известного как «smbdirect», и улучшений в протоколе шифрования и верификации по цифровой подписи), которые легче разработать на более оптимизированном сервере ядра, чем, например, в Samba. Проект Samba намного шире по своему охвату (инструменты, службы безопасности, LDAP, контроллер домена Active Directory и кроссплатформенный файловый сервер для более широкого круга целей), но часть файлового сервера пользовательского пространства Samba оказалась сложной для оптимизации для некоторых рабочих нагрузок Linux, в том числе для небольших устройств.

KSMBD станет расширением, которое будет интегрироваться с инструментами и библиотеками пользовательского пространства Samba там, где это необходимо. С разработчиками Samba уже решен вопрос использования в KSMBD совместимых с smbd файлов конфигурации и расширенных атрибутов (xattrs).

Сервер ядра SMB3 в текущем виде представляет собой 32 тысяч строк нового кода.

UPD: Линус Торвальдс подключил код файлового сервера к ядру Linux.

Источник

Samba Alternatives

#1 Univention Corporate Server

Univention Corporate Server is an efficient and highly advanced IT system that integrates the open-source software to make the networking work in the largest enterprises simple and easy. It is the perfect solution for those who want to get the solutions of the primary MS Windows server.

In addition to integrating the features of MS Windows Server, Univention Corporate Server has owned sets of features as well that are much time more than that of MS Windows Server.

Univention Corporate Server is mainly known for its best management and cost-efficient operating system. It delivers the best possibilities and options to the users for the administration of server applications and even the whole IT system in a more systemized way.

Univention Corporate Server primarily designed for the virtualized IT environment and those who have to manage the entire infrastructure of the IT department regardless of whether the IT administration is using Mac, Linux, Windows, or any other operating system.

The standardized integrated management system of Univention Corporate Server make the users able to administer their servers from different locations across the globe by controlling these from the easy to use the web interface of the Univention Corporate Server. The best about Univention Corporate Server is that it can be installed on any virtual machine or ISO as well and can be started even in the cloud too.

Источник

Какие есть альтернативы Samba для подключения сетевого диска вне локальной сети?

Имеется домашний сервер с белым IP на Ubuntu Server 20, на нем подняты Samba и FTP, прикручен nginx. Подключение гигабит.
Хочется сделать сетевую шару доступной клиентам на Windows через Интернет в виде сетевого диска, после некоторых раздумий пришел к следующим вариантам:
1) Пробросить порт Samba напрямую в Интернет — плохой вариант, небезопасно.
2) Поднять VPN сервер и запускать клиентов в Samba через VPN — приемлемый вариант, безопасно.
Оба варианта выше предварительно не нравятся, потому что после непродолжительного гугления было найдено несколько сообщений о том, что Samba плохо переносит соединения с задержкой, и есть предположение, что пинг у такого подключения будет не меньше 10, если не >40. Не знаю, насколько такая цифра критична, конкретики не было.

Читайте также:  Драйвер ssd для установки windows 10 с флешки

3) Поднять webdav на nginx — плохой (?) вариант, судя по тем же результатам поиска будет медленнее Samba.
4) NFS — давние эксперименты с NFS закончились провалом — нормально шара работала только в локальной сети, но не нужна при наличии Samba и отсутствии Mac. NFS вообще работает\имеет смысл не в локальной сети?

Требование одно: подключение клиенту Windows в виде сетевой шары, то есть network drive, с возможностью не только скачивать, загружать и удалять файлы (FTP), но и открывать их напрямую с диска. Мелких файлов не ожидается вообще, скорее всего они будут не меньше 10 гигабайт. Желательно, конечно, выжать из гигабита максимум. Клиенты будут доверенные, поэтому вопрос безопасности стоит только в плоскости уязвимостей (привет тухлым версиям Samba).

Вопроса два:
1) Какой из этих вариантов будет работать быстрее всего?
2) Может быть, я упускаю еще какие-то решения?

На собственные эксперименты времени пока нет, может быть у кого-то есть опыт решения подобного вопроса.

Источник

Samba alternatives

Looking for an alternative tool to replace Samba? During the review of Samba we looked at other open source tools. Based on their category, tags, and text, these are the ones that have the best match.

Top 3

  1. Dionaea (honeypot)
  2. SMBMap (SMB enumeration tool)
  3. Samba-VirusFilter (antivirus plugin)

These tools are ranked as the best alternatives to Samba.

Alternatives (by score)

Dionaea

Introduction

Project details

Dionaea is written in C.

Strengths and weaknesses

  • + The source code of this software is available
  • — Full name of author is unknown

Typical usage

SMBMap

Introduction

SMBMap allows scanning of file resources that are shared with the SMB protocol. The tool will list share drives, drive permissions, the share contents, upload/download functionality, file name auto-download pattern matching, and even execute remote commands. The tool was created for pentesters to simplify finding sensitive data, or at least test for it.

Project details

SMBMap is written in Python.

Strengths and weaknesses

  • + The source code of this software is available

Typical usage

  • Data leak detection
  • Information gathering
  • Penetration testing

Samba-VirusFilter

Introduction

Project details

Strengths and weaknesses

  • + The source code of this software is available

keimpx

Introduction

Project details

keimpx is written in Python.

Strengths and weaknesses

  • + The source code of this software is available

Typical usage

  • Penetration testing
  • Security assessment

BuQuikker

Introduction

Project details

BuQuikker is written in Python.

Strengths and weaknesses

  • + The source code of this software is available

Typical usage

  • Data leak detection
  • Security assessment

Bucket Finder

Introduction

The Bucket Finder tool can be a helpful tool during penetration testing and security assessments. It helps with the discovery of S3 buckets on the Amazon AWS cloud.

Project details

Bucket Finder is written in Ruby.

Strengths and weaknesses

  • + The source code of this software is available
  • — No updates for a while
Читайте также:  Linux bash case example

Typical usage

  • Data leak detection
  • Penetration testing
  • Security assessment

Bucket Stream

Introduction

Bucket Stream can be used to discover AWS S3 buckets. This tool may be helpful during reconnaissance and security assessments. As it does not include active scanning on the target itself, it is a passive way of finding information. This is a huge benefit, as you don’t have to guess or brute-force the names.

Project details

Bucket Stream is written in Python.

Strengths and weaknesses

  • + Tool is easy to use
  • + The source code of this software is available
  • — No releases on GitHub available

Typical usage

  • Discovery of sensitive information
  • Information leak detection
  • Penetration testing
  • Reconnaissance

S3Scanner

Introduction

The aptly named S3Scanner is to be used to detect AWS S3 buckets. Discovered buckets are displayed, together with the related objects in the bucket.

Project details

S3Scanner is written in Python.

Strengths and weaknesses

  • + The source code of this software is available

Typical usage

  • Information gathering
  • Information leak detection
  • Penetration testing
  • Storage security testing

Teh S3 Bucketeers

Introduction

Tools like Teh S3 Bucketeers are valuable for doing reconnaissance and information gathering. They may be used during penetration tests and security assessments. The primary goal of these tools is to find S3 buckets that may lead to sensitive data stored on Amazon’s storage service.

Project details

Teh S3 Bucketeers is written in shell script.

Strengths and weaknesses

  • + The source code is easy to read and understand
  • + Used language is shell script
  • + The source code of this software is available
  • — No releases on GitHub available

Typical usage

  • Penetration testing
  • Security assessment
  • Storage security testing

inSp3ctor

Introduction

Like other S3 bucket scanners, inSp3ctor helps to find valid storage buckets on Amazon’s AWS platform. This can be useful for security assignments like penetration testing or see what information is available about a company. Another option is using it to see if any private data is leaking.

Project details

inSp3ctor is written in Python.

Strengths and weaknesses

  • + The source code is easy to read and understand
  • + Very low number of dependencies
  • + The source code of this software is available
  • — No releases on GitHub available

Typical usage

  • Penetration testing
  • Security assessment
  • Storage security testing

nfsshell

Introduction

Tools like this are typically used to manually check security problems with NFS. It can provide more details about an NFS server and the resources it has available.

Project details

nfsshell is written in C.

Strengths and weaknesses

  • + The source code of this software is available

Typical usage

  • Application security
  • Storage security testing

OnionShare

Introduction

This tool is useful for sharing sensitive data, including information to be shared with journalists where you rather stay anonymously. It can also be helpful for sharing bigger amounts of data, without having to use a typical cloud service like Dropbox.

Project details

OnionShare is written in Python.

Strengths and weaknesses

  • + More than 50 contributors
  • + More than 2000 GitHub stars
  • + Many releases available
  • + The source code of this software is available

Typical usage

Some relevant tool missing as an alternative to Samba? Please contact us with your suggestion.

Источник

Оцените статью