Ubuntu sunucusunu SMB ile paylaşım klasörü haline getirilip Veeam ile bağlantı sağlanmak istenirse yapılması gerekenler şu şekildedir.
Ubuntu:
Örnek Samba servisi ayarları ve yetki detayları
NOT: Yapılan ayarlar tam yetki vereceği için dış IP adreslerinde dikkatli olunmalı.
apt install -yqq samba
cp /etc/samba/smb.conf /etc/samba/smb.conf.ydk
mkdir /mnt/sharefolder && cd /mnt/sharefolder/
groupadd smbgrp && usermod root -aG smbgrp
cat <<EOT > /etc/samba/smb.conf
[global]
workgroup = SAMBA
security = user
passdb backend = smbpasswd
client min protocol = SMB3
client max protocol = SMB3
socket options = TCP_NODELAY
[sharefolder]
comment = Makdos Share Folder
path = /mnt/sharefolder
browseable = yes
writable = yes
public = yes
valid users = @smbgrp
guest ok = no
read only = no
create mask = 0777
directory mask = 0777
EOT
cat <<EOT >/etc/security/limits.conf
* soft nofile 1000000
* hard nofile 1000000
* soft nproc 1000000
* hard nproc 1000000
EOT
cat <<EOF >/etc/sysctl.conf
net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.all.rp_filter=1
net.ipv4.tcp_syncookies=1
net.ipv4.ip_forward=0
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control= bbr
EOF
apt install -yqq zip unzip htop preload >/dev/null 2>&1
echo 'GOVERNOR="performance"' >/etc/default/cpufrequtils && systemctl disable ondemand >/dev/null 2>&1
smbpasswd -a root
chmod -R 0777 /mnt/sharefolder && chown -R root:smbgrp /mnt/sharefolder
ufw disable
systemctl restart smbd
Set-SmbClientConfiguration -SessionTimeout 9999