Synology Folder Compression

I had a desire to enable compression after the fact on some shares. Synology (As of DSM 6.0) doesn’t have the facility to modify the compression settings of a folder after the initial creation – and perusing the forum, it seems you can’t enable compression at all on the /homes location.

Much discussion orbits the topic of chattr, how it isn’t installed and how to go about installing it. I have a way to do it without installing anything! btrfs-progs is already installed 😀

SSH into the device, and issue the command (as root)

btrfs property set /volume1/homes compression lzo

The btrfs command gives you plenty of other options to explore – perhaps best as a non-root user. Now to find a built-in for disabling Copy of Write.

Advertisements

Cisco Split DNS On a Router

I have this problem. My WAN sites get IP addresses from the DHCP server in the datacenter. DHCP says the DNS servers are the local corporate DNS servers (also in the DC). So what happens when the tunnel from the WAN site to the DC goes down?

Users can’t even surf facebook. Oh the horror. But really, users shouldn’t have their Internet access cut off just because the DC lost power or was sacrificed to a volcano god. Especially since we use hosted services. Email should always work, even if head office is down!

What we need is for DNS requests for myspace and reddit to go to the regular public DNS server, and requests for theservers.localdomain.lan to go to the corporate DNS servers.

Turns out there’s-an-app-for-that using dns-views within the router…

Continue reading

SSH Tunnels

I wish somebody told me 5 years ago that I could make an Microsoft Remote Desktop connection from a MacBook at home to the Windows Server at the office without the VPN client software and all the limitations of the implementation used. See, I’m a network geek, I need to get data from point A to point B, I need to do it quickly and reliably. And of course without spending any money.

BEHOLD! OpenSSH!

I use this command:

[1334][haxcess@Virus-Container:~]
$ ssh -C -R 2210:localhost:22 -p 222 -i .ssh/id_rsa.pub haxcess@haxcess.com

Hacking Securom with UNIX

I found myself in a situation: Securom error 1000. Or, “we don’t like you because you don’t fit our corporate model of the ideal consumer.”

Disclaimer: This is a lesson in overcoming corrupt read-only media.

I wanted to install a piece of software that didn’t like my particular set of software installed. More specifically, I was having trouble installing Oblivion GOTY because the Securom protection doesn’t like that I run Windows virtually within OSX with Parallels. Or maybe it’s the disc emulator software installation. However the case, this post is how I circumvented that difficulty using UNIX WIZARDRY and a patched setup file. Users win every time.

Continue reading

Cisco Password Recovery

So you have a cisco device that is password protected, perhaps it is a mission critical core device and you lost the password. It doesn’t matter why, but maybe when you recover it, take note of it this time.

So what I present here is a method for actually recovering the MD5 hashed “Enable” or user passwords through a dictionary attack (and physical access). Continue reading

Microwave Timer

The timer on my microwave is cofused. When I enter 33, it runs for 33 seconds. 67, it runs for 67 seconds. 94, it runs for 94 seconds. 99, 99 seconds. Notice a pattern? I think that it would be great if the device kept this neato pattern, because I like seconds. They’re pretty long anyways. So what comes after 99? 99+1 = 60. 100 means 60 seconds. If I wanted 60 seconds, I would enter 60, not 100.

Stupid microwave.