Selamat Datang Diblog Alfath

c


ara konfirurasi proxy server pada debian

1.# apt-get install squid

2.edit file
# /etc/squid.conf

ganti script menjadi seperti ini....

http_port 8080
tcp_port 0
cache_mem 8 MB
cache_access_log /var/log/squid/access.log
dns_nameserver 192.168.1.1
acl lan src 192.168.1.0/24
http_access deny blacklist lan
http_access allow lan
http_access deny all
cache_mgr webmaster@aaaa.net
visible_hostname proxy@aaaa.net
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

append_domain aaaa.net




3.edit file
# /etc/init.d/rc

buat script dibawah ini:

iptables -t nat -prerouting -s 192.168.1.0/24 -p tcp -m tcp dport 80-j
dnat -to-destination 192.168.1.1:8080

4.reboot

5.#iptables -t nat -l

6.untuk melihat log tuliskan perintah :

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

coba ajah.........

0 komentar:

Copyright © 2009 - AlFatH PkL - is proudly powered by Blogger
Di buat oleh - Alfath - Blog and Web - Dilectio Blogger Template