Background Cover ini menunjukkan Keaslian Ebook ini yang sesuai / sama dengan
Cover CD depan aslinya. Dan bila background / Cover setiap Ebook yang ada
dalam CD tidak sama dengan cover CD depan, maka Ebook tersebut tidak asli.
Mahir dan
Professional
Setting Jaringan di Linux
vize@telkom.net
IlmuKomputer.Com
Mahir dan professional
Setting Jaringan di Linux
Selain itu Linux juga memiliki kelebihan untuk bisa berhubungan dengan
sistem operasi lainny, seperti: Windows 9.x, Windows ME, Windows 2000,
Windows XP, Mac OS, Amiga, Atari, Sun, dan keluarga Unix lainnya.
Segala kelebihan tersebut di atas tentunya akan sia-sia jika kita tidak
bisa menghubungkan komputer Linux kita dengan jaringan komputer
lainnya. Untuk itu, penulis mencoba memberikan sedikit tips untuk
menghubungkan komputer Linux kita dengan jaringan komputer lainnya.
Pada saat menulis artikel ini, penulis menggunakan SuSE Linux 7.0, jadi
jika ternyata ada perbedaan nama directory mohon dimaklumi. Karena aku
tidak bisa hidup tanpa SuSE :)).
:~ $> dmesg
--------- dipotong -----------
Serial driver version 4.27 with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ
enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
3Com 3c90x Version 1.0.0 1999 <
linux_dri...@3com.com
> (20:28:04)
)
nfsd_fh_init : initialized fhcache, entries=512
atau dengan cara ketikkan perintah:
Created By 2
Muhammad Syahrizal
Sebagaimana modul kartu jaringan di
/lib/modules/net berikut ini:
rizal@rizal:/lib/modules/2.2.18/net $> ls
3c501.o comx-proto-lapb.o hp100.o sb1000.o
3c503.o comx-proto-ppp.o ibmtr.o sbni.o
3c505.o comx.o ipddp.o scc.o
3c507.o cops.o ircomm.o sdla.o
3c509.o cosa.o irda.o sdladrv.o
3c515.o cs89x0.o irda_deflate.o sealevel.o
3c59x.o de4x5.o irlan.o shaper.o
3c90x.o de600.o lance.o sis900.o
6pack.o de620.o lanstreamer.o sk98lin.o
8139too.o depca.o lapbether.o skfp.o
82596.o dgrs.o lne390.o sktr.o
8390.o dlci.o ltpc.o slhc.o
ac3200.o dmascc.o mkiss.o slip.o
acenic.o dmfe.o n2.o smc-ultra.o
arc-rimi.o dummy.o ne.o smc-ultra32.o
arcnet.o e100.o ne2k-pci.o smc9194.o
arlan-proc.o e1000.o ne3210.o soundmodem.o
arlan.o e2100.o ni5010.o starfire.o
at1700.o eepro.o ni52.o strip.o
baycom_epp.o eepro100.o ni65.o syncppp.o
baycom_par.o eexpress.o old_tulip.o tlan.o
baycom_ser_fdx.o epic100.o olympic.o tulip.o
baycom_ser_hdx.o eql.o pc300.o via-rhine.o
bonding.o es3210.o pci-scan.o wanpipe.o
bpqether.o eth16i.o pcnet32.o wanxl.o
bsd_comp.o ethertap.o plip.o wavelan.o
c101.o ewrk3.o ppp.o wd.o
com20020.o fmv18x.o ppp_deflate.o x25_asy.o
com90io.o hamachi.o ppp_mppe.o yam.o
com90xx.o hdlc.o pppox.o yellowfin.o
comx-hw-comx.o hdlcdrv.o rcpci.o z85230.o
comx-hw-locomx.o hostess_sv11.o rl100a.o
comx-hw-mixcom.o hp-plus.o rrunner.o
comx-proto-fr.o hp.o rtl8139.o
Created By 3
Muhammad Syahrizal
rizal@rizal:/etc $> more conf.modules
#
# Copyright (c) 1996-2000 SuSE GmbH Nuernberg, Germany. All rights
reserved.
#
# Author: Hubert Mantel <
man...@suse.de
>, 1996-2000
#
# Configuration file for loadable modules; used by modprobe and
kerneld#
# Aliases - specify your hardware
alias eth1 off
alias tr0 off
alias scsi_hostadapter off
alias fb0 off
# only used for Mylex or Compaq Raid as module
alias block-major-48 off
alias block-major-49 off
alias block-major-72 off
alias block-major-73 off
# only needed for fifth and sixth IDE adaptor
alias block-major-56 off
alias block-major-57 off
# mouse (for older busmice)
alias char-major-10 off
alias parport_lowlevel parport_pc
options parport_pc io=0x378 irq=none,none
;
------------dipotong---------------
;
# post-install paride insmod frpw
# YaST2: Network card
alias eth0 ne2k-pci
Created By 4
Muhammad Syahrizal
Untuk mengaktifkan konfigurasi alamat IP eth baru kita, jalankan script
/etc/rc.d/init.d/network dengan option 'restart', seperti di bawah ini:
#
# IP Adresses
#
IPADDR_0="192.168.1.1"
IPADDR_1=""
IPADDR_2=""
IPADDR_3=""
#
# network device names (e.g. "eth0")
#
NETDEV_0="eth0"
NETDEV_1=""
NETDEV_2=""
NETDEV_3=""
#
# parameteres for ifconfig, simply enter "bootp" or "dhcpclient" to use
the
# respective service for configuration
# sample entry for ethernet:
# IFCONFIG_0="192.168.81.38 broadcast 192.168.81.63 netmask
255.255.255.224"
#
IFCONFIG_0="192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0"
IFCONFIG_1=""
IFCONFIG_2=""
IFCONFIG_3=""
Sampai di sini selesailah sudah setting jaringan Linux tahap awal, jika
anda menghendaki mempunyai virtual domain sendiri yang dikenal oleh
komputer tetangga sebelah (pak RT), silakan masuk ke tahap server DNS.
Created By 5
Muhammad Syahrizal
Setting Server DNS
DNS merupakan singkatan dari Domain Name Server, merupakan sebuah
database yang berisi daftar seluruh nama komputer yang terhubung ke
jaringan lokal (intranet).
Untuk membuat sebuah server DNS, pertama kali anda harus menginstalasi
bind versi 8.2.x, dengan perintah:
search .
domain nama.isp.anda
domain server.net
nameserver 202.x.x.x
nameserver 192.168.1.1
#
# overall options of the server
#
options {
directory "/var/named";
# the default is to fail, if the master file is not correct
check-names master warn;
pid-file "/var/run/named.pid";
Created By 6
Muhammad Syahrizal
datasize default;
stacksize default;
coresize default;
files unlimited;
recursion yes;
};
#
# do not be verbose about these problems...
#
#logging {
#category lame-servers { null; };
#category cname { null; };
#};
#
# predefined access control lists (acl):
# "any"allows all hosts
# "none"denies all hosts
# "localhost"allows the IP adresses of all interfaces of the system
# "localnets"allows any host on a network of the local interfaces
#
# defining an additional ACL:
#acl can_download { 192.168.0.17; 192.168.0.18; };
Created By 7
Muhammad Syahrizal
#
# The server statement defines the characteristics to be associated
with
# a remote name server.
#
# Marking a server as bogus will prevent queries to that server.
#server 192.168.0.128 { bogus yes; }
# If the other name server has also BIND 8.1 or newer installed, you
# can allow compacter zone transfers with this statement.
#server 192.168.0.128 { transfer-format many-answers; }
zone "." IN {
type hint;
file "root.hint";
};
zone "localhost" IN {
type master;
file "localhost.zone";
check-names fail;
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0.zone";
check-names fail;
allow-update { none; };
};
#
# a master zone
#
#zone "isc.org" IN {
#type master;
#file "isc.org";
## by default, any host can receive zone transfers
##allow-transfer { any; };
#notify yes;
#};
#
# a slave zone
#
#zone "isc.org" IN {
#type slave;
Created By 8
Muhammad Syahrizal
#file "slave/db.isc.org";
#masters { 192.168.0.128; };
#};
Dimana:
x: merupakan server utama, dan
y: merupakan server kedua
/etc/rc.d/init.d/named start
Agar komputer anda dikenal nama doamin-nya oleh server dan sebaliknya
isikan nama domain komputer anda pada server atau nama domain server
pada komputer anda ke dalam file /etc/hosts, seperti tampak pada contoh
di bawah ini:
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#
# special IPv6 addresses
127.0.0.1 localhost
192.168.1.2 ridho.net ridho
192.168.1.1 server.net server
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
Created By 9
Muhammad Syahrizal
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
search .
domain isp1.net.id isp2.net.id
domain isp1.net.id isp2.net.id
nameserver 202.xxx.xxx.xxx
nameserver 202.yyy.yyy.yyy
nameserver 202.zzz.zzz.zzz
Untuk melakukan pengecekkan apakah anda atau komputer server anda yang
menggunakan SO Linux sudah terhubung dengan ISP atau belum, anda bisa
menggunakan perintah ifconfig yang akan menampilkan setting interface
ke jaringan. Yang perlu kita cari adalah setting interface ppp0 yang
merupakan interface modem serial yang menghubungkan server Linux ke ISP
secara Point-to-Point. Dari informasi tersebut kita nantinya dapat
memastikan bahwa memang server anda akan dapat melakukan routing klien
ke internet, anda bisa menggunakan perintah route untuk mengecek
routing dari server anda menuju ke ISP tujuan. Untuk tampilan yang akan
anda peroleh kurang lebih sebagai berikut :
Created By 10
Muhammad Syahrizal
eth0 Link encap:Ethernet HWaddr 00:E0:18:C1:CD:A5
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:410903 errors:0 dropped:0 overruns:0 frame:5162
TX packets:403208 errors:0 dropped:0 overruns:0 carrier:2839
collisions:31500 txqueuelen:100
Interrupt:10 Base address:0x1800
Perhatikan pada tampilan perintah route ada paling tidak tiga (3)
interface (Iface) yaitu eth0, ppp0 & lo. Eth0 adalah interface ethernet
ke LAN yang mempunyai alamat IP 192.168.1.1, ppp0 adalah interface ke
ISP yang memperoleh IP dari ISP secara dinamik dalam hal ini yang di
peroleh adalah 202.152.1.129, sedang interface lo adalah untuk local
loopback dengan IP yang standar 127.0.0.1.
Created By 11
Muhammad Syahrizal
(RedHat),
minicom yang juga sudah terdapat dalam paket Linux (RedHat)
wvdial yang bisa anda download atau anda dapatkan secara gratis di
internet, pada distribusi SuSE secara default menggunakan jenis ini.
Program ini dapat anda download dan dapatkan dengan gratis source
code-nya, juga informasi mengenai program ini secara lengkap di
internet pada situs :
http://www.worldvisions.ca/wvdial/ atau site site linux terkemuka seperti
www.linuxberg.com, www.freshmeat.com, ataupun www.linux.com. Setelah anda
mendownload wvdial, anda akan memperoleh file bernama (kira-kira / atau versi
yang lebih baru): wvdial-1.20.tar.gz
silakan anda login sbg root dan kemudian un-compress dan extract file
tersebut ke direktori source anda (misalnya di /usr/local/src) dengan
cara:
# gunzip wvdial-1.20.tar.gz
# tar -xvf wvdial-1.20.tar
Created By 12
Muhammad Syahrizal
nanti anda akan menemukan direktori baru bernama: wvdial-1.20
silakan anda masuk ke direktori tersebut :
cd wvdial-1.20
[root@localhost wvdial-1.20]# ls
ANNOUNCE Makefile configfile/ rules.mk wvdial/ wvver.h
CHANGES README debian/ streams/ wvdial.1
COPYING.LIB TODO@ ppp.provider utils/ wvdialconf.1
karena wvdial di distribusikan dalam source code, maka anda harus
melakukan kompilasi terlebih dahulu agar bisa digunakan. Sebelum anda
melakukan kompilasi terhadap wvdial, pastikan terlebih dahulu bahwa
anda telah memasang beberapa paket berikut ini:
Buka file hasil download anda yang biasanya dalam bentuk file
terkompres.
Masuk ke dalam direktori tempat kode sumber wvdial tersebut dan lakukan
langkah-langkah kompilasi hingga instalasi:
Created By 13
Muhammad Syahrizal
jika anda menggunakan redhat silakan pindahkan manualnya ke direktori
/usr/man/man1 dgn perintah :
mv /usr/man/man1/wvdial* /usr/man/man1
Untuk membuat konfigurasi program wvdial ini, anda dapat membuat file
wvdial.conf secara manual yaitu dengan menggunakan editor yang anda
senangi pada lingkungan Linux dan anda bisa mencontoh konfigurasi yang
ada berikut ini. File ini biasanya disimpan di dalam direktori /etc.
[Dialer Defaults]
Modem = /dev/ttyS1 port tempat modem berada
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
Init3 = ATM1
Dial Command = ATDT
[Dialer ISP1]
Phone = 564645
Username = userku
Password = passku
[Dialer ISP2]
Phone = 564647
Username = usernya
Password = passnya
Selain itu, anda juga dapat membuat file konfigurasi tersebut dengan
menggunakan program yang memang sudah disediakan untuk membuat
konfigurasi secara otomatis dengan sekalian mendeteksi keberadaan modem
yang ada pada komputer anda beserta dengan konfigurasi dari modem
tersebut. Anda bisa menggunakan program wvdialconf.
Created By 14
Muhammad Syahrizal
tersebut. Meskipun demikian anda tetap perlu mengedit untuk memasukkan
beberapa informasi untuk melakukan dial ke ISP anda.
Untuk menjaga keamanan dari user anda dan password anda agar tidak
digunakan oleh orang lain, anda dapat melindungi file wvdial tersebut
dengan mengubah hak akses dan kepemilikannya sehingga hanya anda
sebagai super user (root) yang bisa membaca dan menulis ke dalam file
konfigurasi tersebut.
Created By 15
Muhammad Syahrizal
--> Looks like a password prompt.
--> Sending: (password)
Last login: Wed May 31 23:34:56 on ttyS0
~[7f]}#@!}!}!} }4}"}&} } } } }%}&@|}=+}'}"}(}0C~
--> PPP negotiation detected.
--> Starting pppd at Wed May 31 23:31:45 2000
Dan anda kembali lagi ke shell. Jika anda ingin agar konsol tersebut
tetap bisa digunakan anda dapat menjalankan program ini pada proses
latar belakang yaitu dengan menambahkan '&' pada akhir perintah. Untuk
mengakhirinya anda tidak dapat lagi menggunakan Ctrl-C, melainkan anda
harus mematikan proses wvdial dengan menggunakan perintah kill. Setelah
anda mengakhiri sesi wvdial ini, anda dapat membaca tentang berapa lama
anda terkoneksi dan berapa besar data yang di transfer baik keluar
maupun masuk selama anda terhubung anda dapat membacanya pada file
/var/log/messages.
Created By 16
Muhammad Syahrizal
Jika anda mendownload versi source-code, ketikkan perintah sebagai
berikut:
Setting Apache
Untuk melakukan setting apache, anda cari file conf/httpd.conf dan file
conf/srm.conf. Pada SuSE, bisa anda temukan konfigurasinya di
/etc/httpd/httpd.conf dan /etc/httpd/srm.conf. Selanjutnya lakukan
setting konfigurasi pada file conf/httpd.conf, dengan contoh sebagai
berikut:
Created By 17
Muhammad Syahrizal
LoadModule autoindex_module libexec/mod_autoindex.so
LoadModule dir_module libexec/mod_dir.so
LoadModule cgi_module libexec/mod_cgi.so
LoadModule asis_module libexec/mod_asis.so
LoadModule imap_module libexec/mod_imap.so
LoadModule action_module libexec/mod_actions.so
LoadModule speling_module libexec/mod_speling.so
LoadModule userdir_module libexec/mod_userdir.so
LoadModule alias_module libexec/mod_alias.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule access_module libexec/mod_access.so
LoadModule auth_module libexec/mod_auth.so
LoadModule anon_auth_module libexec/mod_auth_anon.so
LoadModule dbm_auth_module libexec/mod_auth_dbm.so
LoadModule digest_module libexec/mod_digest.so
LoadModule proxy_module libexec/libproxy.so
LoadModule cern_meta_module libexec/mod_cern_meta.so
LoadModule expires_module libexec/mod_expires.so
LoadModule headers_module libexec/mod_headers.so
LoadModule usertrack_module libexec/mod_usertrack.so
LoadModule unique_id_module libexec/mod_unique_id.so
LoadModule setenvif_module libexec/mod_setenvif.so
#LoadModule perl_module libexec/libperl.so
LoadModule php4_module libexec/libphp4.so
ClearModuleList
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
Created By 18
Muhammad Syahrizal
AddModule mod_auth.c
AddModule mod_auth_anon.c
AddModule mod_auth_dbm.c
AddModule mod_digest.c
AddModule mod_proxy.c
AddModule mod_cern_meta.c
AddModule mod_expires.c
AddModule mod_headers.c
AddModule mod_usertrack.c
AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
#AddModule mod_perl.c
AddModule mod_php4.c
ExtendedStatus On
ServerName server.net
DocumentRoot "/usr/local/httpd/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/usr/local/httpd/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
Created By 19
Muhammad Syahrizal
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
UseCanonicalName On
<IfModule mod_mime.c>
TypesConfig /etc/apache/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /etc/apache/magic
</IfModule>
HostnameLookups Off
ErrorLog /var/log/httpd/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/httpd/access_log common
ServerSignature On
<IfModule mod_alias.c>
Alias /icons/ "/usr/local/httpd/icons/"
<Directory "/usr/local/httpd/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/usr/local/httpd/cgi-bin/"
<Directory "/usr/local/httpd/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Created By 20
Muhammad Syahrizal
Allow from all
</Directory>
</IfModule>
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>
<IfModule mod_mime.c>
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
Created By 21
Muhammad Syahrizal
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8
<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br
ru ltz ca es sv tw
</IfModule>
Created By 22
Muhammad Syahrizal
</IfModule>
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0
force-response-1.0
</IfModule>
<VirtualHost home.rizal.net>
ServerAdmin
r...@home.rizal.net
DocumentRoot /home/rizal/www
ServerName home.rizal.net
ErrorLog /var/log/apache/home.rizal.net/error.log
CustomLog /var/log/apache/home.rizal.net/access.log common
</VirtualHost>
Untuk file srm.conf tidak usah dirubah, kecuali anda ingin menambahkan
modul-modul tambahan seperti php. Selantnya, untuk menjalankan apache,
ketikkan perintah berikut ini: root@rizal:/tmp $> PREFIX/bin/apachectl start
Untuk penjelasan fungsi yang ada pada file httpd.conf anda bisa
membacanya di buku "Apache Web Server". Sampai di sini server web yang
anda buat sudah bisa anda akses secara intranet melalui komputer klien.
Tentunya untuk menambahkan fasilitas yang macam-macam anda perlu
membuatkan program html dan cgi serta php kedalamnya.
Secara default program ftp, biasanya wu.ftp sudah disertakan pada saat
instalasi Linux. Pada saat ini, sudah ada program ftp terbaru yaitu
proftpd, yang diinformasikan lebih amand dari pada pendahulunya. Dimana
jika tidak aktivitas selama sekian menit, maka secara otomatis akan
terputus koneksinya dengan sendirinya.
Created By 23
Muhammad Syahrizal
Jika program ftp sudah terpasang pada komputer anda, langkah berikutnya
adalah mengaktifkan ftp, dengan cara:
# FTP Server
ftpstreamtcpnowaitroot/usr/sbin/tcpdwu.ftpd -a
# ftpstreamtcpnowaitroot/usr/sbin/tcpdproftpd
# ftpstreamtcpnowaitroot/usr/sbin/tcpdin.ftpd
Pada skrip di atas, hilangkan tanda pagar pada kalimat ftp stream tcp
nowait root /usr/sbin/tcpd wu.ftpd -a
Sampai di sini. program ftp sudah bisa berjalan dan siap digunakan.
Untuk tindakan pengamanan, salinlah skrip berikut ini ke directory /etc
dengan nama ftpusers dan securetty. Berikut adalah skrip dari ftpusers
dan securetty:
# file /etc/ftpusers:
adabas
amanda
at
bin
cyrus
daemon
dbmaker
db2fenc1
db2inst1
db2as
empress
fax
Created By 24
Muhammad Syahrizal
firewall
fnet
games
gdm
gnats
irc
informix
ixess
lnx
lp
man
mdom
mysql
named
news
nobody
nps
postfix
postgres
root
skyrix
uucp
virtuoso
yard
# End.
-------------------------------
#file /etc/securetty:
tty1
tty2
tty3
tty4
tty5
tty6
# for devfs:
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
Created By 25
Muhammad Syahrizal
Membuat Server Mail
Server mail berfungsi untuk administrasi email anda, baik yang masuk
maupun keluar (sending & receive email). Keuntungan dari server mail
ini adalah, bila anda mengirimkan attachment yang berukuran besar,
misalnya 1 Mbs tidak menjadi masalah karena akan dikirimkan dalam waktu
kurang dari satu menit. Keuntungan lainnya adalah anda tidak perlu
antri di ISP, karena email anda langsung terkirim ke alamat tujuan pada
server mail alamat yang dituju. Selain itu anda bisa melakukan
filtering untuk memisah-misahkan alamat email kepada klien secara
otomatis. Kerugiannya adalah orang yang anda kirimi biasanya ngomel
karena dikirimi attachment yang besar-besar :).
Administrasi Sendmail
Untuk menjalankan sendmail secara otomatis pada sat komputer
dinyalakan, anda harus menempatkan file sendmail di:
Untuk distro RedHat, menempati lokasi yang sama dengan SuSE, yaitu di
lokasi:
/etc/rc.d/init.d/sendmail
Berikut ini, isi skrip sendmail yang ada pada distro SuSE:
#! /bin/sh
# Copyright (c) 1996-99 SuSE Gmbh Nuernberg, Germany.
#
# Author: Florian La Roche, 1996, 1997
# Werner Fink <
wer...@suse.de
Created By 26
Muhammad Syahrizal
>, 1996, 1999
. /etc/rc.config
# Inform the caller not only verbosely and set an exit status.
test "$return" = "$rc_done" || exit 1
exit 0
Penggunaan Sendmail
Untuk menggunakan sendmail dalam pengiriman smtp maupun pop, caranya
adalah sebagai berikut:
Created By 28
Muhammad Syahrizal
Untuk menjalankan sendmail bukan sebagi daemon, ketikkan perintah:
root@rizal~$> /etc/rc.d/init.d/sendmail
Pada Kmail:
Pada bagian Email Server Names - Incoming mail (POP3, IMAP or HTTP)
server, isikan nama server Linux untuk POP3. Misalnya 192.168.1.1
Pada Outgoing mail (SMTP) server, ketikkan: mail.server.net
sampai di sini, pembuatan server mail sudah selesai, jika ingin
menambahkan fasilitas lainnya anda bisa menemukannya di
Created By 29
Muhammad Syahrizal
memberikan pelayanan sehari-hari. PDC ini bekerja sama dengan Back Up
Domain Controller (BDC) melakukan sinkronisasi Security Account Manager
(SAM). Sehingga bilamana terjadi PDC mengalami crash, tugasnya akan
segera digantikan oleh BDC.
Beberapa keuntungan program Samba, antara lain:
Instalasi Samba
Berikut ini, langkah-langkah yang akan kita jalankan untuk melakukan
instalasi program Samba:
Download Samba
Anda bisa melakukan download Samba di http://www.samba.org/. File yang
akan kita ambil adalah: samba-versi terkini-i386.tar.gz. Aplikasi Samba
yang penulis miliki adalah: samba-2.0.7-51-i386.tar.gz
Ekstraksi Samba
Untuk melakukan ekstraksi samba, ketikkan perintah:
Konfigurasi Samba
Untuk konfigurasi Samba, anda login sebagai root, kemudian ketikkan
perintah di bawah ini:
Created By 30
Muhammad Syahrizal
(smbd & nmbd).
Administrasi Samba
Untuk melakukan administrasi Samba, anda bisa mengedit file
/etc/smb.conf, seperti tampak di bawah ini:
# /etc/smb.conf
[global]
workgroup = arbeitsgruppe
guest account = nobody
keep alive = 30
os level = 2
kernel oplocks = false
security = user
printing = bsd
printcap name = /etc/printcap
load printers = yes
socket options = TCP_NODELAY
map to guest = Bad User
wins support = no
[homes]
comment = Heimatverzeichnis
browseable = no
read only = no
create mode = 0750
Created By 31
Muhammad Syahrizal
Melakukan editing secara manual, dengan menggunakan teks editor yang
ada, atau Menggunakan program bantu bernama SWAT, dengan cara ketikkan
perintah di bawah ini pada browser, seperti tampak pada gambar berikut:
Pastikan sebelumnya, anda sudah mempunyai account di server Linux, karena
bila tidak, maka tidak akan bisa bergabung dengan server Linux.
Selanjutnya akan muncul kotak dialog yang akan menanyakan nama user dan
password anda. Ketikkan dengan benar, dan anda siap berbagi data, file
dan printer dengan server Linux.
Referensi
Ahmad Sofyan, "Membangun Server Linux".
Onno W. Purbo & Akhmad D. Sembiring, "Apache Web Server".
Andreas Kostyrka, "NFS-Root-Howto".
Ofer Maor, "NFS-Root-Client-mini-HOWTO".
Onno W. Purbo, Kresno Aji, L. Budhi Handoko, Agus Hartx,
"Linux untuk Warnet".
David Wood, "SMB HOWTO".
Paul Ramsey, "Home-Network-mini-HOWTO-1".
Pramod Karnad, "The Linux Intranet Server HOWTO".
Paul Ramsey, "Red Hat Linux 6.X as an Internet Gateway for a
Home Network".
Terry Dawson (main author), VK2KTJ; Alessandro Rubini
(maintainer) , "Linux Networking-HOWTO".
Robert Eckstein, David Collier-Brown, Peter Kell, "Using Samba".
Created By 32
Muhammad Syahrizal