Vous êtes sur la page 1sur 28

DNS (DOMAIN NAME SYSTEM) Nama Kelas No Absen : fiona kristalia : XII-TKJ3 : 17

1. pertama masuk terminal 2. root@debian:/home/user# sudo su 3. root@debian:/home/user# pico /etc/apt/sources.list setelah masuk pico hapus semua repositori dan diganti dengan deb http://mirror.its.ac.id/ debian squeeze main non-free contrib 4. root@debian:/home/user# apt-get update tunggu sampai selesai 5. root@debian:/home/user# apt-get install bind9 tunggu sampai selesai 6. root@debian:/home/user# pico/etc/bind/named.conf // this is the primary configuration file for the BIND DNS server named. // // please read / usr/share/doc/bind9/README.Debian.gz for information on the. // structure of BIND configuration files in Debian, *BEFORE* you customize // this configuration file . // // if you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options"; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; #... zone nadia.com{ type master; file db.fiona; }; zone 192.in-addr.arpa{ type master; file db.192;

}; include /etc/bind/named.conf.local; kemudian CTRL-X lalu Y lalu enter 7. root@debian:/etc/bind# cp db.local /var/cache/bind/db.nadia 8. root@debian:/etc/bind# pico /var/cache/bind/db.nadia $TTL 604800 @ IN SOA 2 604800 86400 2419200 604800 ) ; @ @ www ftp sub-domain mail IN IN IN IN IN IN NS A A A A A fiona.com. 192.168.10.27 192.168.10.27 192.168.10.27 192.168.10.27 192.168.10.27 fiona.com. root.fiona.com. ( ; Serial ; Refresh ; Retry ; Expire ; Negative Cache TTL

streaming IN A 192.168.10.27 kemudian CTRL-X lalu Y lalu enter 9. root@debian:/etc/bind# cp db.127 /var/cache/bind/db.192 10. root@debian:/etc/bind# pico /var/cache/bind/db.192 $TTL 604800 @ IN SOA 1 604800 86400 2419200 604800 ) fiona.com. root.fiona.com. ( ; Serial ; Refresh ; Retry ; Expire ; Negative Cache TTL

; @ 42.10.168 IN IN NS PTR fiona.com. fiona.com.

11. root@debian:/etc/bind# pico /etc/resolv.conf 12. root@debian:/etc/bind# /etc/init.d/bind9 restart 13. root@debian:/etc/bind# nslookup 192.168.10.27

27.10.168.192.in-addr.arpa

name = fiona.com.

14. root@debian:/etc/bind# nslookup fiona.com Server: Address: 192.168.10.27 192.168.10.27#53

Name: fiona.com Address: 192.168.10.27

WEB SERVER
1. Ketik apt-get install mysql-server libtelepathy-farsight0 network-manager-gnome libpcsclite1 libgnome-bluetooth7 gconf-defaults-service guile-1.8-libs shotwell dnsmasq-base gnome-themes-extras libgmime2.4-cil software-center libopal3.6.8 libmono-i18n-west2.0-cil libgssdp-1.0-2 libcryptui0 simple-scan libmono-addins0.2-cil remmina-plugin-data python-markupsafe libgee2 python-webkit libmono-posix2.0-cil rhythmbox-plugin-cdrecorder libmono-security2.0-cil gtk2-engines-smooth gnome-backgrounds obexd-client gnome-search-tool libgtk2.0-cil geoclue-manual mono-gac python-vte libnm-glib2 libfreerdp-plugins-standard geoclue-hostip vino aptdaemon usb-modeswitch-data gnome-games-data media-player-info telepathy-mission-control-5 libapache2-mod-dnssd ppp libclutter-gtk-0.10-0 tcl telepathy-gabble libmono-sharpzip2.84-cil usb-modeswitch libmono-corlib2.0-cil libgpod-common rhythmbox-plugins libchamplain-0.4-0 tcl8.4 libchamplain-gtk-0.4-0 gstreamer0.10-nice python-bugbuddy mono-runtime liferea libpt2.6.7 wpasupplicant libgupnp-1.0-3 libcheese-gtk18 python-evolution libndesk-dbus-glib1.0-cil gconf-editor gnome-system-tools hamster-applet gnuchess libfreerdp0 libnice0 binfmt-support libssh-4 libgnome-vfs2.0-cil transmission-common libaprutil1 geoclue-yahoo libnet1 gstreamer0.10-tools freeglut3 modemmanager totem-mozilla libgupnp-igd-1.0-3 libmono-system2.0-cil gnome-system-log libopenobex1 libspeexdsp1 nautilus-sendto transmission-gtk remmina empathy-common sound-juicer libmusicbrainz3-6 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient16 libnet-daemon-perl libplrpc-perl mysql-client-5.1 mysql-common mysql-server-5.1 mysql-server-core-5.1 Suggested packages: libipc-sharedcache-perl libterm-readkey-perl tinyca The following NEW packages will be installed: libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient16 libnet-daemon-perl libplrpc-perl mysql-client-5.1 mysql-common mysql-server mysql-server-5.1 mysql-server-core-5.1 0 upgraded, 11 newly installed, 0 to remove and 215 not upgraded. Need to get 23.3 MB of archives. After this operation, 54.9 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://security.debian.org/ squeeze/updates/main mysql-common all 5.1.63-0+squeeze1 [70.1 kB] Get:2 http://security.debian.org/ squeeze/updates/main libmysqlclient16 i386 5.1.63-0+squeeze1 [1,922 kB] Get:3 http://security.debian.org/ squeeze/updates/main mysql-client-5.1 i386 5.1.63-0+squeeze1 [9,587 kB] Get:4 http://kambing.ui.edu/debian/ squeeze/main libnet-daemon-perl all 0.43-1 [46.6 kB] Get:5 http://kambing.ui.edu/debian/ squeeze/main libplrpc-perl all 0.2020-2 [36.0 kB]

