Install Squid Proxy Server on Debian Etch

This is not a tutorial to install squid, this is a notes from my experience when install squid on Debian Etch

#apt-get install squid3

if no error when instalation, continued with make squid configuration. the name of file configuration is squid.conf

back-up your old squid.conf

#cd /etc/squid3
#mv squid.conf squid.conf.old
#nano squid.conf


hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 6 MB
cache_swap_low 98
cache_swap_high 99
maximum_object_size 128 MB
maximum_object_size_in_memory 32 KB
fqdncache_size 2048
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
store_dir_select_algorithm round-robin
cache_mgr upt@amikom.ac.id
cache_dir ufs /cache1 3000 8 256
cache_dir ufs /cache2 3000 8 256
cache_log /dev/null
cache_store_log /dev/null
mime_table /usr/local/squid/etc/mime.conf
pid_filename /usr/local/squid/var/logs/squid.pid
emulate_httpd_log off
log_mime_hdrs off
log_fqdn off
log_ip_on_direct off
logfile_rotate 1
log_icp_queries off
client_netmask 255.255.255.255
unlinkd_program /usr/local/squid/libexec/unlinkd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 10080 95% 241920 reload-into-ims override-lastmod
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 180 95% 120960 reload-into-ims override-lastmod
quick_abort_min 0
quick_abort_max 0
quick_abort_pct 98
memory_pools off
reload_into_ims on
pipeline_prefetch on
vary_ignore_expire on
cache_effective_user squid
cache_effective_group squid
#coredump_dir /usr/local/squid/var/cache
visible_hostname cache.campus.edu
acl all src 0.0.0.0/0.0.0.0
acl lab src 202.9.56.3/24
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow manager
http_access allow lab
http_access deny all
icp_access allow all

#squid3 -k parse
#squid3 -z
#/etc/init.d/squid restart

then look the view log squid with tail command

#tail -f /var/log/squid/access.log

if succes will show log your client access internet

Read more...

Set Date And Time on Debian

Hmm.. yesterday i try to upgrade my Debian Box with my nearest mirror , but i dont know what someting error like that ;)
fisrt step to check my debian is check the time and date on debian, whoala my date&time not uptodate ;)


To Set Date in debian with Command

#date -–set 2008-07-23 (format : yyyy-mm-dd)

and then set the time

#date --set 16:10:00 (format : hh:mm:ss)

# hwclock -–systohc --utc (to to sync hardware clock to what we introduced earlier)

if emerge errors like this
"select() to /dev/rtc to wait for clock tick timed out"

Try from the command line

#hwclock --systohc --utc --directisa

if that works with no errors, edit /etc/init.d/hwclock.sh

and change the line:

HWCLOCKPARS=

to

HWCLOCKPARS="--directisa"

and now you can syncronise date from /etc/init.d/hwclock.sh

# /etc/init.d/hwclock.sh

And then i try again to update my debian, eng ing eng....>

update success ;)

Read more...

Ubuntu Release update



Ubuntu 8.10 (Intrepid Ibex)

Ubuntu 8.10 (Intrepid Ibex), to be released on 2008-10-30, will be Canonical's ninth release of Ubuntu Linux and Ubuntu's fourth anniversary on October 10. It will be supported until April 2010. Ubuntu 8.10 has several planned new features including a complete desktop redesign, improvements to mobile computing and desktop scalability, increased flexibility for Internet connectivity, OpenGL face browser for GDM, a GUI driven LiveUSB creator and an encrypted 'private' directory in each user's home directory.

Read more...

About Ubuntu Linux

Ubuntu is a community developed, Linux-based operating system that is perfect for laptops, desktops and servers. It contains all the applications you need - a web browser, presentation, document and spreadsheet software, instant messaging and much more.

Read more...

  © Blogger template The Professional Template by Ourblogtemplates.com 2008

Back to TOP