SMB share across two subnets

Solution 1:

So it seems @user1686 is right, it looks like there is a "hidden firewall". After installing Merlin-WRT all started working as expected, without any configuration changes.