Get:6 http://kambing.ui.edu/debian/ squeeze/main libdbi-perl i386 1.612-1 [879 kB] Get:7 http://kambing.ui.edu/debian/ squeeze/main libdbd-mysql-perl i386 4.016-1 [138 kB] Get:8 http://kambing.ui.edu/debian/ squeeze/main libhtml-template-perl all 2.9-2 [65.9 kB] Get:9 http://security.debian.org/ squeeze/updates/main mysql-server-core-5.1 i386 5.1.630+squeeze1 [3,942 kB] Get:10 http://security.debian.org/ squeeze/updates/main mysql-server-5.1 i386 5.1.63-0+squeeze1 [6,515 kB] Get:11 http://security.debian.org/ squeeze/updates/main mysql-server all 5.1.63-0+squeeze1 [63.9 kB] Fetched 23.3 MB in 8min 37s (44.9 kB/s) Preconfiguring packages ... tar: ./conffiles: time stamp 2012-06-12 14:37:33 is 327594300.306717902 s in the future tar: ./control: time stamp 2012-06-12 14:37:34 is 327594301.30620301 s in the future tar: ./md5sums: time stamp 2012-06-12 14:37:35 is 327594302.305997976 s in the future tar: ./postrm: time stamp 2012-06-12 14:37:33 is 327594300.305939414 s in the future tar: .: time stamp 2012-06-12 14:37:34 is 327594301.305869233 s in the future Selecting previously deselected package mysql-common. (Reading database ... 121383 files and directories currently installed.) Unpacking mysql-common (from .../mysql-common_5.1.63-0+squeeze1_all.deb) ... tar: ./control: time stamp 2008-08-11 11:28:04 is 206536529.134780055 s in the future tar: ./md5sums: time stamp 2008-08-11 11:28:04 is 206536529.134507304 s in the future tar: .: time stamp 2008-08-11 11:28:04 is 206536529.134463168 s in the future Selecting previously deselected package libnet-daemon-perl. Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.43-1_all.deb) ... tar: ./control: time stamp 2009-02-12 12:45:46 is 222525191.054604151 s in the future tar: ./md5sums: time stamp 2009-02-12 12:45:46 is 222525191.054354641 s in the future tar: .: time stamp 2009-02-12 12:45:46 is 222525191.054313535 s in the future Selecting previously deselected package libplrpc-perl. Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ... tar: ./control: time stamp 2010-07-18 18:57:41 is 267561905.978250343 s in the future tar: ./md5sums: time stamp 2010-07-18 18:57:41 is 267561905.977981962 s in the future tar: .: time stamp 2010-07-18 18:57:41 is 267561905.977939901 s in the future Selecting previously deselected package libdbi-perl. Unpacking libdbi-perl (from .../libdbi-perl_1.612-1_i386.deb) ... tar: ./shlibs: time stamp 2012-06-18 06:18:45 is 328082769.845426264 s in the future tar: ./postinst: time stamp 2012-06-18 06:18:45 is 328082769.845170868 s in the future tar: ./postrm: time stamp 2012-06-18 06:18:45 is 328082769.845116762 s in the future tar: ./control: time stamp 2012-06-18 06:18:59 is 328082783.845066521 s in the future tar: ./md5sums: time stamp 2012-06-18 06:19:00 is 328082784.84501745 s in the future tar: .: time stamp 2012-06-18 06:19:00 is 328082784.844980804 s in the future Selecting previously deselected package libmysqlclient16. Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.63-0+squeeze1_i386.deb) ... tar: ./control: time stamp 2010-07-12 15:06:05 is 267029609.68002307 s in the future tar: ./md5sums: time stamp 2010-07-12 15:06:06 is 267029610.679776809 s in the future tar: .: time stamp 2010-07-12 15:06:06 is 267029610.679737078 s in the future Selecting previously deselected package libdbd-mysql-perl. Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.016-1_i386.deb) ... tar: ./control: time stamp 2012-06-18 06:19:00 is 328082784.593616112 s in the future tar: ./md5sums: time stamp 2012-06-18 06:19:00 is 328082784.593365802 s in the future tar: .: time stamp 2012-06-18 06:19:00 is 328082784.593324156 s in the future Selecting previously deselected package mysql-client-5.1. Unpacking mysql-client-5.1 (from .../mysql-client-5.1_5.1.63-0+squeeze1_i386.deb) ...

tar: ./control: time stamp 2012-06-18 06:19:00 is 328082784.175047198 s in the future tar: ./md5sums: time stamp 2012-06-18 06:19:00 is 328082784.17474469 s in the future tar: .: time stamp 2012-06-18 06:19:00 is 328082784.174701964 s in the future Selecting previously deselected package mysql-server-core-5.1. Unpacking mysql-server-core-5.1 (from .../mysql-server-core-5.1_5.1.63-0+squeeze1_i386.deb) ... Processing triggers for man-db ... Setting up mysql-common (5.1.63-0+squeeze1) ... tar: ./conffiles: time stamp 2012-06-18 06:18:45 is 328082767.275525047 s in the future tar: ./templates: time stamp 2012-06-18 06:18:40 is 328082762.275227615 s in the future tar: ./postinst: time stamp 2012-06-18 06:18:45 is 328082767.275142693 s in the future tar: ./prerm: time stamp 2012-06-18 06:18:45 is 328082767.275086822 s in the future tar: ./preinst: time stamp 2012-06-18 06:18:45 is 328082767.275027261 s in the future tar: ./postrm: time stamp 2012-06-18 06:18:45 is 328082767.274746893 s in the future tar: ./control: time stamp 2012-06-18 06:19:00 is 328082782.274692952 s in the future tar: ./md5sums: time stamp 2012-06-18 06:19:00 is 328082782.274633496 s in the future tar: ./config: time stamp 2012-06-18 06:18:40 is 328082762.274580475 s in the future tar: .: time stamp 2012-06-18 06:19:00 is 328082782.274545504 s in the future Selecting previously deselected package mysql-server-5.1. (Reading database ... 121759 files and directories currently installed.) Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.63-0+squeeze1_i386.deb) ... tar: ./control: time stamp 2010-08-14 11:35:21 is 269868162.183869028 s in the future tar: ./md5sums: time stamp 2010-08-14 11:35:21 is 269868162.183620358 s in the future tar: .: time stamp 2010-08-14 11:35:21 is 269868162.183580157 s in the future Selecting previously deselected package libhtml-template-perl. Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.9-2_all.deb) ... tar: ./control: time stamp 2012-06-12 14:37:34 is 327594295.106959352 s in the future tar: ./md5sums: time stamp 2012-06-12 14:37:35 is 327594296.106681245 s in the future tar: .: time stamp 2012-06-12 14:37:35 is 327594296.106635619 s in the future Selecting previously deselected package mysql-server. Unpacking mysql-server (from .../mysql-server_5.1.63-0+squeeze1_all.deb) ... Processing triggers for man-db ... Setting up libnet-daemon-perl (0.43-1) ... Setting up libplrpc-perl (0.2020-2) ... Setting up libdbi-perl (1.612-1) ... Setting up libmysqlclient16 (5.1.63-0+squeeze1) ... Setting up libdbd-mysql-perl (4.016-1) ... Setting up mysql-client-5.1 (5.1.63-0+squeeze1) ... Setting up mysql-server-core-5.1 (5.1.63-0+squeeze1) ... Setting up mysql-server-5.1 (5.1.63-0+squeeze1) ... Stopping MySQL database server: mysqld. 020125 0:12:47 [Note] Plugin 'FEDERATED' is disabled. 020125 0:12:47 InnoDB: Initializing buffer pool, size = 8.0M 020125 0:12:47 InnoDB: Completed initialization of buffer pool 020125 0:12:47 InnoDB: Started; log sequence number 0 44233 020125 0:12:47 InnoDB: Starting shutdown... 020125 0:12:53 InnoDB: Shutdown completed; log sequence number 0 44233 Starting MySQL database server: mysqld. Checking for corrupt, not cleanly closed and upgrade needing tables.. Setting up libhtml-template-perl (2.9-2) ... Setting up mysql-server (5.1.63-0+squeeze1) ... 2. root@debian:/home/user# pico /etc/mysql/my.conf 3. root@debian:/home/user# /etc/init.d/mysql restart

