Category Archives: Open source

Demystifying SMB 3 x multichannel – part 9 – VM1 (Debian Linux 10) on Host1 to VM2 (Windows Server 2019) on Host2

I finally managed to make it work … 🙂 So this time we are trying to establish multichannel between Debian Linux with Samba 4.9.5-Debian and Windows server 2019 (that preferres SMB 3.1.1 dialect). Each of VMs on separate Hyper-V hosts has 4 virtual network adapters connected. I entered the hostnames of VMs in hosts files both – on Windows and Linux as I am not running any DNS server in the test network.
So I added 4 entries on each machine. On Debian I have created a simple smb.conf example file to make it work:

[global]
workgroup = WORKGROUP
interfaces = eth0, eth1, eth2, eth3
bind interfaces only = Yes
vfs objects = recycle aio_pthread
aio read size = 1
aio write size = 1
strict locking = No
use sendfile = no
server multi channel support = yes
server string = samba server
security = USER
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
guest ok = yes

[storage]
comment = Storage
path = /var/samba
writeable = yes
public = no

As you can see in video by using Linux command in terminal: smbstatus I am getting similar information as running get-smbmultichannel Powershell cmdlet on Windows. I can clearly see how servers are connected between them by using SMB protocol.

As you can see in video Windows machine, from which I am copying data to Linux utilizes all four network adapters but we are getting only 2 gigabit throughput. On Linux side there are only two NICs utilized. I was not able to make it work by using all four adapters (like machines were utilizing in previous part in Windows VM to Windows VM scenario). Well I just wanted to demonstrate that concept works also in mixed environment with Windows and Linux.

Advertisements

Ko se sprašuješ o firewallu in usmerjevalniku… / When you are asking about what kind of firewall and router to use…

V zadnjem času sem kar precej časa posvetil dvema odprtokodnima firewalloma/routerjema, m0n0wall-u ter pfSense-u. Celotna mreža kiWi-Fi network je postavljena na m0n0wallu. Obe zadevi delujeta super tudi v specifičnih režimih delovanja (transparent firewall, dodatni programski paketi (pfSense) …)

In the past weeks I spent some time to check the two opensource firewall/router programs: m0n0wall and pfSense. The kiWi-Fi network infrastructure is based on m0n0wall. Both produts work perfectly even in complex and specific environment (transparent firewall, extra packages (pfSense) …).

Že večkrat so me ljudje spraševali o znanih težavah – preveliki količini sej (še posebej ob uporabi raznih *donkey *mule in podobnih P2P programih). Za vse tiste je primeren spodaj naveden članek. “Računica” pa je nakako takšna: 32MB RAMa = 30000 sej. 🙂

Some people asked me about the known troubles using low cost routers – too many sessions (when using *donkey and *emule like p2p programs). For all that have questions regarding this problem there is a link below. The calculation is quite simple: 32MB of RAM = 30000 sessions. 🙂

http://www.openbsd.org/faq/pf/perf.html
http://m0n0.ch/wall/
http://www.pfsense.com/