Hosting Unlimited Indonesia

Install dhcp server dan squid di debian etch

Langsung saja ya untuk instalasinya Bagaimana cara install dhcp server dan squid di debian etch
Oke kita mulai…. Wink

1. Installasi dhcp router.

Karena installasi didebian, maka hal pertama yg dilakukan adalah pencarian packetnya denga perintah :
apt-cache search dhcp, seperti dibawah ini :
sardjito:~# apt-cache search dhcp
autodns-dhcp – Automatic DNS updates for DHCP
avahi-autoipd – Avahi IPv4LL network address configuration daemon
backuppc – high-performance, enterprise-grade system for backing up PCs
bootp – server for the bootp protocol with DHCP support
dhcdbd – D-Bus interface to the ISC DHCP client
dhcp – DHCP server for automatic IP address assignment
dhcp-client – DHCP Client
dhcp-helper – A DHCP relay agent
dhcp-relay – DHCP Relay
dhcp3-client – DHCP Client
dhcp3-common – Common files used by all the dhcp3* packages
dhcp3-dev – API for accessing and modifying the DHCP server and client state
dhcp3-relay – DHCP Relay
dhcp3-server – DHCP server for automatic IP address assignment
dhcpcd – DHCP client for automatically configuring IPv4 networking
dhcpdump – Parse DHCP packets from tcpdump
dhcping – DHCP Daemon Ping Program
dhis-server – Dynamic Host Information System – server
dnsmasq – A small caching DNS proxy and DHCP server
etherboot – Bootstrapping for various network adapters
etherboot-doc – Bootstrapping for various network adapters (documentation)
gadmintools – GTK+ server administration tools
gdhcpd – GTK+ configuration tool for dhcpd3-server
guessnet – Guess which LAN a network device is connected to
laptop-net – Automatically adapt laptop ethernet
laptop-net-doc – Automatically adapt laptop ethernet – documentation
ldaptor-utils – Command-line LDAP utilities
libnm-glib-dev – network management framework (GLib interface)
libnm-glib0 – network management framework (GLib shared library)
libnm-util-dev – network management framework (development files)
libnm-util0 – network management framework (shared library)
ltsp-server – Basic LTSP server environment
ltsp-server-standalone – Complete LTSP server environment
netdiscover – active/passive address scanner using arp requests
network-manager – network management framework daemon
network-manager-gnome – network management framework (GNOME frontend)
openvpn – Virtual Private Network daemon
pump – BOOTP and DHCP client for automatic IP configuration
pxe – free PX daemon
resolvconf – nameserver information handler
totd – Small DNS proxy that supports IPv6/IPv4 record translation
udhcpc – very small DHCP client
udhcpd – very small DHCP server
whereami – Automatically reconfigure your (laptop) system for a new location
wide-dhcpv6-client – DHCPv6 client for automatic IPv6 hosts configuration
wide-dhcpv6-relay – DHCPv6 relay for automatic IPv6 hosts configuration
wide-dhcpv6-server – DHCPv6 server for automatic IPv6 hosts configuration
zcip – gets an IP addr by partially implementing IETF zeroconf protocols
irpas – Internetwork Routing Protocol Attack Suitekemudian dari list diatas kita pilih yang : dhcp3-server
##apt-get install dhcp3-server
tunggu proses sampai selesai, setelah selesai dilanjutkan dengan mengconfigurasi dhcpd.confnya, lokasinya ada di :
##vim /etc/dhcp3/dhcpd.conf
Diedit pada baris
# option definitions common to all supported networks…
option domain-name “jaringan.net”;
option domain-name-servers mesin.jaringan.net;option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;subnet 192.168.90.0 netmask 255.255.255.0 {
range 192.168.90.100 192.168.90.125;
option broadcast-address 192.168.90.255;
option routers 192.168.90.1;

sesuaikan dengan settingan client yang ada di jaringan anda. terus deklarasikan ethernet mana yang akan dilalui oleh dhcpnya. ada di :
##vim /etc/default/dhcp3-server
dan edit dibagian :
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. “eth0 eth1″.
INTERFACES=”eth1″

untuk restart konfigurasi ada di :
##/etc/init.d/dhcp3-server restart

2. Installasi Squid

Langsung tancap saja dengan menggunakan perintah :
##apt-get install squid
dan silahkan tunggu sampai selesai.. setingan configurasinya ada di :
##vim /etc/squid/squid.conf
* dan sebelum diedit alangkah baiknya defaultnya di copy ke lokasi yang lain, setelah selesai configurasi ada beberapa hal yang harus diperhatikan, yaitu : melihat user proxy dengan perintah (/etc/group)
ownership file, file yang diubah ownershipnya diantaranya : (squid.conf), dengan perintah :
##chown -R proxy:proxy /etc/squid/*
* ##chown -R proxy:proxy /cache/
* trus lakukan printah :
## squid -z /*make swap*/
* untuk mengecek apakah setingan squid kita sudah benar dengan perintah :
##squid -NCd1
trus jalankan:
##squid -D
trus liat apakah squid sudah jalan dengan melihat pidnya :
##ps -aux
root 2347 0.0 0.2 4628 672 ? Ss 08:34 0:00 /usr/sbin/squid -D -sYC
proxy 2349 0.0 1.9 6852 4576 ? S 08:34 0:00 (squid) -D -sYC
proxy 2359 0.0 0.1 1420 280 ? Ss 08:34 0:00 (unlinkd)
root 2361 0.0 0.5 2720 1396 ? Ss 08:34 0:00 /usr/sbin/dhcpd3 -q eth1
daemon 2369 0.0 0.1 1832 416 ? Ss 08:34 0:00 /usr/sbin/atd
root 2376 0.0 0.3 2192 764 ? Ss 08:34 0:00 /usr/sbin/cron
root 2403 0.0 0.2 1572 492 tty1 Ss+ 08:34 0:00 /sbin/getty 38400 tty1
root 2407 0.0 0.2 1576 492 tty3 Ss+ 08:34 0:00 /sbin/getty 38400 tty3
root 2408 0.0 0.2 1576 492 tty4 Ss+ 08:34 0:00 /sbin/getty 38400 tty4
root 2409 0.0 0.2 1576 492 tty5 Ss+ 08:34 0:00 /sbin/getty 38400 tty5
root 2410 0.0 0.2 1576 496 tty6 Ss+ 08:34 0:00 /sbin/getty 38400 tty6
root 2449 0.0 0.2 1576 492 tty2 Ss+ 10:38 0:00 /sbin/getty 38400 tty2
root 2507 0.0 0.9 7864 2380 ? Ss 16:07 0:00 sshd: root@pts/0
root 2509 0.0 0.7 4012 1780 pts/0 Ss 16:07 0:00 -bash
root 2677 0.0 0.2 4628 664 ? Ss 16:34 0:00 /usr/sbin/squid -D
proxy 2679 0.0 3.0 13600 7424 ? Sl 16:34 0:02 (squid) -Duntuk mentransparent dilakukan dengan iptables :
iptables -I PREROUTING -p tcp –dport 80 -s 192.168.90.0/24 -j REDIRECT –to-port 3120 -t nat dan di rc.local ditambahi file :
* /bin/rm -f /var/run/squid.pid
/usr/sbin/squid -Ddan untuk testnya silahkan browsing dan ketikkan perintah :
##tail -f /var/log/squid/access.log

Nah Selesai deh….

Subscribe to receive free email updates:

0 Response to "Install dhcp server dan squid di debian etch"

Posting Komentar