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.........

baca selengkapnya

k
onfiguasi Router




Langkah-langkah untuk mengKonfigurasi Router berbasis Debian Etch 4.0 adalah sebagai berikut :

1 Set IP masing-masing Interface
Alfath : # vim /etc/network/interface
Edit file sebagai berikut :
allow-hotplug eth0 eth1
iface eth0 inet static
address 15.16.17.194
netmask 255.255.255.252
network 15.16.17.192
broadcast 15.16.17.195
gateway 15.16.17.193
iface eth1 inet static
address 192.168.110.1
netmask 255.255.255.0 (tergantung jumlah CLient yang diinginkan)
network 192.168.110.0
broadcast 192.168.110.255

2 Reboot

3 iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE

4 Konfigurasi IP Forward
Alfath: # vim /etc/sysctl.conf
Lalu hilangkan tanda pagar (#) di net.ipv4.conf.default.forwarding=1
#net.ipv4.ip_forward =1
#net.ipv4.conf.default.forwarding=1
#net.ipv6.conf.default.forwarding=1

5 Konfigurasi Routing IPTABLES
Alfath : # vim /etc/rc.local
Tambahkan : iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE

6 Cek Konfigurasi IPTABLES
Alfath : # iptables –nL –t nat

7 Cek DNS nameserver
Alfath : # vim /etc/resolv.conf

8 Update Debian Etch
Alfath : # vim /etc/apt/source.list
Beri (#) di deb cd room baris ke 2
Tambahkan : deb http://ftp.de.debian.org/debian etch main
deb-src http://ftp.de.debian.org/debian etch main

9 Lalu jalankan perintah Update
# apt-get update
Sistem akan terupdate secara otomatis. Pastikan router telah terhubung dengan internet.
Perintah di atas berfungsi agar setting IPTABLES tidak berubah saat PC Restart.


baca selengkapnya

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