rl1 > Ethernet WAN
rl0 > Ethernet LAN
Ipnat
cache.log
access.log
please help me
rl0 > Ethernet LAN
Code:
http_port 3128 transparent
icp_port 3130
acl query urlpath_regex cgi-bin \? \.php$ \.asp$ \.shtml$ \.cfm$ \.cfml$ \.phtml$ \.php3$ \.js \.jsp
acl nocache-domain dstdomain javatechno.net uns.ac.id siakad.uns.ac.id
always_direct allow query
always_direct allow nocache-domain
no_cache deny query
no_cache deny nocache-domain
cache_mem 128 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 128 MB
maximum_object_size_in_memory 32 KB
#file mp3, exe, zip, dat, avi, 3gp tidak disimpan di cache hardisk
acl mp3 urlpath_regex -i \.mp3$
acl exe urlpath_regex -i \.exe$
acl zip urlpath_regex -i \.zip$
acl dat urlpath_regex -i \.dat$
acl avi urlpath_regex -i \.avi$
acl 3gp urlpath_regex -i \.3gp$
no_cache deny mp3
no_cache deny exe
no_cache deny zip
no_cache deny dat
no_cache deny avi
no_cache deny 3gp
cache_dir diskd /usr/cache0/diskd 8000 16 256 Q1=72 Q2=64
cache_dir diskd /usr/cache1/diskd 8000 16 256 Q1=72 Q2=64
cache_access_log /usr/local/etc/squid/var/logs/access.log
cache_log /usr/local/etc/squid/var/logs/cache.log
cache_swap_log /usr/local/etc/squid/var/logs/%s
cache_store_log none
#ACL Network
#acl all src 0.0.0.0/0.0.0.0
acl client src 192.168.3.0/24
#acl private src 192.168.3.1
#acl jnp src 192.168.2.0/24
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
dns_nameservers 192.168.1.5
acl manager proto cache_object
#Port yang diijinkan untuk di request
acl SSL_ports port 443 563
acl SSL_ports port 2083 2096
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 631 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl FTP proto FTP
http_access allow localhost
#http_access allow jnp
#http_access allow private
http_access allow client
http_access deny all
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
icp_access allow localhost
#icp_access allow jnp
#icp_access allow private
icp_access allow client
icp_access deny all
miss_access allow all
always_direct allow client
always_direct allow FTP
acl cachemgr proto cache_object
http_access allow cachemgr client
#http_access allow cachemgr private
http_access allow cachemgr localhost
http_access deny cachemgr all
cachemgr_passwd admin info stats/objects
cachemgr_passwd admin all
cache_effective_user squid
cache_effective_group squid
visible_hostname proxy.creative.net
cache_mgr NOC-JNP
forwarded_for off
Ipnat
Code:
map rl1 192.168.3.1/16 -> 192.168.2.2/32
rdr rl0 192.168.3.1/32 port 80 -> 192.168.3.1 port 80 tcp
rdr rl0 0.0.0.0/0 port 80 -> 192.168.3.1 port 3128 tcp
cache.log
Code:
2010/08/13 18:19:17| WARNING: transparent proxying not supported
2010/08/13 18:19:17| WARNING: transparent proxying not supported
2010/08/13 18:19:17| WARNING: transparent proxying not supported
2010/08/13 18:19:17| WARNING: transparent proxying not supported
2010/08/13 18:19:17| WARNING: transparent proxying not supported
2010/08/13 18:21:06| WARNING: transparent proxying not supported
2010/08/13 18:21:06| WARNING: transparent proxying not supported
2010/08/13 18:21:06| WARNING: transparent proxying not supported
2010/08/13 18:21:06| WARNING: transparent proxying not supported
2010/08/13 18:21:06| WARNING: transparent proxying not supported
access.log
Code:
1281698477.670 257 192.168.3.2 TCP_MISS/200 1407 GET http://forums.freebsd.org/images/icons/icon14.gif - DIRECT/149.20.54.209 image/gif
1281698477.714 236 192.168.3.2 TCP_MISS/200 932 GET http://forums.freebsd.org/images/freebsd/buttons/collapse_thead.gif - DIRECT/149.20.54.209 image/gif
1281698477.718 241 192.168.3.2 TCP_MISS/200 931 GET http://forums.freebsd.org/images/freebsd/buttons/collapse_tcat.gif - DIRECT/149.20.54.209 image/gif
1281698478.142 4624 192.168.3.2 TCP_MISS/200 9826 GET http://forums.freebsd.org/clientscript/vbulletin_menu.js? - DIRECT/149.20.54.209 application/javascript
1281698478.421 231 192.168.3.2 TCP_MISS/200 619 GET http://forums.freebsd.org/images/freebsd/hdr_fill.png - DIRECT/149.20.54.209 image/png
1281698478.521 264 192.168.3.2 TCP_MISS/200 662 GET http://forums.freebsd.org/images/freebsd/misc/menu_open.gif - DIRECT/149.20.54.209 image/gif
1281698478.660 253 192.168.3.2 TCP_MISS/200 543 GET http://forums.freebsd.org/images/freebsd/tblfill.png - DIRECT/149.20.54.209 image/png
1281698478.971 251 192.168.3.2 TCP_MISS/200 515 GET http://forums.freebsd.org/images/freebsd/bg_02.png - DIRECT/149.20.54.209 image/png
1281698479.081 826 192.168.3.2 TCP_MISS/200 13170 GET http://forums.freebsd.org/images/freebsd/bg_01.jpg - DIRECT/149.20.54.209 image/jpeg
1281698535.427 61858 192.168.3.2 TCP_MISS/200 26579 GET http://forums.freebsd.org/images/freebsd/logo-red.png - DIRECT/149.20.54.209 image/png
please help me
