Add support for IPCOP – Advanced Proxy – Update Accelerator to cache Antivirus ESET Nod32 update files

I’ve been digging and foraging for infos about this one. The author of this ipcop great plugin, stated in the FAQ that it is possible to add custom rules for Update Accelerator, but can’t seem to find the guide anywhere.

Here are my findings so far :

Simply edit this file in your IPCOP box:


and you will find these lines :

while (<>) {


    @tmp=split(/ /,$request);

    $source_url = $tmp[0];
    $hostaddr   = $tmp[1]; while ($hostaddr =~ /.*\/$/) { chop $hostaddr; }
    $username   = $tmp[2]; if ($username eq ”) { $username=’-‘; };
    $method     = $tmp[3];

    $xlrator_url = $source_url;

    if (($method eq ‘GET’) || ($method eq ‘HEAD’))

    # ———————————————————–
    #  Section: Windows Update / Windows Downloads
    # ———————————————————–

    if (
        (($source_url =~ m@^http://[^/]*\.microsoft\.com/.*\.(exe|psf|msi|msp|cab)$@i) ||
         ($source_url =~ m@^http://[^/]*\.windowsupdate\.com/.*\.(exe|psf|msi|msp|cab)$@i))
    &&   ($source_url !~ m@^http://[^/]*\.microsoft\.com/.*(/autoupd|selfupdate/).*\.cab@i)
    &&   ($source_url !~ m@\&@)
        $xlrator_url = &check_cache($source_url,$hostaddr,$username,”Microsoft”,$unique);

    # ———————————————————–
    #  Section: Adobe Downloads
    # ———————————————————–

    if (
        ($source_url =~ m@^http://(ar)?download\.adobe\.com/.*\.(exe|msi|bin|dmg|idx|gz)$@i) ||
        ($source_url =~ m@^http://swupdl\.adobe\.com/updates/.*\.(exe|msi|bin|dmg|idx|gz|[a-z][a-z]_[A-Z][A-Z])$@i) ||
        ($source_url =~ m@^http://swupmf\.adobe\.com/manifest/.*\.upd$@i)
        $xlrator_url = &check_cache($source_url,$hostaddr,$username,”Adobe”,$unique);

    # ———————————————————–
    #  Section: Linux Downloads
    # ———————————————————–

    if ($source_url =~ m@^[h|f]t?tp://[^?]+\.(deb|rpm)$@i)
        $xlrator_url = &check_cache($source_url,$hostaddr,$username,”Linux”,$mirror);

    # ———————————————————–
    #  Section: Trend Micro Downloads
    # ———————————————————–

    if (
        ($source_url =~ m@^http://[^/]*\.trendmicro\.com/activeupdate/.*@i) &&
        ($source_url !~ m@.*/tmnotify\.dat$@i) &&
        ($source_url !~ m@.*/ini_xml\.zip$@i) &&
        ($source_url !~ m@.*/server\.ini$@i)
        $xlrator_url = &check_cache($source_url,$hostaddr,$username,”TrendMicro”,$mirror);

    # ———————————————————–
    #  Section: Symantec Downloads
    # ———————————————————–

    if ($source_url =~ m@^[h|f]tt?p://[^/]*\.symantec(liveupdate)?\.com/.*\.(exe|zip|vdb|xdb)$@i)
        $xlrator_url = &check_cache($source_url,$hostaddr,$username,”Symantec”,$unique);

    # ———————————————————–
    #  Section: Apple Downloads
    # ———————————————————–

    if (
        (($source_url =~ m@^http://swcdn\.apple\.com/content/downloads/.*\.(tar)$@i) ||
         ($source_url =~ m@^http://appldnld\.apple\.com\.edgesuite\.net/.*\.(exe|dmg)$@i) ||
         ($source_url =~ m@^http://.*\*/3093/1/.*\.(tar|pkg|dmg|exe)$@i))
        $xlrator_url = &check_cache($source_url,$hostaddr,$username,”Apple”,$unique);

    # ———————————————————–
    #  Section: Avast Downloads
    # ———————————————————–

    if ($source_url =~ m@^http://download[\d]+\.avast\.com/.*\.(exe|vpu)$@i)
        $xlrator_url = &check_cache($source_url,$hostaddr,$username,”Avast”,$mirror);

    # ———————————————————–


Simply add these lines, just below the Avast section:

    # ———————————————————–

    #  Section: NOD Downloads

    # ———————————————————–

    if ($source_url =~ m@^[h|f]t?tp://[^?]+\.(nup|ver|)$@i)


        $xlrator_url = &check_cache($source_url,$hostaddr,$username,”Other”,$mirror);


I’m using the Linux section as the template, which is the easiest template compare to others. What do those line mean?

$source_url =~ m@^[h|f]t?tp://[^?]+\.(nup|ver|)$@i)

translate: UA should cache  nup and ver files…

$source_url =~ m@^[h|f]t?tp://[^?]+\.(nup|ver|)$@i)

translate: and the URLS could be anywhere

$source_url =~ m@^[h|f]t?tp://[^?]+\.(nup|ver|)$@i)

translate: and it doesn’t matter whether it is http or ftp

Pay attention to this:

$xlrator_url = &check_cache($source_url,$hostaddr,$username,”Other“,$mirror);

It’s vendorid flag, which indicated that these NUP and VER files should use Other flag in the UA web interface. If you want to mess around and add your own image/category, edit this file


find these line :

print “\t\t “;
            if ($vendorid =~ /^Adobe$/i)
                print “Adobe \n”;
            } elsif ($vendorid =~ /^Microsoft$/i)
                print “Microsoft \n”;
            } elsif ($vendorid =~ /^Symantec$/i)
                print “Symantec \n”;
            } elsif ($vendorid =~ /^Linux$/i)
                print “Linux \n”;
            } elsif ($vendorid =~ /^TrendMicro$/i)
                print “Trend Micro \n”;
            } elsif ($vendorid =~ /^Apple$/i)
                print “Apple \n”;
            } elsif ($vendorid =~ /^Avast$/i)
                print “Avast \n”;
            } else
                if (-e “/home/httpd/html/images/updxl-src-” . $vendorid . “.gif”)
                    print “" . ucfirst $vendorid . " \n”;
                } else {
                    print “" . ucfirst $vendorid . " \n”;

Maybe there are other files or lines that should be edited as well, I don’t know yet.
Technorati Tags: ,


Ubuntu Intrepid Ibex : How to repair GRUB Error 17

Recently, I had to upgrade my hard disk from 120GB to 250GB, with the help of Gparted Live CD. As it turns out, that my new hard drive can’t boot from my laptop and give me this horror message:

GRUB Error 17

So, with the help of “grub-install” tool, this is what I did:

1. Boot you system with any Ubuntu CD. In my case, I’m using Ubuntu 8.10 LiveCD.

2. Determine your hard disk device name. In my system, it’s /dev/sda

3. Determine your current boot type. In my system, my boot block is in MBR

4. Execute “grub-install” with the following syntax:

grub-install [OPTION] device name

in my system it would be like this:

sudo grub-install –recheck /dev/sda

Then reboot

Telkomspeedy speed check

This is just a routine check of speed.

pfSense 1.2.x MOD : Displaying time in Web Admin page

This mod is unsupported, and I’m not responsible for any loss

Source :,12063.msg66046.html#msg66046

edit /usr/local/www/index.php
make a new line before

System Overview

and add 

exec(“/bin/date”, $dateOutput, $dateStatus);
$currentDate = $dateOutput[0];

and change



         Platform / Current Date


Technorati Tags:

Integrating Flickr + Joomla 1.5 + MetaWeblogAPI

This post will show you how to post to your Joomla 1.5 sites within Flickr, by utilizing MetaweblogAPI for Joomla

  1. Login to, if you’re already have YahooID, then use it. Then, at your Home page, click “Do you have a blog” link

2. There will be a description page about this feature, then we click “set up your blog”

3. You will be taken to Your Account / Blog Page, then you click “Set Up Your Blog”

4. We had to answer about what kind of weblog we had. Since we’re gonna use Joomla + Metaweblog, then choose “MetWeblog API Enabled Blog”

5. Then you must fill in some login details for your Joomla Site. Notice the syntax :
http://joomlasite.domain/xmlrpc/index.php&#8221;. Don’t forget to fill in Username & Password (for your joomla site). Click Next.

6. Next, Flickr will try to connect to your website. When it succeeded, you’ll notice the name of the Label & Weblog will match the name of your Joomlasite title

7. Flickr will display a message state that the blog has been added to flickr. Optionally, you could click “create a custom posting template now”

8. Choose templates which suit your purpose.

9. You’ll see the template preview, if you’re satisfied, then Click “Use This”

10. Then you’ll be redirected to Blog List page. You can make change settings, add another blogs, or test posting. We’ll try the later. Click on “Test Post”

11. Go to you joomla site, and if everything works correctly, you will see this kind of post on your website:

Congratulation, you’re done!

Technorati Tags: , ,

Uploading your picture to picasaweb

Today, I’m going to record my steps in uploading image to picasaweb using Google Picasa3. Make sure you have a google account too.

1. Download Picasa3. The direct link is here

2. Assuming everybody is having no problem in installing Picasa 3, then let’s move on to the next step. Running the application:

3. Notice, there is a link on the top-left of the screen, click it:

4. There will be new window open, a picasaweb login page. Use your Google/Gmail login, or if you dont’t have it yet, just click Sign up

5. When you choose Sign up for Web Albums, Picasa3 will bring up your default browser and take you to registration screen:

6. Assuming we are done with google account setting, you will notice something different in the top-left of Picasa3:

7. Now, everytime you want to upload something, simply choose the image(s), then right click, choose “Upload to Web Albums”:

8. A new window will pop-up, show you list of albums and file size you can choose, and storage space remain :

9. Don’t forget, click Upload when you are happy with your setting. Have fun!

Technorati Tags: , ,

How to post to your Joomla with Scribefire 3.0.1

This post is made with the help of Firefox & Scribefire 3.0.1

I’m still having problem uploading image
UPDATE 26-09-2008 Problem solved, browser problem

1. Go to Joomlacode to get the plugin, then save the ZIP file.

2. Enough said, then install the plugin using the joomla installer.

3. Go to Plugin Manager, make sure you DISABLE any other xmlrpc plugin, and ENABLE only XML-RPC-metaWeblog API

4. Here is my setting

5. Go to Scribefire website, and download the Add-on, after a browser restart, a wizard will pop-up

6. Scribefire will complain it having problem auto-detecting setting, no worry, just click “Configure Manually“:

7. Then, select  “Metaweblog API” from the drop down, please make sure the API URL is using this syntax:


Click, next, and if everything is set up properly, we’re done!