Stopping MySQL database server: mysqld. Starting MySQL database server: mysqld. Checking for corrupt, not cleanly closed and upgrade needing tables. 4. root@debian:/home/user# apt-get install apache2 php5 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libmono-addins-gui0.2-cil mono-2.0-gac geoclue-localnet mesa-utils geoclue tomboy ekiga python-opengl libmtp8 libnm-glib-vpn1 gcalctool telepathy-salut gnuchess-book gnome-games-extra-data libgnomepanel2.24-cil libglade2.0-cil baobab libtelepathy-glib0 python-mako pkg-config mobile-broadband-provider-info libglib2.0-cil obex-data-server libsrtp0 tcptraceroute gucharmap network-manager libdiscid0 gnome-games cheese gdebi evolution-exchange libgconf2.0-cil gnome-bluetooth python-aptdaemon-gtk update-manager-core gnome-codec-install python-aptdaemon gnome-cards-data liferea-data cli-common gnome-themes-more rhythmbox libgstfarsight0.10-0 gnome-screenshot libnm-util1 xdg-user-dirs-gtk libgexiv2-0 gnome-office update-manager-gnome cheese-common python-gtkglext1 libpcap0.8 libart2.0-cil epiphany-extensions update-notifier-common seahorse remmina-plugin-rdp empathy gdebi-core gvfs-bin update-notifier libgnome2.24-cil libndesk-dbus1.0-cil seahorse-plugins libgpod4 libgeoclue0 remmina-plugin-vnc xdg-user-dirs libmono-cairo2.0-cil gnome-user-share nautilus-sendto-empathy gedit-plugins libtelepathy-farsight0 network-manager-gnome libpcsclite1 libgnome-bluetooth7 gconf-defaults-service guile-1.8-libs shotwell dnsmasq-base gnome-themes-extras libgmime2.4-cil software-center libopal3.6.8 libmono-i18n-west2.0-cil libgssdp-1.0-2 libcryptui0 simple-scan libmono-addins0.2-cil remmina-plugin-data python-markupsafe libgee2 python-webkit libmono-posix2.0-cil rhythmbox-plugin-cdrecorder libmono-security2.0-cil gtk2-engines-smooth gnome-backgrounds obexd-client gnome-search-tool libgtk2.0-cil geoclue-manual mono-gac python-vte libnm-glib2 libfreerdp-plugins-standard geoclue-hostip vino aptdaemon usb-modeswitch-data gnome-games-data media-player-info telepathy-mission-control-5 libapache2-mod-dnssd ppp libclutter-gtk-0.10-0 tcl telepathy-gabble libmono-sharpzip2.84-cil usb-modeswitch libmono-corlib2.0-cil libgpod-common rhythmbox-plugins libchamplain-0.4-0 tcl8.4 libchamplain-gtk-0.4-0 gstreamer0.10-nice python-bugbuddy mono-runtime liferea libpt2.6.7 wpasupplicant libgupnp-1.0-3 libcheese-gtk18 python-evolution libndesk-dbus-glib1.0-cil gconf-editor gnome-system-tools hamster-applet gnuchess libfreerdp0 libnice0 binfmt-support libssh-4 libgnome-vfs2.0-cil transmission-common geoclue-yahoo libnet1 gstreamer0.10-tools freeglut3 modemmanager totem-mozilla libgupnp-igd-1.0-3 libmono-system2.0-cil gnome-system-log libopenobex1 libspeexdsp1 nautilus-sendto transmission-gtk remmina empathy-common sound-juicer libmusicbrainz3-6 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common libapache2-mod-php5 libonig2 libqdbm14 php5-cli php5-common php5-suhosin Suggested packages: apache2-doc apache2-suexec apache2-suexec-custom php-pear

