Hi guys,
As I want to create a backup server for my computers (probably using a Raspberry Pi), and I would like to work even when my computer is not in the same network), I decide to get a hostname to myself. In order to be ready when I buy my Pi, I started testing the configuration using my Solus computer.
My hostname is brazausrouter.ddnsfree.com and I'm using dynu.com to update the public IP of the hostname. For that, I installed ddclient. Also, I created a folder ~/Public/samba_solus and shared it using samba. My /usr/share/defaults/samba/smb.conf has no modifications and my /etc/samba/smb.conf was just added the following lines:
[sambasolus]
comment = Samba on Solus
path = /home/eddie/Public/solus_samba
read only = no
browsable = yes
I have this Solus machine, a Windows one and an Ubuntu virtual machine (I'll use the server edition in the Pi). After conduction some tests the results are:
Ping:
- Internal network: all machines can ping Solus' private IP and the hostname (some showed the ipv4 and others the ipv6 number)
- External network (Windows and Ubuntu using my phone as hotspot): none of the machines were able to connect to Solus (but they showed the right ip address). After did the same with Solus (using the phone as hotspot), updated dynu.com and checked it, tried to ping the new IP and still the same with the three machines (again ping showed the right address)
SSH
- Internal network: all machines can ssh using the private IP and the hostname (NAT forwarding). So in case, the ssh command for the hostname looks like:
ssh eddie@brazausrouter.ddnsfree.com -p <port_number>
- External network (Windows and Ubuntu using my phone as hotspot): both machines could reach the Solus computer
Samba
- Internal network: all machine can reach the samba folder using Solus' private IP. None of the machines connected using the hostname. I tried:
smb://brazausrouter.ddnsfree.com
smb://brazausrouter.ddnsfree.com:<port>. This is another port redirecting to 445
smb://brazausrouter.ddnsfree.com/sambasolus
smb://brazausrouter.ddnsfree.com<port>/sambasolus
However, in another attempt I was prompted to login and even tough I used the same password that I did for the offline connection it was refused.
- External network (Windows and Ubuntu using my phone as hotspot): didn't work at all times
So I'd like to know what I am doing wrongly and make the hostname functional at all times.
Last, my ddclient is:
ddclient configuration for Dynu
#
/etc/ddclient.conf
daemon=120 # Check every 120 seco>
syslog=yes # Log update msgs to s>
mail=root # Mail all msgs to roo>
mail-failure=root # Mail failed update m>
pid=/var/run/ddclient.pid # Record PID in file. >
use=web, web=checkip.dynu.com/, web-skip='IP Address' # Get ip from server.
server=api.dynu.com # IP update server.
protocol=dyndns2
login=ebiscaia # Your username.
password=****** # Password or MD5/SHA2>
brazausrouter.ddnsfree.com # List one or more hos>
#MYDOMAIN.COM
I would like to check if ddclient is being updated accordingly with the daemon parameter and what I could do if not.
Thanks,
Eduardo