"call home"

Status
Not open for further replies.

Scareh

Contributor
Joined
Jul 31, 2012
Messages
182
After last week's break in where they stole stuff from my garage where my freenas box resides i'm wondering if there is something that can let my freenas box call home if it ever gets stolen.
With call home i mean, whenever it gets connected on a different home network then the current one, it starts sending mails/packets/ip's/gps location on where it currently resides.
I'm not sure something like that exists or not, so figured i'd ask ;-)
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Sure. Put in a cron script. But the reality of it is that unless it's me breaking into your garage, your server is going to be taken down to the local used computer store or pawn shop and get parts'd out. And if I'm taking your server, it'll be put on a net where it has no chance of getting data out. The likelihood of such a script actually ever doing anything useful is close to nil.

But here's an example anyways.

If you have some sort of dynamic DNS set up for your home Internet connection, the easiest thing to do is some sort of variation on a script that runs hourly and at boot to do some pings to the dynamic DNS hostname. Assuming you can tell your NAT gateway to forward those to you, it means you can tell the IP address of the NAT gateway of the network where the box is. Something like

Code:
#! /bin/sh -
PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH

homenet=dynamic.foo.bar.whatever

ping -c 10 -i 60 -q ${homenet} > /dev/null
exit 0


Now you put that somewhere and call it in your cron and your startup script and your NAS will do that. There's a few implicit things in here such as rather than just starting a single "ping forever" it'll periodically retry, which gives it an opportunity to do a new DNS lookup.
 

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
Nevermind the - "hey, what's this random USB thing doing on the back of this box? Here, let me take that off and see what's on it, bah can't read it, I'll just format it. "
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Nevermind the - "hey, what's this random USB thing doing on the back of this box? Here, let me take that off and see what's on it, bah can't read it, I'll just format it. "

Naw. It needs to be wired into the thermite, so when you remove it, the NAS burns.
 

hugovsky

Guru
Joined
Dec 12, 2011
Messages
567
To be honest, this is what I have for security at my nas site:

terminator-the-sarah-connor-chronicles-mobile-wallpaper.jpg


:p
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
I want to say that's Summer Glau from Firefly...? But I'm bad at names and faces.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Nevermind the - "hey, what's this random USB thing doing on the back of this box? Here, let me take that off and see what's on it, bah can't read it, I'll just format it. "
My boot devices are inside the chassis, you insensitive clod. :p
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
you know you can just use the built-in dynamic DNS function to call home. i.e, if you have dyn.com service, you can use one of your hostnames, say, 12345.endoftheinternet.net to give the IP address of where it's plugged in. Then all you have to do is DNS that hostname.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Ah, I see. That probably explains why the outfit made no sense.
 
Status
Not open for further replies.
Top