The following NEW packages will be installed: apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libonig2 libqdbm14 php5 php5-cli php5-common php5-suhosin The following packages will be upgraded: apache2.2-bin 1 upgraded, 11 newly installed, 0 to remove and 214 not upgraded. Need to get 8,491 kB of archives. After this operation, 20.0 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://kambing.ui.edu/debian/ squeeze/main apache2.2-bin i386 2.2.16-6+squeeze7 [1,353 kB] Get:2 http://kambing.ui.edu/debian/ squeeze/main apache2-utils i386 2.2.16-6+squeeze7 [165 kB] Get:3 http://kambing.ui.edu/debian/ squeeze/main apache2.2-common i386 2.2.16-6+squeeze7 [308 kB] Get:4 http://kambing.ui.edu/debian/ squeeze/main apache2-mpm-prefork i386 2.2.16-6+squeeze7 [2,282 B] Get:5 http://kambing.ui.edu/debian/ squeeze/main apache2 i386 2.2.16-6+squeeze7 [1,384 B] Get:6 http://kambing.ui.edu/debian/ squeeze/main libonig2 i386 5.9.1-1 [134 kB] Get:7 http://kambing.ui.edu/debian/ squeeze/main libqdbm14 i386 1.8.77-4 [147 kB] Get:8 http://kambing.ui.edu/debian/ squeeze/main php5-suhosin i386 0.9.32.1-1 [80.8 kB] Get:9 http://security.debian.org/ squeeze/updates/main php5-common i386 5.3.3-7+squeeze14 [549 kB] Get:10 http://security.debian.org/ squeeze/updates/main libapache2-mod-php5 i386 5.3.37+squeeze14 [2,890 kB] Get:11 http://security.debian.org/ squeeze/updates/main php5 all 5.3.3-7+squeeze14 [1,058 B] Get:12 http://security.debian.org/ squeeze/updates/main php5-cli i386 5.3.3-7+squeeze14 [2,859 kB] Fetched 8,491 kB in 10s (794 kB/s) Reading changelogs... Done tar: ./control: time stamp 2012-04-01 06:40:37 is 321344165.441310792 s in the future tar: ./md5sums: time stamp 2012-04-01 06:40:39 is 321344167.441060852 s in the future tar: .: time stamp 2012-04-01 06:40:39 is 321344167.441018686 s in the future (Reading database ... 121857 files and directories currently installed.) Preparing to replace apache2.2-bin 2.2.16-6+squeeze1 (using .../apache2.2-bin_2.2.166+squeeze7_i386.deb) ... Unpacking replacement apache2.2-bin ... tar: ./control: time stamp 2012-04-01 06:40:38 is 321344165.958646433 s in the future tar: ./md5sums: time stamp 2012-04-01 06:40:39 is 321344166.958395238 s in the future tar: .: time stamp 2012-04-01 06:40:39 is 321344166.958353042 s in the future Selecting previously deselected package apache2-utils. Unpacking apache2-utils (from .../apache2-utils_2.2.16-6+squeeze7_i386.deb) ... tar: ./conffiles: time stamp 2012-04-01 06:40:33 is 321344160.873899133 s in the future tar: ./postinst: time stamp 2012-04-01 06:40:33 is 321344160.873640087 s in the future tar: ./preinst: time stamp 2012-04-01 06:40:33 is 321344160.873575121 s in the future tar: ./control: time stamp 2012-04-01 06:40:37 is 321344164.873523525 s in the future tar: ./postrm: time stamp 2012-04-01 06:40:33 is 321344160.873472443 s in the future tar: ./md5sums: time stamp 2012-04-01 06:40:39 is 321344166.873396677 s in the future tar: .: time stamp 2012-04-01 06:40:39 is 321344166.873357116 s in the future Selecting previously deselected package apache2.2-common. Unpacking apache2.2-common (from .../apache2.2-common_2.2.16-6+squeeze7_i386.deb) ... tar: ./postinst: time stamp 2012-04-01 06:40:33 is 321344160.715388232 s in the future

tar: ./prerm: time stamp 2012-04-01 06:40:33 is 321344160.715131671 s in the future tar: ./preinst: time stamp 2012-04-01 06:40:33 is 321344160.71507518 s in the future tar: ./control: time stamp 2012-04-01 06:40:38 is 321344165.715021788 s in the future tar: ./md5sums: time stamp 2012-04-01 06:40:39 is 321344166.714611878 s in the future tar: .: time stamp 2012-04-01 06:40:39 is 321344166.714569602 s in the future Selecting previously deselected package apache2-mpm-prefork. Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.16-6+squeeze7_i386.deb) ... tar: ./postinst: time stamp 2012-04-01 06:40:34 is 321344161.638756754 s in the future tar: ./control: time stamp 2012-04-01 06:40:39 is 321344166.638503939 s in the future tar: ./md5sums: time stamp 2012-04-01 06:40:39 is 321344166.638447937 s in the future tar: .: time stamp 2012-04-01 06:40:39 is 321344166.638409006 s in the future Selecting previously deselected package apache2. Unpacking apache2 (from .../apache2_2.2.16-6+squeeze7_i386.deb) ... tar: ./shlibs: time stamp 2008-01-07 10:47:27 is 187784574.567905744 s in the future tar: ./postrm: time stamp 2008-01-07 10:47:27 is 187784574.567651684 s in the future tar: ./control: time stamp 2008-01-07 10:47:28 is 187784575.567595348 s in the future tar: ./md5sums: time stamp 2008-01-07 10:47:28 is 187784575.567543236 s in the future tar: ./postinst: time stamp 2008-01-07 10:47:27 is 187784574.567492955 s in the future tar: .: time stamp 2008-01-07 10:47:28 is 187784575.56745313 s in the future Selecting previously deselected package libonig2. Unpacking libonig2 (from .../libonig2_5.9.1-1_i386.deb) ... tar: ./control: time stamp 2010-11-10 21:55:08 is 277507835.486569499 s in the future tar: ./md5sums: time stamp 2010-11-10 21:55:17 is 277507844.486313288 s in the future tar: ./shlibs: time stamp 2010-11-10 21:54:40 is 277507807.486257752 s in the future tar: ./postrm: time stamp 2010-11-10 21:54:46 is 277507813.486205425 s in the future tar: ./symbols: time stamp 2010-11-10 21:54:41 is 277507808.486139299 s in the future tar: ./postinst: time stamp 2010-11-10 21:54:46 is 277507813.486086883 s in the future tar: .: time stamp 2010-11-10 21:55:17 is 277507844.486050447 s in the future Selecting previously deselected package libqdbm14. Unpacking libqdbm14 (from .../libqdbm14_1.8.77-4_i386.deb) ... tar: ./conffiles: time stamp 2012-08-06 20:24:55 is 332366422.406458158 s in the future tar: ./postrm: time stamp 2012-08-06 20:24:55 is 332366422.406210063 s in the future tar: ./control: time stamp 2012-08-06 20:25:21 is 332366448.406147286 s in the future tar: ./md5sums: time stamp 2012-08-06 20:25:28 is 332366455.40609711 s in the future tar: .: time stamp 2012-08-06 20:25:28 is 332366455.406059019 s in the future Selecting previously deselected package php5-common. Unpacking php5-common (from .../php5-common_5.3.3-7+squeeze14_i386.deb) ... tar: ./conffiles: time stamp 2012-08-06 20:24:55 is 332366422.317602524 s in the future tar: ./postinst: time stamp 2012-08-06 20:24:55 is 332366422.317350833 s in the future tar: ./prerm: time stamp 2012-08-06 20:24:55 is 332366422.317296122 s in the future tar: ./postrm: time stamp 2012-08-06 20:24:55 is 332366422.317244476 s in the future tar: ./control: time stamp 2012-08-06 20:25:21 is 332366448.31719442 s in the future tar: ./triggers: time stamp 2012-08-06 19:59:30 is 332364897.317144784 s in the future tar: ./md5sums: time stamp 2012-08-06 20:25:28 is 332366455.317088013 s in the future tar: .: time stamp 2012-08-06 20:25:28 is 332366455.317044047 s in the future Selecting previously deselected package libapache2-mod-php5. Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.3.3-7+squeeze14_i386.deb) ... tar: ./control: time stamp 2012-08-06 14:32:54 is 332345301.125252072 s in the future tar: .: time stamp 2012-08-06 14:32:54 is 332345301.125016877 s in the future Selecting previously deselected package php5. Unpacking php5 (from .../php5_5.3.3-7+squeeze14_all.deb) ... tar: ./postinst: time stamp 2012-08-06 20:24:55 is 332366422.054448216 s in the future

