mirror, mirror, on the wall - the x-vaulsmorg files · 2011-02-06 · menyalin isi direktori...

21
© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 1 Mirror, Mirror, On the Wall: Sebagai Upaya Peningkatan Keamanan Sistem Rahmat M. Samik-Ibrahim http://rms46.vlsm.org/2/112.pdf (rev. 2005-11-23) Dibuat dengan OpenOffice 2.0 berbasis De2.UI

Upload: dangkien

Post on 14-Jun-2019

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 1

Mirror, Mirror, On the Wall:Sebagai Upaya Peningkatan Keamanan Sistem

Rahmat M. Samik-Ibrahimhttp://rms46.vlsm.org/2/112.pdf

(rev. 2005-11-23)

Dibuat dengan OpenOffice 2.0 berbasis De2.UI

Page 2: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 2

Memperkenal DiriRahmat M. Samik-Ibrahim (LC #15059)

UI (1984 - ...)Linux (1994 - ...) vLSM.org (1996 - ...)

WebPage:http://rms46.vLSM.org/http://rmsui.vlsm.org/rms46/

http://komo.vLSM.org/ (480 Gbytes)http://kambing.vLSM.org/ (320 Gbytes)http://bebas.vLSM.org/ (Dokumen)http://gtm.vLSM.org/ (Grounded Theory)

http://www.sdn.or.id/ (SDN UNDP)http://de2.vlsm.org/ (De2: distro Linux)

Page 3: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 3

Agenda

Memperkenal Diri

Tujuan Presentasi

Konsep Repositori/Mirror

Aspek Teknis RSYNC

(Konsep Perangkat Lunak Bebas)

Rujukan

Page 4: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 4

Tujuan Presentasi Ini

Memperkenalkan Konsep Mirror

Memberikan Ilustrasi Seputar Mirror

Memperkenalkan RSYNC sebagai client

Memperkenalkan RSYNC sebagai server

(Review Perangkat Lunak Bebas)

Page 5: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 5

Sistem Yang Aman

Apa pun Sistem Operasi-nya, bagaimana strategi update-nya?

KOMPUTER

Internet

SUMBER

Page 6: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 6

Menghemat Bandwidth dengan Mirror

Bagaimana strategi jika komputer-nya banyak?

KOMPUTER

MIRROR

Internet

SUMBER

LAN

Page 7: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 7

Perangkat Keras MirrorEstimasi Siklus Regenerasi: 5 tahun

CPU: Low End pada zamannya (P4/2GHz)

RAM: Low End pada zamannya (256 Mbytes)

Disk: Uptimum pada zamannya

4 IDE @ 160 Gbytes (bukan SCSI)?

Ethernet Board: Heavy Duty 100MBPs (Server)

Power Supply: Heavy Duty (400+ Watt)

Ventilasi: Tambahan Blower

Bandwidth Internet:: Secukupnya (00:00-07:30)

Page 8: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 8

Mirror AktifUI (2000)

http://kambing.vLSM.org/ (320 GBytes)

http://bebas.vLSM.org/

http://de2.vLSM.org/

PadiNet (2004)

http://komo.vLSM.org/ (480 GBytes)

http://free.vLSM.org/

http://deal.vLSM.org/

http://onno.vLSM.org/

Page 9: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 9

Mirror Non AktifM-WEB

http://sapi.vlsm.org/

CBNhttp://semut.vlsm.org/

Problem

Bandwidth

Bandwidth

Bandwidth

Lainnya

Page 10: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 10

Pemeliharaan Mirror

Upaya Minimum

Walau pun minimum, harus siaga!

''Taken For Granted'': manfaat mirror baru terasa jika down

Rutinitas yang Membosankan

Strategi Mendapatkan Bandwidth

Page 11: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 11

RSYNC Client

Perintah "cp" (copy)cp -a /sumber/* /tujuan/

Perintah "rsync" setararsync -av /sumber/ /tujuan/

Page 12: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 12

Menyalin dan Menghapus

menghapus (berkas lama)rsync -av --delete /sumber/ /tujuan/

menghapus belakanganrsync -av --delete --delete-after /sumber/ /tujuan/

wild charrsync -av --exclude '*.bak' /sumber/ /tujuan/

Page 13: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 13

Daftar Isi "Anonymous" Jaringanrsync ibiblio.org::

-------------------------------------

Welcome to the ibiblio rsync server!

[SISA "MESSAGE OF TODAY" DIHAPUS]pub EVERYTHING in our FTP tree CPAN CPANdistros Linux Distributionsgentoo Gentoo Linux Distributiongnu GNU softwarekde KDE mirrorkernel.org the kernel.org mirrorldp_mirror Linux Documentation Project[........]

Page 14: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 14

Menyalin Dari Jaringan

Melihat kernel linux terakhir

rsync ibiblio.org::kernel.org/pub/linux/kernel/

Menyalin isi direktori tersebut ke /tujuan/

rsync -av --delete ibiblio.org::kernel.org/pub/linux/kernel/ /tujuan/

Masih Banyak Opsi Lainnya

Page 15: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 15

RSYNC ServerSumber: http://samba.anu.edu.au/rsync/

Lokasi Program: /usr/bin/rsync

Berkas ''Message of today'' (MOTD)

/etc/rsynd.motd

Isi dari /etc/inetd.conf# ----------------------------------------------------------# /etc/inetd.conf

rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon

# asumsi, "rsync" ada di "/usr/bin/"#-----------------------------------------------------------

Page 16: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 16

/etc/rsyncd.conf# -----------------------------------------------------------# /etc/rsyncd.conf# nama berkas "message of the day" yang dibuat di atasmotd file = /etc/rsyncd.motd# berapa concurrent connections?max connections = 2# syslog ke mana?syslog facility = local3# Alamat atau blok IP mana yang diizinkan mengakses "rsync"? # /32 --> satu host; # /16 --> 64k host; dst.hosts allow = 10.118.0.0/16 192.168.1.2/32 127.0.0.0/8# labelmodul:[labelmodul] comment = Ini dapat dibaca dengan "rsync nama.host::" path = /var/dir/yang/mau/di/sync read only = yes use chroot = yes list = yes uid = nobody gid = nogroup#-------------------------------------------------------------

Page 17: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 17

Mengaktifkan RSYNC Server

Restart:: kill -1 PID_INETD

Atau ''inetd restart''

Periksa dengan ''rsynd localhost::''

Server anda siap untuk digunakan!

Page 18: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 18

Definisi Perangkat Lunak Bebas

KEBEBASAN 0: menjalan program untuk keperluan apa pun

KEBEBASAN 1: mempelajari cara kerja dan modifikasi (kode) program

KEBEBASAN 2: menyebar-luaskan program dan modifikasinya

KEBEBASAN 3: meningkatkan kinerja

URL: http://gnu.vLSM.org/philosophy/free-sw.html

Page 19: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 19

Terdapat Banyak PLB Lainnya

Lisensi Expat (MIT)

Lisensi X11

Public Domain

W3C Software Notice and License

Lisensi Artistic

Lisensi PHP

URLhttp://gnu.vlsm.org/licenses/license-list.html

Page 20: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 20

RUJUKAN (URL)Proyek Si KOMO.vLSM.org http://rms46.vLSM.org/1/45.html

RSYNC: Fasilitas Salin Data Skala Raksasa http://rms46.vLSM.org/1/97.html

Memperkenalkan Distro Debian GNU/ Linux http://rms46.vLSM.org/1/93.html

Proyek GNU http://www.gnu.org/

Page 21: Mirror, Mirror, On the Wall - The X-VauLSMorg Files · 2011-02-06 · Menyalin isi direktori tersebut ke /tujuan/ ... # nama berkas "message of the day" yang ... # berapa concurrent

© 2004-2005 Rahmat M. Samik-Ibrahim -- GNU Free Document License -- Silakan secara bebas menggandakan presentasi ini -- 21

TERIMA KASIH!