Why is the rum always gone?...
|
So I’ve done a couple of articles about my new filesharing appliance the PogoPlug over the last year. Absolutely fantastic device, use it often remotely.
One thing that I’ve been unable to get working so far was the native OS application. The application allows you to map a drive directly to the drives connected to the appliance, hence the last article about installing a samba server on it. This issue probably won’t apply to most folks, my home network is a little unique compared to the average person buying a commercial router from Linksys, Belkin or the like. Skip to the bottom for the commands if you’re not interested in my reasons for splitting the networks.
So, I have two completely separate networks at the house. One is wired, and the other is wireless, they interconnect through some various switches but ultimately demarc on an IPCop firewall. The wired network is where my home servers and toys connect (SlingBox, ssh server, pogoplug) whereas the wireless is mostly computers or smartdevices.
With this setup, I don’t have any want or need to proxy traffic from the wired network as they’re essentially all services. From the wireless where we actually surf however, I like to run URLFiler and Advanced Proxy on the IPCop box to get filter out ad servers and malicious and adult websites. The problem with doing this is that the clients need an UNFILTERED direct connection to both the PogoPlug device and the main PogoPlug server out in internet land. Until today I mostly used the samba share to get around this, but it started bothering me and after some poking around I came up with a very easy solution.
You may be asking, why not just add an exception in squid? Well, it doesn’t seem to work through the IPCop interface. And modifying the actual config files would do the job, but the next time IPCop restarts or I add something in the web interface, it would wipe out the manual changes I made. So, lets fall back to good old iptables and prerouting!
By adding these two rules, we save a whole lot of headaches, and the software works perfectly:
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d service.pogoplug.com -j ACCEPT
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d [POGOPLUG_IP] -j ACCEPT
The first line allows an unfiltered connection to sercvice.pogoplug.com which
.....Continue reading Running pogoplug behind a squid proxy (ipcop)
Munin is a great open-source monitoring solution for servers. I’ve used it in the past and was really happy with the results, but when I was using it my server was just a little VPS and running the server and node on the same box caused some system resource issues. But now having colo equipment in the rack at DimeNOC I decided to give it another go.
Installation was pretty much straightforward, the instructions on their website were sufficient to get the server up and running. There was some confusion, however, getting some plugins to play nicely. So, to pick up where the official installation instructions left off, I’ll go over some of the issues and solutions I was able to come up with.
What you’ll need to know from the installation
The location of the munin logfiles. You can set this in the munin.conf file. I used /var/log, seemed like the obvious choice. Your preferences may vary.
The location of your munin config files, and plugins.
Config files are typically placed in /etc/opt/munin/
Plugin files are typically in /etc/opt/munin/plugins
Plugin special configs are typically in /etc/opt/munin/plugin-conf.d
If you installed from source, you should have all that information in the installation scrollback. If you installed from an RPM, first try the paths above; if they’re not there then time to run the ‘ol trusty updatedb and do a locate.
Ok, so now that we have all that stuff taken care of, it’s time to dive right in. By default, there are no plugins enabled. In order to enable them we need to put them in the /etc/opt/munin/plugins directory. If you’d like some help determining what plugins to use, run the munin-node-configure script that came with the installation:
-bash-3.2$ /usr/sbin/munin-node-configure –suggest
Plugin | Used | Suggestions
—— | —- | ———–
acpi | yes | yes
amavis | no | no
apache_accesses | yes | yes
apache_processes | yes | yes
apache_volume | yes | yes
apc_envunit_ | no | no [no units to monitor]
bonding_err_ | no
.....Continue reading Munin plugins and system configuration..
I know there are a bunch of articles online about installing samba on Pogoplug (or openpogo enabled) devices. I read quite a few of them and still ran into trouble installing it on my appliance so I though I’d do a quick write-up of how I got things rolling.
First, you need to install the OpenPogo base package. Very detailed and effective directions are available here. A couple of notes about OpenPogo before you go running off though. First, it requires an external USB drive to install on, and run from. Second, if you remove the USB drive (perhaps mistakenly thinking you were done with it) the filesystem that was on there is dismounted and everything running from it stops. And finally, the USB stick will have to be reformatted into a linux ext2 or ext3 format which means you’ll lose any existing data on it. Best to find an older 1GB stick and use that for this as the packages seem rather small.
Ok, so once you’ve installed the OpenPogo software onto your external USB drive, rebooted, mounted, etc, what you’ll need to do is run ipkg to install Samba. You should be able to execute this command to kick it off:
-bash-3.2# ipkg install samba2
This kicks off the download and installation process which I imagine under ideal circumstances should take care of the whole thing for you. If it did, skip this section and see the configuration part below. I’ll warn you though, the downloads were very slow for me, took about twenty minutes to download the seven meg file even though I was able to wget it to my linux box much faster.
The problem I had was an invalid MD5 checksum when using the automatic installer, so I resorted to manually downloading the file, then installing it.
-bash-3.2# cd /root
-bash-3.2# mount -o rw,remount /
-bash-3.2# ipkg download samba2
-bash-3.2# ipkg install samba2_2.2.12-2_arm.ipk
Once the install has completed successfully, you should turn on the server by running this command:
-bash-3.2# /opt/etc/init.d/S80samba start
After which you can verify that the server is running by checking the output of netstat
-bash-3.2# netstat -an | grep ":13[7-9]"
tcp 0 0 0.0.0.0:139
.....Continue reading Installing Samba on your pogoplug
After reading some reviews on Engadget and Gizmodo I broke down and purchased a PogoPlug from buy.com (they were on special for $47.99 at the time, $79 at the time of this writing).
Pogoplug is an appliance that you can connect to your home network which runs a custom version of linux. The device has a gigabit ethernet port, three USB 2.0 ports on the back and one on the front. Basically, you plug your external USB hard-drives into this thing and it makes your files available to you no matter where you roam.
Best part (for home users) is that there are no firewall rules that need to be put on your home router or custom firewall. The device heartbeats out to their servers in the cloud and make the whole thing possible without a lick of configuration being required. Caveat: UDP has to be unfiltered outbound for this to work, so “real” firewalls may have to have allow statements put in them.
So, with your purchase of the hardware, you get lifetime support and access to your personal “storage in the cloud”. This can be accomplished remotely (or locally) via the web client or samba/windows shares. You also have the option to share files and folders with the world, individual users, etc. There’s even a client that runs on the Mac, PC and iPhone to access files directly and see them as locally mounted drives. If you happen to be on the same network your connections go directly to the device and not through the Pogoplug servers.
From my iPhone, I’ve been able to stream movies over WiFI and 3G with great quality. The Pogoplug device will convert audio and video files on the fly to allow streaming to the iPhone/iPod/iPad/PC/Mac, etc. Sweet little deal, if you happen to have a bunch of movies or music on your external drive(s).
Through the use of OpenPogo you can even install custom software on the appliance like samba, squid, bittorrent, a webserver, etc! Since this little guy runs on linux, the possibilities are endless really.
Been using this for a couple of weeks now, and I’m really impressed. The company announced just a few days ago that a new firmware update would allow for printing through the
.....Continue reading New gadget: Pogoplug
Just yesterday Netflix released their much awaited iPhone app (or I should say, Apple approved and published their app to the iTunes store). So far I’m pretty impressed with it.
The application allows you to obviously browse your instant queue, watch whatever you like and resume where you left off should you change directions on them. One thing I was surprised to see when I first logged into the application was that I was using all six of my licenses. Very much akin to the iTunes “authorized computers” schema. I was directed to their website where I had the option to kill devices, some of which I had not streamed on in quite some time. The message on that screen said that devices can be added and removed pretty much at will, so no big deal there.
So, back to the app. The video quality is very good, comparable to a downloaded movie from the store (or one you ripped). WiFI was very fast obviously, but 3G wasn’t really too far behind it, took a few moments to load and buffer, but solid after that.
I’m really glad I stuck with my grandfathered unlimited data plan with AT&T, I could see how getting an application like this approved would benefit them greatly financially as users on a limited data plan burn through their megabytes and gigabytes without a second thought. Careful out there, oh limited bandwidth users. Everyone else, burn it up! Cheers.
Back in June, movie rental giant Netflix promised an iPhone app this summer. So far, no app, no word. So, what’s the deal, summer is certainly coming to an end, and very soon. Apparently, in addition to not monitoring their official blog for spam, they’re also not commenting on the status of their iPhone app. Is it coming, or isn’t it?
Thanks again to LifeHacker, I’ve been playing around with Geek Tool. It’s a tool for OS X that can do a bunch of things, I’m using it to create some desktop widget type things. I got the code to display the current weather conditions from this post and decided to play around with adding some additional code.
So after mucking around with the graphical interface and figuring a few things out (which really isn’t difficult to do) I came up with a little routine that checks latency to the inside interface on my firewall. It’s really nothing special but I kind of like seeing it up there.
You can paste this into the command window in Geek Tool or put it in a file and call it as a shell script. Here’s the code (replace YOURIP with your real IP address obviously). You may need to modify the script slightly if your ping output isn’t the same as what I’m using.
ping -c 1 YOURIP | grep -i icmp_seq | sed -e ‘s/64 bytes from YOURIP: icmp_seq=0 ttl=64 time=/Wireless lag: /’
I set the refresh rate for 60 seconds and have the status feedback image enabled, if the little green bubble turns red then it’s skipped a beat. I found a bunch of other really useful posts about scripting too, here’s a couple to get you started if you’re interested:
http://www.macthemes.net/forum/viewtopic.php?id=16793954
http://www.maclife.com/article/howtos/customize_your_desktop_geektool
http://www.cattail.nu/mac/geektool/
http://blogof.francescomugnai.com/2009/04/mega-roundup-of-geektool-scripts-inspiration-gallery/
http://appmagezine.com/?p=8025
I’ve been doing a lot of reading online, trying to find which personal VPN service would be best for me to use. The concept of using a non-work VPN is a little foreign to me, but now that I’m finding myself connecting more and more to the internet away from home and through public wifi access points (or wireless at work) I though it might be high time to invest in a little security.
Right now I’m evaluating (and by evaluating I mean I paid for a month of access) VPN services by the folks over at HideMyAss. Now, for the record, I hate the name and think they should call their professional VPN services by another name, but I guess what really matters is how the service functions.
So, for about $12/month (less if you pay for a longer subscription) you get to choose from 28 different VPN endpoints in nine different countries. Pretty handy I suppose if you’re in the UK and wanted to watch video that is restricted by region to the US. Not what I need it for, but the functionality exists.
I’m a Mac user and installation was really easy, even though I’m running an older operating system (10.4.11). They have a client you can use that autoconfigures, or you can use PPTP VPN tunneling built into the OS and be up and running in minutes.
So far, so good. Speeds are really good. I can’t really see any notable difference in my connection speed while connected or disconnected. I’ll continue to play with it for a while, but will still be looking around for more options.
So, what say you, got some experiences or reviews you’d like to share? Jump in and leave a comment..
|
|