Are you confused on how to install squid proxy server on Linux Readhat 9, and how to configure transparent proxy. Well , follow steps below:

  1. Download squid, you can do it by executing:
    #wget http://swelltech.com/support/updates/squid/9/i386/squid-2.5.STABLE3-1rh.i386.rpm
  2. Then install it onto your server:
    #rpm -ivh squid-2.5.STABLE3-1rh.i386.rpm
  3. Remove the original squid file:
    #mv /etc/squid/squid.conf /etc/squid/squid.conf.original
  4. Make a new squid configuration file squid.conf:
    #vi /etc/squid/squid.conf
  5. Copy codes below:
    http_port 3128
    icp_port 3130
    cache_mem 64 MB
    connect_timeout 2 minutes
    maximum_object_size 20480 KB
    minimum_object_size 0 KB
    maximum_object_size_in_memory 4096 KB
    cache_replacement_policy lru
    memory_replacement_policy lru
    cache_dir diskd /image 10000 16 256
    cache_access_log /var/log/squid/access.log
    cache_log /var/log/squid/cache.log
    cache_store_log none
    log_ip_on_direct on
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern . 0 20% 4320
    acl all src 0.0.0.0/0.0.0.0
    acl manager proto cache_object
    acl localhost src 127.0.0.1/255.255.255.255
    acl SSL_ports port 443 563 6667 7000
    acl Safe_ports port 80
    acl Safe_ports port 21
    acl Safe_ports port 443 563
    acl Safe_ports port 70
    acl Safe_ports port 210
    acl Safe_ports port 1025-65535
    acl Safe_ports port 280
    acl Safe_ports port 488
    acl Safe_ports port 591
    acl Safe_ports port 777 110
    acl Safe_ports port 5050
    acl CONNECT method CONNECT
    http_access allow manager localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access deny all
    icp_access allow all
    cache_mgr yourname # enter your name here
    visible_hostname yourdomain.com #enter your domain here
    httpd_accel_host virtual
    httpd_accel_port 80
    httpd_accel_with_proxy on
    httpd_accel_uses_host_header on
  6. Save the file
  7. Make image folder:
    #cd /
    #mkdir image
  8. Change the ownership of the group by executing:
    #chown -R squid.squid /image
  9. Run the squid:
    #/etc/init.d/squid start
  10. To make squid automatically started each time computer boots, execute this command:
    #setup
    find the ?system services?, run tool, find squid and choose it to activate
  11. Enter the transparent proxy.
    #/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp ?dport 80 -j REDIRECT ?to-ports 3128
    #/sbin/iptables -t nat -A PREROUTING -i eth1 -p udp ?dport 80 -j REDIRECT ?to-ports 3128
  12. To make transparent proxy automatically runs each time the server boots, then enter it into rc.local’s iptables, but set the iptables for the NAT first so that clients can use the internet. Use code below:
    #vi /etc/rc.local.

Well, i hope you understand my language…. haha ^_^

Tags: , , , ,

Here are some steps you can do to make Hostpot using mikrotik:

  1. Make a Radius server/ radius add service=hotspot address=127.0.0.1 secret=123456
  2. Make profile and set the profile using Radius Server / ip hotspot profile set hsprof1 use-radius=yes
  3. Make scriber / tool user-manager customer add login=”MikroTik” password=”secretzzz” permissions=owner
  4. Add the router into localhost./ tool user-manager router add subscriber=MikroTik ip-address=127.0.0.1 shared-secret=123456
  5. Browse the http://yourrouter/user

IKIVO and cell phone

January 31st, 2008 by admin

Using J2ME, you can make an interface using SVG (Scalable Vector Graphic) file. You can download IKIVO, one of the interactive content provider for cell phone. You can download it here and the netbean’s tutorial is here

Are you having difficulties searching for toshiba laptop’s driver download page. After searching for a while. Here it goes, the place where you can find Driver’s for toshiba laptop

Having photos taken by gps capable cam? and you want to know where the photos are taken. Use exifprobe, it is a command based syntax to extract gps’ latitude and longitude.
The data extracted was 3 segments, first means degree, second means minute, and third means second.
For example:

  1. Latitude = 5,20,10 means 5? 20′ 10″ N
  2. Longitude = 100,20,10 means 100? 20′ 10″ E

Then you can utilize Google Maps or Earth to know where the location of your picture.

7Zip Portable is released

January 31st, 2008 by admin

One of the best compressing software is 7zip. Besides that it is free, it is also open source. Since the code is open source, this software can be heavily reengineered, one of the results is Portable version of 7Zip.
After browsing for a while, i found the latest 7Zip portable is released. So you can always extracts files or unzip it on the go, without having to install it on your computer.

Use open source, it’s free and no malwares.

7Zip portable’s release notes on Portableapps.com

Some hosting providers that use Cpanel disable Register global for the sake of security. But you could enable it by doing steps below:

  1. login into cpanel
  2. Click file manager
  3. Click public_html
  4. Click .htaccess and edit (make a new file if this file hasn’t yet exist).
  5. Enter code below:

php_value register_globals 0    —————> to make it unactive
php_value register_globals 1    —————> to make it active

Remote Desktop on Ubuntu

January 28th, 2008 by admin

Many softwares can be used to perform Remote Desktop on Ubuntu. One of the best software is NomachineNX. You can see the details of this project by clicking this link, this software is  very interesting since allowing multisession login with different IDs.

NoMachineNX server can be remote controlled from Mac OS, Solaris and Windows. The servers are available for Linux (.rpm .deb and .tar.gz), Solaris. While the clients are available on Linux, Mac OS, Solaris and Windows.

The installation process is very handy. just click the installer. After the installation process finished, you should see whether NXServer already running or not? by executing command below:

sudo /usr/NX/bin/nxserver --status 

The output will be like this:

NX> 900 Connecting to server .. NX> 110 NX Server is running. 	 NX> 999 Bye. 

Change the configuration of server.cvg by editing the file below using Gedit or Vim.

/usr/NX/etc/server.cfg 

Remove comment characters (#) in front of these lines:

ENABLEAUTOKILLSESSIONS = \"1\" ENABLEUNENCRYPTEDSESSION = \"0\" 

Also edit /usr/NX/etc/node.cfg Remove comment characters (#) in front of this line:

ENABLEUNENCRYPTEDSESSION = \"0\" 

After this, your Ubuntu PC could be remote controlled from other PCs which use Linux, Mac OS, Solaris, and Windwos. To execute NXCLient from Ubuntu, you could execute:

/usr/NX/bin/nxlient 

The download links are:

NX Desktop Server DEB
Dowload NX Desktop Server ,DEB for Debian/Ubuntu
NX Node DEB
Dowload NX Node .DEB for Debian/Ubuntu
NX Client
Download NX Client

What is Computer Networking?

January 26th, 2008 by admin

Computer Networking is pervasive right now,you can find it on small company and big enterprise either. Right now i would like to tell a story about computer networking.

First, what computer network is? Most books define it as “a simple collection of computers (two connected computers qualify as a network) at one location that have been tied together using a particular connectivity medium (such as network cabling or wireless technology)”.

The second is why should you need a computer network? It was because network enables anything. The network can be used to transmit data, sound, and even video between users on the network. Many apps such as email and instant messaging are feasible due to computer network.

Computer Network usually consist of computers, connectivity media (eg: as copper wire or fiber optic cables), and other devices (eg: hubs, switches, and routers), and Network interface card. There are many technologies that can bind computers togather, such as network cabling (copper or fiber optics), radio waves, and microwave technology.

What a unique website, i found it from StumbleUpon.