tar: ./prerm: time stamp 2012-08-06 20:24:55 is 332366422.054186885 s in the future tar: ./postrm: time stamp 2012-08-06 20:24:55 is 332366422.054132444 s in the future tar: ./control: time stamp 2012-08-06 20:25:22 is 332366449.054081383 s in the future tar: ./md5sums: time stamp 2012-08-06 20:25:29 is 332366456.054031047 s in the future tar: .: time stamp 2012-08-06 20:25:28 is 332366455.053993786 s in the future Selecting previously deselected package php5-cli. Unpacking php5-cli (from .../php5-cli_5.3.3-7+squeeze14_i386.deb) ... tar: ./md5sums: time stamp 2010-08-19 08:04:23 is 270286789.879292109 s in the future tar: ./conffiles: time stamp 2010-08-19 08:04:21 is 270286787.879038993 s in the future tar: ./control: time stamp 2010-08-19 08:04:23 is 270286789.878883644 s in the future tar: ./postinst: time stamp 2010-08-19 08:04:21 is 270286787.878827032 s in the future tar: .: time stamp 2010-08-19 08:04:23 is 270286789.878788452 s in the future Selecting previously deselected package php5-suhosin. Unpacking php5-suhosin (from .../php5-suhosin_0.9.32.1-1_i386.deb) ... Processing triggers for man-db ... Setting up apache2.2-bin (2.2.16-6+squeeze7) ... Setting up apache2-utils (2.2.16-6+squeeze7) ... Setting up apache2.2-common (2.2.16-6+squeeze7) ... Enabling site default. Enabling module alias. Enabling module autoindex. Enabling module dir. Enabling module env. Enabling module mime. Enabling module negotiation. Enabling module setenvif. Enabling module status. Enabling module auth_basic. Enabling module deflate. Enabling module authz_default. Enabling module authz_user. Enabling module authz_groupfile. Enabling module authn_file. Enabling module authz_host. Enabling module reqtimeout. Setting up apache2-mpm-prefork (2.2.16-6+squeeze7) ... Starting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName . Setting up apache2 (2.2.16-6+squeeze7) ... Setting up libonig2 (5.9.1-1) ... Setting up libqdbm14 (1.8.77-4) ... Setting up php5-common (5.3.3-7+squeeze14) ... Setting up libapache2-mod-php5 (5.3.3-7+squeeze14) ... Creating config file /etc/php5/apache2/php.ini with new version Reloading web server config: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName . Setting up php5 (5.3.3-7+squeeze14) ... Setting up php5-cli (5.3.3-7+squeeze14) ...

Creating config file /etc/php5/cli/php.ini with new version update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode. Setting up php5-suhosin (0.9.32.1-1) ... 5. root@debian:/home/user# cd /etc/apache2/sites-available/ 6. root@debian:/etc/apache2/sites-available# cp default web 7. root@debian:/etc/apache2/sites-available# vim web VirtualHost *:80> ServerAdmin webmaster@fiona.com ServerName www.fiona.com ServerAlias fiona.com DocumentRoot /var/www/web/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all "web" 33L, 741C 1,1 Top 8. root@debian:/etc/apache2/sites-available# pico /etc/resolv.conf 9. root@debian:/etc/apache2/sites-available# /etc/init.d/bind9 restart Stopping domain name service...: bind9 waiting for pid 2150 to die. Starting domain name service...: bind9. root@debian:/etc/apache2/sites-available# cd /etc/apache2/sites-available/ root@debian:/etc/apache2/sites-available# ls default default-ssl evi root@debian:/etc/apache2/sites-available# pico evi root@debian:/etc/apache2/sites-available# /etc/init.d/apache2 restart Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName . 10. root@debian:/etc/apache2/sites-available# cd ../sites-enabled/ 11. root@debian:/etc/apache2/sites-enabled# cd /etc/apache2/sites-available/ 12. 12. root@debian:/etc/apache2/sites-available# a2dissite default Site default disabled. Run '/etc/init.d/apache2 reload' to activate new configuration! 13. root@debian:/etc/apache2/sites-available# a2ensite web

