Lanjut ke konten

Install dhcp server dan squid di debian etch

24 Juli 2007

well.. malam ini tugas installasi router sudah terselesaikan dengan baik dan sukses. Tahap Installasi router sederhana berlangsung dengan lancar.. step2nya bisa dilihat di dendens.

tahap berikutnya adalah :

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) -D
  • untuk 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 -D
  • dan untuk testnya silahkan browsing dan ketikkan perintah :
    ##tail -f /var/log/squid/access.log

Selesai sudah…

17 Komentar leave one →
  1. bec4k permalink
    12 November 2007 18:46

    manteb boosss… bahas trus debian etch.. haus banget.. misal install http, mail server and more.. thank’s

  2. 13 November 2007 14:35

    @bec4k

    hehe.. saya masih nyubi.. saya postingpun biar gak lupa 😀

  3. adzy_maniac permalink
    17 November 2007 11:38

    hi bos…
    apa configurasi proxy cukup default saja?? emang-e dah jalan po…

    ===============================
    http://adzymaniac.wordpress.com
    ===============================

  4. 17 November 2007 12:04

    @adzy

    sebenarnya ada pengaturan yg bisa dibuat, tp secara defaut saja bisa jalan, asal acl-nya dibuat.

  5. Alam permalink
    4 Februari 2011 06:56

    Thank U gan…

    Tpi Ane mau Usul,
    Tolong Posting Juga..
    Istilah-istilah yang di gunakan pada debian Text
    blum dan sesudahntya

    Makasih

  6. 5 Februari 2011 18:37

    @Alam : coba ya saya usahakan..

  7. 7 Oktober 2011 22:34

    terima kasih infonya
    Kebetulan sekolahku lagi ujian squid
    Salam kenal ya
    http://www.ewot.tk

  8. 17 Juni 2012 20:34

    thanks gan…..
    lam knal aj

  9. 8 Februari 2017 05:04

    I am truly delighted to read this web site posts which consists of
    plenty of valuable information, thanks for providing these
    information.

Trackbacks

  1. Setting DHCP dengan debian etch « Keep in Your Mine and Safe in Your Heart
  2. Install dan Konfigurasi Calamaris sebagai Proxy Report pada Ubuntu «
  3. Install dan Konfigurasi Calamaris sebagai Proxy Report pada Ubuntu « wicax7
  4. nstall dan Konfigurasi Calamaris sebagai Proxy Report pada Ubuntu | mithaqueen
  5. Install dan Konfigurasi Calamaris sebagai Proxy Report pada Ubuntu « ruin13
  6. Install dan Konfigurasi Calamaris sebagai Proxy Report pada Ubuntu « adidyahermawan
  7. Install dan Konfigurasi Calamaris sebagai Proxy Report pada Ubuntu « andretaulany
  8. Install dan Konfigurasi Calamaris sebagai Proxy Report pada Ubuntu « dhedhoy

Tinggalkan komentar