Ubuntu Server as reverse proxy for Exchange 2003

Recently I was faced with a challenge. We needed to get our OWA/OMA sites out of the DMZ so we could stop Internet traffic from directly connecting to our Exchange server. The world seemed to give us two options: ISA firewall (which is upwards of $1000 plus hardware) or a reverse proxy.

I wasn’t a big fan of buying the Microsoft Firewall, the Windows Server license and the hardware, and there were plenty of reverse proxy appliances available, but this is only a temporary solution until we upgrade to 2010, so I didn’t want to drop change on those solutions either. I decided I would create a virtual instance of Ubuntu Server and install Apache with mod_proxy for the price of free.

I’m not going to go through all the steps, but this snippet here is probably the most important part. Drop that into your /etc/apache2/sites-enabled/000default file with your tweaks and it’ll be a great start.

Luckily for us, our internal domain name and our external domain name were different, so there were no DNS issues. If your names are the same, you’ll probably have to do some host file tweaking.

My actual configuration file is far more complex than this starter file, as I had multiple interfaces to monitor. Please excuse any references in the config file to multiple interfaces.

I don’t claim to be a Linux expert, so there may be a more secure/efficient way to do this, but for me, this has worked great. The proxy uses almost zero resources and has yet to cause any problems after 3-4 months in production. 

Let me know how this works for you and if I can help in the comments.

Disclaimer: No promises that this solution will work for you. I take no responsibility for any changes you make to your configuration.

Click here to download:
000default.rtf (3 KB)
(download)

Another iPhone 4 Restore Fix (1013)

I recently was trying to upgrade my iPhone to the 4.3 beta software, when I kept getting the 1013 error from iTunes towards the end of the restore process. I finally found out why iTunes couldn't connect to the Apple servers.

Apparently Cydia modifies your host file to redirect gs.apple.com to their servers. If you don't undo that modification, your iPhone cannot connect to Apple.

To correct this, open Terminal. Enter "sudo nano /private/etc/hosts," enter your password, and comment the line refering to gs.apple.com. The results should be similar to below. Hit ctrl+x and then Y to save.

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost 
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
#127.0.0.1 gs.apple.com
#74.208.10.249 gs.apple.com


Then try the restore again.

iMovie '11 Hangs Loading Aperture Videos

Once I upgraded to iLife '11, I began to experience issues loading my Aperture videos in iMovie '11. Also, my Aperture photos weren't available in the Media Browser. It always displayed the message, "Loading Aperture Images." It drove me crazy for a while until I ran across the solution. Now I'll share:

Navigate to your Aperture Library, right click and choose "Show Package Contents." This will open a new Finder window. After you have made a backup of the library file, delete the iLifeShared and the iMovie-Thumnails folders. Reopen iMovie, iDVD or any other iLife product you were having issues with.

Homescreens

Iphone

I appreciate beauty and simplicity, especially when it comes to gadgets. I guess that's why I love Apple so much. I recently spent some time beautifying my iPhone, so I thought I'd share the results, as well as point you in the direction to do the same.

Let's start with the background, since it's the easiest. This comes from Jimsy and is available here.

The next thing I worked on was the Twitter for iPhone icon. I think the default is really dull compared to the app as a whole. Loren really had something nice in the beginning and Twitter's acquisition ruined it. I took some time and put my non-existant Pixelmator skills to use to come up with this.

I decided I'd share my work. Download the Twitter for iPhone (cough, Tweetie) icon here. Now, you may notice the little black line around the icon when you use a light background. As I said before, I'm no good with software such as Photoshop or Pixelmator, so by all means, fix it and share the fixed version. 

In case you didn't know, you can change your iPhone App icons without jailbreaking. Lifehacker has a great tutorial on how to accomplish this.

Anyway, this is what I'm working with and I thought I'd share. I still haven't come across my Homescreen.me invite yet, so this will have to do for now. Enjoy!

Now share yours.

UPDATE: My homescreens.me profile

Fix: iPhone 4 Hangs in Restore

After the Jailbreakme.com website went live, I believe I was one of the first few to jump on board. I wanted to jailbreak my new iPhone 4 so I could get back to the fun loving I had with my 3G with WiFi sharing/tethering and SBsettings, etc.

I remembered seeing Wi-Fi Sync on YouTube and TUAW, but I also knew that it didn't get approved by Apple, so I thought I'd add that to my list of Jailbroken Apps to check out.

After doing some further "jailbreaking," I figured I've probably screwed up more stuff that I needed to, so I wanted to do a restore. Haha, well that didn't go so well. The iPhone 4 continuously hung at approximately 60%, and iTunes reported about 99%. I'm not going to lie, I started to freak.

After a Google session and a couple of beers I've determined that the Wi-Fi Sync component on the Mac was the culprit. After running their uninstall script, I was able to completely restore my iPhone.

Cheers to that! I hope this helps someone else who is desperately trying to find the solution.

Jailbreak iOS4 (iPhone 4)

This just in...
You can now jailbreak almost any iOS device (i.e. iPod Touch, iPhone 3GS, iPhone 4, iPad) by visiting http://jailbreakme.com and swiping your finger across the screen. Dead simple. It installs Cydia in seconds.

Please note: I have seen discussions that this jailbreak may cause issues with MMS and Facetime on iPhone 4. If you experience these problems, just use iTunes to restore your device.

Favorite Safari 5 Extensions

In case you haven't heard, Safari 5 introduced third-party extensions. This allows developers to write plugins that modify the way the browser behaves or adds browser functionality. Safari Extensions has compiled a list of extensions available for Safari until Apple launches its official Extension Store, but that's a lot of extensions to rummage through. Here's my list of extensions that I use every day.

Adblock - This is by far the most necessary extension for me. It blocks ads. Dead simple. My only complaint is the ugly button it installs into your toolbar. That's easily dropped by "customizing toolbar."

HelvetiReader - Restyles your Google Reader feed into something much more aesthetically pleasing.

NoMoreiTunes - Stops Safari from auto-launching iTunes when browsing the App Store or iTunes Music Store in the browser.

Autocomplete - Overrides sites' request to block autofilling field information, i.e. passwords.

Google Lightboxer - Nice lightbox for Google Image searches.

Facebook Zen - Allows you to block various Facebook "features" such as ads, suggestions, etc.

CloudPreview - You may remember my review on Cloud.app. This extension previews HTML5 video from Cloud.app in the browser without having to download the file first.

WideYouTube - Defaults YouTube videos to the larger, wider format.

Enjoy, and feel free to add your own.