Enabling site web Run '/etc/init.d/apache2 reload' to activate new configuration! 14. root@debian:/etc/apache2/sites-available# /etc/init.d/apache2 restart Restarting web server: apache2Warning: DocumentRoot [/var/www/web/] does not exist apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName ... waiting Warning: DocumentRoot [/var/www/web/] does not exist apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 15. root@debian:/etc/apache2/sites-available# cd ../sites-enabled/ 16. root@debian:/etc/apache2/sites-enabled# ls evi 17. root@debian:/etc/apache2/sites-available# cd /var/www/ 18. root@debian:/var/www# mkdir web 19. root@debian:/var/www# cd web/ 20. root@debian:/var/www/web# 21. lalu download joomla di www.tkj.lan (192.168.10.1) 22. lalu kembali ke terminal dan atur kembali 23. root@debian:/var/www/web# cd /home/user/Downloads/ 24. root@debian: home/user/Downloads# cp joomla_25.6-stablefull_package.zip/var/www/web 25. root@debian: home/user/Downloads#cd /var/www/web 26. root@debian:/var/www/web# apt-get install unzip 27. root@debian:/var/www/web# unzip joomla_25.6-stable-full_package.zip 28. root@debian:/var/www/web# chmod 777 ../web/ -R 29. root@debian:/var/www/web# /etc/init.d/apache2 restart Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName root@debian:/var/www/web# 30. lalu masuk ke www.fiona.com

31. jika tidak bisa ditekan next, maka harus menginstall phpmyadmin 32. root@debian:/var/www/web# apt-get install phpmyadmin 33. kalau sudah tekan next terus sampai muncul seperti berikut :

34. setelah mengisi kolom tersebut klik next

35. kosongkan untuk ftp configuration lalu next

36. setelan mengkonfigurasi password pilih install sample data next 37. lalu pilih remove folder installation

dan ini hasilnya

FTP SERVER
Instalasi
1. 2. root@debian:/home/user# apt-get install proftpd akan muncul sperti di bawah ini. pilih standalone mode. ok

Konfigurasi dengan User Authentication Login


3. 4. 5. 6. 7. root@debian:/home/user# mkdir tkj root@debian:/home/user# userdel tkj root@debian:/home/user# useradd -d /home/tkj Usage: useradd [options] LOGIN tunggu sampai selesai. root@debian:/home/user# useradd -d /tkj/ tkj root@debian:/home/user# passwd tkj Enter new UNIX password:tkj Retype new UNIX password:tkj passwd: password updated successfully root@debian:/home/user# pico /etc/proftpd/proftpd.conf setelah masuk tambahkan <Anonymous /home/tkj/> User tkj </Anonymous> root@debian:/home/user# cd .. root@debian:/home# ls ftp user root@debian:/home# mkdir tkj root@debian:/home# ls ftp tkj user root@debian:/home# /etc/init.d/proftpd restart Stopping ftp server: proftpd. Starting ftp server: proftpd. root@debian:/home# ftp localhost Connected to localhost. 220 ProFTPD 1.3.3a Server (ftp.fiona.com) [::1] Name (localhost:user): tkj 331 Anonymous login ok, send your complete email address as your

8. 9.

10. 11. 12. 13. 14.

Pengujian Via Localhost


15.

password Password: 230 Anonymous access granted, restrictions apply Remote system type is UNIX. Using binary mode to transfer files. ftp> bye 221 Goodbye. 16. Buka web browser dan ketikkan ftp.fiona.com 17. setelah itu login dan isikan username : tkj dan password : tkj 18. ok.

Mail Server
Instalasi
1. /home/user# apt-get install postfix courier-imap courier-pop 2. Kemudian akan muncul menu PopUp. Dan sesuaikan dengan konfigurasi di bawah ini : a. General Type of Mail Configuration : Internet Site b. System Mail Name : irma.com

Konfigurasi
3. 4. /home/user# maildirmake /etc/skel/Maildir /home/user# adduser fiona Adding user `fiona' ... Adding new group `fiona' (1002) ... Adding new user `fiona' (1002) with group `fiona' ... Creating home directory `/home/fiona' ... Copying files from `/etc/skel' ... Enter new UNIX password: tkj Changing the user information for fiona Enter the new value, or press ENTER for the default Full Name []: Irma dua Room Number []: Work Phone []:73201046 Home Phone []: Other []: Is the information correct? Y 5. Menambahkan satu user lagi, agar prose mengirim bisa di laksanakan /home/user# adduser dwy Adding user `dwy' ... Adding new group `dwy' (1003) ... Adding new user `dwy' (1003) with group `dwy' ... Creating home directory `/home/dwy' ... Copying files from `/etc/skel' ... Enter new UNIX password: tkj Retype new UNIX password: tkj passwd: password updated successfully Changing the user information for dwy Enter the new value, or press ENTER for the default Full Name []: dwy dua Room Number []: 23 Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] Y 6. Melakukan konfigurasi Postfix /home/user# nano /etc/postfix/main.conf home_mailbox = Maildir/ 7. Melakukan konfigurasi melalui dpkg /home/user# dpkg-reconfigure postfix Stopping Postfix Mail Transport Agent: postfix.

8. 9. 10. 11. 12.

setting synchronous mail queue updates: false setting myorigin setting destinations: irma.com, localhost, localhost.localdomain, localhost setting relayhost: setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 0.0.0.0/0 clearing mailbox_command setting mailbox_size_limit: 0 setting recipient_delimiter: + setting inet_interfaces: all setting inet_protocols: ipv4 /home/user# /etc/init.d/postfix restart /home/user# /etc/init.d/courier-imap restart Menambahkan sub domain untuk mail server bind9 /home/user# nano /etc/bind/db.irma mail IN A 192.168.10.31 /home/user#/etc/init.d/bind9 restart Selesai menambahkan sub domain, lalu kembali ke home user /home/user# cd /home/user

Pengujian
13. Kita akan mengirimkan e-mail ke user dwy /home/user# telnet mail.irma.com 25 Trying 192.168.10.31... Connected to mail.fiona.com. Escape character is '^]'. 220 localhost ESMTP Postfix (Debian/GNU) mail from: irma 250 2.1.0 Ok data 554 5.5.1 Error: no valid recipients rcpt to: dwy 250 2.1.5 Ok data 354 End data with <CR><LF>.<CR><LF> IJUST SEND YOU A TESTING MESSAGE... . 250 2.0.0 Ok: queued as 3C1CD1B69B quit 221 2.0.0 Bye Connection closed by foreign host. 14. Kalau sudah selesai kita lihat di User dwy /home/user# telnet mail.irma.com 110 Trying 192.168.10.31... Connected to mail.FIONA.com. Escape character is '^]'. +OK Hello there. user dwy +OK Password required. pass dwy +OK logged in. stat +OK 1 426

