There is a cute litte program called sshuttle for shuttling IP subnet traffic over and SSH connection, like a VPN but doesn’t require any setup on the remote end.
As far as i understand, it will add a firewall rule to the client saying which destinations to tunnel (the specified netmask), and will forward these packets using a python script through an ssh pipe to a python script in the other end that will spit out the packets into the target network.
Turns out in Yosemite Apple removed ipfw and moved over to pf, so in order to get it to work you need the newest version of sshuttle, from here (which supports pf):
I struggled a bit to find out how to store my Photo Library on a NetGear ReadyNAS. SMB did not work, and SSHFS did not work either. I was unable to get AFP working too, and I saw that it was discouraged.
The solution was to mount the drive using NFS. Then I created a sparse bundle disk image with a Mac OS Extended (Journaled) partition with an Apple Partition Map, on the NFS mounted partition, and moved my Photos Library.photoslibrary onto the mounted image. Everything seems to be running fast and smoothly. (I’m on a gigabit LAN.)
It should be noted that I use ext4 for my NAS partitions, don’t know if it matters.
So I bought a MacBook Pro and wanted to start using Mac OS X as my primary OS. I’m used to Windows/Linux so I have some preferences as to behaviour. There are some things that are kind of annoying, many of which can be fixed. Also there are some tricks that make me more productive.
XBMC (now Kodi) has always had a tendency of leaking memory, so that it will eventually thrash and crash. My simple solution to this is to run xbmc inside a for loop instead of directly (just run the script from .xinitrc):
while [ 1 ]; do
nohup sleep 10
…And add the following to the local XBMC user’s crontab:
0 4 * * * killall xbmc.bin
This will kill XBMC every night at 4 o’clock. And give you a fresh XBMC every day!