RSS

Tag Archives: proxy

Windows XP – Virus Removal Again

Today I had to troubleshoot a virus infection on Windows XP for a relative … the virus stopped any executable file from opening and also disabled Antivirus software, made changes to Automatic Updates, Firewall and proxy settings.

The first thing that I did was to run a virus scan using an Ubuntu Live CD as detailed here.

The scan cleaned some files but alas the infection remained.

So I downloaded the free version of Malware Bytes on another computer and copied it to a jump drive. Because the infected computer would not open .exe files I changed the file extension of the Malware Bytes setup file to .com by renaming it.

I had to open My Computer and then click Tools, Folder Options followed by the View tab and then un-check the Hide extensions for known file types check-box to be able to change the file extension:

With the Malware Bytes download renamed I could install it on the infected system.

I then had to change the file extension of mbam.exe located in C:\Program FIles\Malwarebytes’ Anti-Malware\ to mbam.com to run the software.

This helped deal with the infection quite well but the browsers had proxy settings that prevented them from connecting to the internet.

In Firefox 4.x I clicked Options, Advanced, Network [tab] then the Settings [button] followed by the No proxy radio button.

In Internet Explorer I clicked Tools, Internet Options, Connections [tab] then the LAN settings [button] followed by the Automatically detect settings check-box. I also unchecked the Use a proxy server for your LAN check-box.

The next issue to deal with was the Windows Security Center alerts for Windows Update and the Firewall – both of which were set to be monitored by the user.

Security Center told me that Automatic Updates are not yet configured for this computer and when I clicked on the button to enable them I was told  We’re sorry. The security center could
not change your automatic updates settings.

I changed the settings through the Control Panel but the Security Center alert would not go away. I found the solution here – simply click Start and then Run and enter the following one at a time and then click OK. Wait for the confirmation before entering the next command:

regsvr32 wuapi.dll
regsvr32 wuaueng.dll
regsvr32 atl.dll
regsvr32 wucltui.dll
regsvr32 wups.dll

This took care of the alerts for Automatic Updates – the next step was to re-enable the Windows Firewall.

To do this I clicked the Recommendations button under Firewall in the Security Center. I then unchecked the I have a firewall solution that I will monitor myself button and clicked the Enable now button for the Windows Firewall.

I also reinstalled AntiVirus software (which sadly was not enough to prevent the infection in the first place).

 
3 Comments

Posted by on May 20, 2011 in Windows, Windows XP

 

Tags: , , , , , , , , , ,

Ubuntu 10.4 Lucid – Configuration of apt-cacher-ng Mobile Clients

In a previous post I configured Ubuntu Server as an apt proxy using apt-cahcher-ng, but had only configured my servers to use the proxy.

There are various ways of configuring mobile clients to enable and disable their apt proxy configuration. I chose to create a couple of bash scripts and a couple of launchers so that I could easily enable and disable my laptops’ connection to the proxy.

In my home directory I created the following files – enableproxy.sh, disableproxy.sh and 02proxy.

enableproxy.sh

#!/bin/bash
sudo cp 02proxy /etc/apt/apt.conf.d/02proxy

disableproxy.sh

#!/bin/bash
sudo rm /etc/apt/apt.conf.d/02proxy

02proxy

Acquire::http { Proxy "http://server-ip:3142"; };

The next step is to create a launcher for enableproxy.sh and disableproxy.sh.

Right click the desktop and then click Create Launcher. Click the Type drop-down menu and select Application in Terminal. Enter a Name for the Launcher. Click the Browse button and select enableproxy.sh. Click OK.

Repeat this process and create a Launcher for disableproxy.sh.

This manual process allows me to keep my proxy configured 99% of the time and be able to quickly disable it when my laptop is away from home.

 
1 Comment

Posted by on March 22, 2011 in Linux, Ubuntu

 

Tags: , , , , ,

Ubuntu Server – Installing apt-cacher-ng as an APT proxy for downloading software packages

If you have several Ubuntu machines downloading packages over the internet you can use apt-cacher-ng as a proxy to cache these packages locally. This will save bandwidth and increase the speed with which machines get packages (once they have been cached). To set this up I will install  apt-cacher-ng on Ubuntu Server  and then configure my Ubuntu desktop machines to use  apt-cacher-ng as a proxy.

Having set a static IP address on my server installation I installed apt-cacher-ng as follows:

sudo apt-get update
sudo apt-get install apt-cacher-ng

Install nano and edit the apt-cacher-ng configuration file acng.conf:

sudo apt-get install nano
sudo nano /etc/apt-cacher-ng/acng.conf

I made the following change to acng.conf:

BindAddress: 0.0.0.0

Note that acng.conf defines the cache directory as var/cache/apt-cacher-ng/_import – we will need to create this folder later on.

Restart apt-cacher-ng:

sudo /etc/init.d/apt-cacher-ng restart

Next we can move on to the setup of client machines – this requires configuring the server as a proxy and can be accomplished with the following command:

echo 'Acquire::http { Proxy "http://<server-ip>:3142"; };' | sudo tee
/etc/apt/apt.conf.d/02proxy

Make sure that you replace <server-ip> with the static IP address of your apt-cacher-ng server.

Now that the basic setup is complete there are a few additional steps to perform – the first of which is to import any packages that the server has downloaded into the apt-cacher-ng cache.

On the server create the _import directory for the apt-cacher-ng cache:

sudo mkdir /var/cache/apt-cacher-ng/_import

Copy packages from /var/cache/apt/archives to /var/cache/apt-cacher-ng/_import:

cd /var/cache/apt/archives
sudo cp *.* /var/cache/apt-cacher-ng/_import

Give apt-cacher-ng ownership of the /var/cache/apt-cacher-ng/ and /var/cache/apt-cacher-ng/_import directories:

sudo chown -R apt-cacher-ng /var/cache/apt-cacher-ng
/var/cache/apt-cacher-ng/_import

From here we can complete our configuration using the apt-cacher-ng web based dashboard. Open a browser with the following URL:

http://<server-ip>:3142/acng-report.html

Make sure that you replace <server-ip> with the static IP address of your apt-cacher-ng server:

Apt-cacher-ng dashboard

On the apt-cacher-ng dashboard scroll down and click the Import button:

Apt-cacher-ng import

Once the import is complete you can test that everything is working by downloading the same package from multiple clients. Using the Count Data button at the top of the apt-cacher-ng dashboard you will be able to monitor the transfer statistics:

apt-cacher-ng statistics

Update:

For configuration of mobile proxy clients such as laptops see: http://pricklytech.wordpress.com/2011/03/22/ubuntu-10-4-lucid-configuration-of-apt-cacher-ng-mobile-clients/

Sources:

acidborg

Ubuntu forum

Ubuntugeek

 
6 Comments

Posted by on February 1, 2011 in Linux, Ubuntu, Ubuntu Server

 

Tags: , , , , ,

 
Follow

Get every new post delivered to your Inbox.

Join 29 other followers