retr 1 +OK 426 octets follow. Return-Path: <FIONA@FIONA.com> X-Original-To: CINTA Delivered-To: CINTA@CINTA.com Received: from unknown (unknown [192.168.10.31]) by localhost (Postfix) with SMTP id 3C1CD1B69B for <dwy>; Wed, 14 Jan 2009 23:04:46 +0000 (UTC) Message-Id: <20090114230525.3C1CD1B69B@localhost> Date: Sat, 06 okt 2012 10:04:46 +0000 (UTC) From: irma@irma.com To: undisclosed-recipients:; IJUST SEND YOU A TESTING MESSAGE... . quit +OK Bye-bye. Connection closed by foreign host.

DHC SERVER 1. pertama, install aplikasi yang digunakan unutk DHCP server pada debian bernama dhcp3server root@debian:/home/user# apt-get install dhcp3-server 2. lakukan konfigurasi pada file dhcp.conf root@debian:/home/user vim /etc/dhcp/dhcpd.conf isikan script di bawah ini # A slightly different configuration for an internal subnet. subnet 192.168.27.0 netmask 255.255.255.192 { range 192.168.27.1 192.168.27.62; option domain-name-servers andri.com; option domain-name "andri.com"; option routers 192.168.27.62; option broadcast-address 192.168.27.63; default-lease-time 14400; max-lease-time 14400; } 3. jika dalam komputer terdapat dua atau lebih ethernet, maka kita pastikan ethernet mana yang akan mendapat layanan dhcp server, edit file default dhcp seperti berikut root@debian:/home/user# vim /etc/default/isc-dhcp-server # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACES="eth0"

SAMBA SERVER langkah pertama root@debian:/home/user# apt-get install samba Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libpq5 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libwbclient0 samba-common samba-common-bin Suggested packages: openbsd-inetd inet-superserver smbldap-tools ldb-tools ctdb The following NEW packages will be installed: samba samba-common samba-common-bin The following packages will be upgraded: libwbclient0 1 upgraded, 3 newly installed, 0 to remove and 223 not upgraded. Need to get 14.0 MB of archives. After this operation, 39.4 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://cdn.debian.net/debian/ squeeze/main libwbclient0 i386 2:3.5.6~dfsg-3squeeze8 [113 kB] Get:2 http://cdn.debian.net/debian/ squeeze/main samba-common all 2:3.5.6~dfsg-3squeeze8 [388 kB] Get:3 http://cdn.debian.net/debian/ squeeze/main samba i386 2:3.5.6~dfsg-3squeeze8 [7,627 kB] Get:4 http://cdn.debian.net/debian/ squeeze/main samba-common-bin i386 2:3.5.6~dfsg-3squeeze8 [5,825 kB] Fetched 14.0 MB in 8s (1,714 kB/s) Reading changelogs... Done Preconfiguring packages ...

(Reading database ... 124399 files and directories currently installed.) Preparing to replace libwbclient0 2:3.5.6~dfsg-3squeeze5 (using .../libwbclient0_2%3a3.5.6~dfsg3squeeze8_i386.deb) ... Unpacking replacement libwbclient0 ... Selecting previously deselected package samba-common. Unpacking samba-common (from .../samba-common_2%3a3.5.6~dfsg-3squeeze8_all.deb) ... Selecting previously deselected package samba. Unpacking samba (from .../samba_2%3a3.5.6~dfsg-3squeeze8_i386.deb) ...

