Hello, I’m a new user of TrueNAS. I have installed TrueNAS Community on an old PC, and with the help of a video tutorial, I have set up the basics. I was looking to have remote access to my NAS from outside my house, so with the help of an AI chatbot, I installed Tailscale on my NAS, PC, and phone, and this works perfectly well.
At the same time, I have set up Wake-on-LAN on my Ethernet adapter from my PC and phone. But now I’m struggling a lot to do both together: connecting from outside my house with Tailscale and sending the magic packet to wake up my NAS. I have tested it to be sure my NAS receives the packet with the commands sudo tcpdump -i enp2s0 port 9 -v and sudo tcpdump -i tailscale0 port 9 -v. On tailscale0, I receive my packet from ip.255 and ip.254, but on enp2s0 I only receive it from ip.254.
Never used tailscale, but WoL magic packets are in the datalink layer so they require no don’t have IP. And usually cannot be sent over VPN (except maybe OpenVPN TAP, but TAP is not supported on mobile devices).
IMO, the easiest way to send a magic packet from outside is to access your router (via VPN) and send it from here – many routers have an option for sending magic packets.
Thanks for your answer. I understand that Tailscale is based on WireGuard and that it provides a VPN option for my connection from outside my house, making it feel like I am on my home network. I think the issue is that Tailscale is offline when I want to send the magic packet, so it doesn’t work. When the NAS is on, Tailscale works, so the VPN works too, and I am able to see my NAS from outside my house.
How networking works is totally unknown to me, but I am ready to learn more about it. I have started looking into my router, and it seems there is an option to enable this; unfortunately, I can’t test it for now (my router is a Freebox Revolution).
If you have any recommendations or suggestions for me, I would be really happy to read them!
Welp, if tailscale is a “direct” peer-to-peer vpn it is one of the issues. And the second is the one I’ve mentioned: L2 non tcp/ip packets are usually don’t work over vpn.
Google says that your router supports multiple VPNs. No tailscale, though.
IMO, your course of action should be something like:
Setup ddns to map dns to your IP in case your ISP gives you a dynamic IP. Something like duckdns should do.
Install a VPN “server” on your router.
Install corresponding VPN “client” on your phone.
After establishing a connection, access the GUI of your router from your phone.