Adventures with Vultr #2: SMB Over Internet

Things have been progressing nicely with Vultr apart from the lack of available instances in Australia. Whilst almost everything is available in my region, block storage and storage nodes aren’t. This creates a huge issue for me as I’m running a server that requires a fair amount of disk space but not a lot of processing power, and latency is a big issue for me.


I’ve spun up a test instance of our companies software to test out the feasibility of a purely online solution for some of our online-only clients. The environment handles a lot of media so disk space will obviously be a thing that people need the most of, however processing power is only required in short bursts. Vultr will allow me to increase the storage of my machines however I need to upgrade my instances – not a very feasible option.

Utilizing a storage node is only possible in Japan, LA, Amsterdam and NJ so I can’t create a private network from the storage node to my Sydney VC2 instance. Similarly, Block Storage is only available in NJ, so I can’t attach it to my Sydney instance either.

My only solution is the NJ storage instance I purchased a while ago when it was available, and map it to my Windows instance in Sydney over the internet. This will be interesting…


The solution here is to create an SMB share that’s open to the world (wow), but requires a user/pass to access. I’ll also lock down access via IP tables.

Install Software

yum -y install samba samba-client samba-common

Create the Share

mkdir -p /data/
cat >> /etc/samba/smb.conf << peof
[Data]
workgroup = WORKGROUP
path = /data/
valid users = thingo
writable = yes
peof

Configuring Authentication

useradd thingo
smbpasswd -a thingo

Locking down firewalld

firewall-cmd --permanent --add-service=samba
firewall-cmd --reload

Blog, ComputersComments Off on Adventures with Vultr #2: SMB Over Internet