Selecting previously deselected package samba-common-bin. Unpacking samba-common-bin (from .../samba-common-bin_2%3a3.5.6~dfsg3squeeze8_i386.deb) ... Processing triggers for man-db ... Setting up libwbclient0 (2:3.5.6~dfsg-3squeeze8) ... Setting up samba-common (2:3.5.6~dfsg-3squeeze8) ... Creating config file /etc/samba/smb.conf with new version Setting up samba (2:3.5.6~dfsg-3squeeze8) ... Generating /etc/default/samba... tdbsam_open: Converting version 0.0 database to version 4.0. tdbsam_convert_backup: updated /var/lib/samba/passdb.tdb file. account_policy_get: tdb_fetch_uint32 failed for type 1 (min password length), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 2 (password history), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 3 (user must logon to change password), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 4 (maximum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 5 (minimum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 6 (lockout duration), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 7 (reset count minutes), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 8 (bad lockout attempt), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 9 (disconnect time), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 10 (refuse machine password change), returning 0 Importing account for nobody...ok Importing account for user...ok Importing account for tkj...ok Importing account for fiona...ok Importing account for cinta...ok Adding group `sambashare' (GID 122) ... Done. update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode. Starting Samba daemons: nmbd smbd. Setting up samba-common-bin (2:3.5.6~dfsg-3squeeze8) ... update-alternatives: using /usr/bin/nmblookup.samba3 to provide /usr/bin/nmblookup (nmblookup) in auto mode. update-alternatives: using /usr/bin/net.samba3 to provide /usr/bin/net (net) in auto mode. update-alternatives: using /usr/bin/testparm.samba3 to provide /usr/bin/testparm (testparm) in auto mode. lalu masukkan perintah: root@debian:/home/user# mkdir share root@debian:/home/user# chmod 777 share/ -R root@debian:/home/user# pico /etc/samba/smb.conf root@debian:/home/user# /etc/init.d/samba restart Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. root@debian:/home/user# testparm Load smb config files from /etc/samba/smb.conf rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) Processing section "[share]"

Processing section "[data]" Processing section "[homes]" Processing section "[printers]" Processing section "[print$]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] server string = %h server obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . unix password sync = Yes syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 dns proxy = No panic action = /usr/share/samba/panic-action %d [share] path = /home/user/share/ valid users = tkj admin users = root read only = No [data] path = /home/user/share/ read only = No guest ok = Yes [homes] comment = Home Directories valid users = %S create mask = 0700 directory mask = 0700 browseable = No [printers] comment = All Printers path = /var/spool/samba create mask = 0700 printable = Yes browseable = No [print$] comment = Printer Drivers path = /var/lib/samba/printers

install samba-client root@debian:/home/user# apt-get install samba-client Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'smbclient' instead of 'samba-client' The following package was automatically installed and is no longer required: libpq5 Use 'apt-get autoremove' to remove them. Suggested packages: cifs-utils The following NEW packages will be installed: smbclient 0 upgraded, 1 newly installed, 0 to remove and 221 not upgraded. Need to get 13.8 MB of archives. After this operation, 42.8 MB of additional disk space will be used. Get:1 http://kambing.ui.edu/debian/ squeeze/main smbclient i386 2:3.5.6~dfsg-3squeeze8 [13.8 MB] Fetched 13.8 MB in 1s (8,319 kB/s) Selecting previously deselected package smbclient. (Reading database ... 124507 files and directories currently installed.) Unpacking smbclient (from .../smbclient_2%3a3.5.6~dfsg-3squeeze8_i386.deb) ... Processing triggers for man-db ... Setting up smbclient (2:3.5.6~dfsg-3squeeze8) ... root@debian:/home/user# smbclient -L //192.168.10.27 Enter root's password: Anonymous login successful Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.6] Sharename Type Comment -----------------share Disk data Disk print$ Disk Printer Drivers IPC$ IPC IPC Service (debian server) Anonymous login successful Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.6] Server --------DEBIAN Comment ------debian server

Workgroup Master --------------WORKGROUP root@debian:/home/user# useradd tkj useradd: user 'tkj' already exists root@debian:/home/user# smbpasswd -a tkj New SMB password: (isikan tkj) Retype new SMB password: (isikan tkj)

root@debian:/home/user# pico /etc/hostsname root@debian:/home/user# pico /etc/hostname root@debian:/home/user# /etc/init.d/samba restart Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. SETELAH SEMUA SELESAI MAKA : buka computer lalu windows network pilih WORKGROUP lalu pilih fiona klik share dan masukkan tutorial kita ke dalam share tadi. Selamat mencoba

proxi server root@fiona:/home/user# apt-get install squid Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libpq5 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: squid-common squid-langpack Suggested packages: squidclient squid-cgi logcheck-database resolvconf winbind The following NEW packages will be installed: squid squid-common squid-langpack 0 upgraded, 3 newly installed, 0 to remove and 221 not upgraded. Need to get 1,345 kB of archives. After this operation, 8,356 kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://kambing.ui.edu/debian/ squeeze/main squid-langpack all 20100628-1 [228 kB] Get:2 http://kambing.ui.edu/debian/ squeeze/main squid-common all 2.7.STABLE9-2.1 [352 kB] Get:3 http://kambing.ui.edu/debian/ squeeze/main squid i386 2.7.STABLE9-2.1 [765 kB] Fetched 1,345 kB in 1s (1,070 kB/s) Preconfiguring packages ... Selecting previously deselected package squid-langpack. (Reading database ... 124532 files and directories currently installed.) Unpacking squid-langpack (from .../squid-langpack_20100628-1_all.deb) ... Selecting previously deselected package squid-common. Unpacking squid-common (from .../squid-common_2.7.STABLE9-2.1_all.deb) ... Selecting previously deselected package squid. Unpacking squid (from .../squid_2.7.STABLE9-2.1_i386.deb) ... Processing triggers for man-db ... Setting up squid-langpack (20100628-1) ... Setting up squid-common (2.7.STABLE9-2.1) ... Setting up squid (2.7.STABLE9-2.1) ... Creating squid spool directory structure 2012/11/10 10:32:44| Creating Swap Directories Restarting Squid HTTP proxy: squid. root@fiona:/home/user# pico /etc/squid/squid.conf root@fiona:/home/user# cd /etc/squid/ root@fiona:/etc/squid# pico url root@fiona:/etc/squid# pico key root@fiona:/etc/squid# /etc/init.d/squid restart Restarting Squid HTTP proxy: squid2012/11/10 11:02:33| squid.conf line 634: http_access eny key 2012/11/10 11:02:33| aclParseAccessLine: expecting 'allow' or 'deny', got 'eny'. . root@fiona:/etc/squid# squid -z 2012/11/10 11:05:43| strtokFile: etc/squid/key not found 2012/11/10 11:05:43| aclParseAclLine: WARNING: empty ACL: acl key url_regex -i "etc/squid/key" 2012/11/10 11:05:43| squid.conf line 634: http_access eny key 2012/11/10 11:05:43| aclParseAccessLine: expecting 'allow' or 'deny', got 'eny'. 2012/11/10 11:05:43| Squid is already running! Process ID 3990

root@fiona:/etc/squid# iptables -t nat -A PREROUTING -s 192.168.10.0/26 -p tcp -dport 80 -j REDIRECT -to-port 3128 Bad argument `80' Try `iptables -h' or 'iptables --help' for more information. root@fiona:/etc/squid# ip tables-save > /etc/iptables Object "tables-save" is unknown, try "ip help". root@fiona:/etc/squid# iptables-save > /etc/iptablesroot@fiona:/etc/squid# cd /usr/share/squid/errors/English/ root@fiona:/usr/share/squid/errors/English# pico ERR_ACCESS_DENIED root@fiona:/usr/share/squid/errors/English# pico ERR_DNS_FAIL root@fiona:/usr/share/squid/errors/English# /etc/init.d/squid restart Restarting Squid HTTP proxy: squid2012/11/10 11:22:49| squid.conf line 634: http_access eny key 2012/11/10 11:22:49| aclParseAccessLine: expecting 'allow' or 'deny', got 'eny'. . root@fiona:/usr/share/squid/errors/English# cd .. root@fiona:/usr/share/squid/errors# cd .. root@fiona:/usr/share/squid# pico /etc/squid/squid.conf root@fiona:/usr/share/squid# /etc/init.d/squid restart Restarting Squid HTTP proxy: squid. Setelah konfigurasi selesai maka kita buka web browser lalu kita buka yahoo.com dan pantai maka akan muncul tampilan error seperti di bawah.

TERMAKASIH

Vous aimerez peut-être aussi