Network Administration Onno W. Purbo
Referensi
Instalasi Perangkat Jaringan Instalasi modul Menset IP Periksa konfigurasi jaringan
Instalasi modul # modprobe ne io=0x300 # modprobe ne2k-pci io=0x300 irq=5
Menentukan IP Card # /sbin/ifconfig eth
Periksa Konfigurasi # /sbin/ifconfig -a
Sambungan ke Internet Instalasi ppp & wvdial Konfigurasi client Jalankan program wvdial
Instalasi pppd & wvdial # rpm –ivh pppd-x.rpm # rpm –ivh wvdial-x.rpm
Konfigurasi wvdial # wvdialconf /path/to/wvdial.conf Serial Port di Linux /dev/ttyS0 = COM1 (DOS) /dev/ttyS1 = COM2 (DOS)
Menjalankan wvdial # wvdial & # wvdial ISP2 & # wvdial ISP3 &
ipchains
Pengenalan ipchains input output forward user defined
Kriteria ipchains ACCEPT- terima paket DENY- tolak paket tanpa pesan REJECT- tolak paket dg pesan MASQ- bungkus paket REDIRECT- arahkan paket RETURN- arahkan paket
Manual ipchains # man ipchains # info ipchains
Check default setting ipchains # ipchains –L Chain input (policy ACCEPT): Chain forward (policy ACCEPT): Chain output (policy ACCEPT):
Contoh kasus ipchains WARNET x Menolak paket ke port telnet
WARNET x # ipchains –P forward DENY # ipchains –A forward –s /24 –j MASQ
Tolak ke telnet # ipchains –A input –p tcp –- destination port 23 –s /32 –j DENY
inetd
/etc/inetd.conf # killall –HUP inetd
Samba
Instalasi Samba # rpm –ivh samba-common i386.rpm # rpm –ivh samba i386.rpm # rpm –ivh samba-client i386.rpm
Manual Samba /usr/doc/samba-2.0.6/ # man samba # info samba
Program Samba File & Printer Sharing # /usr/bin/smbd –D NetBIOS naming # /usr/bin/nmbd –D # /usr/bin/smbclient # /usr/bin/smbmount # /usr/bin/smbumount # /usr/bin/smbstatus # /usr/bin/smbpasswd
Konfigurasi Samba /etc/smb.conf
FTP Server
Instalasi FTP server # rpm –ivh wu-ftp-x.rpm
Konfigurasi FTP server services inetd.conf ftpaccess ftphosts ftpusers
/etc/services ftp-data20/tcp ftp21/tcp
/etc/inetd.conf ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd –l -a
/etc/ftpaccess class typelist addrglobal deny addrglobal message_file limit n times message_file Loginfails number
/etc/ftphosts allow deny
/etc/ftpusers Berisi daftar user yang tidak boleh akses ke ftp server
Web server
Instalasi Web server # rpm –ivh apache rpm
Konfigurasi httpd.conf srm.conf access.conf
httpd.conf
srm.conf
access.conf
Virtual host IP based Name based
Virtual Host – IP based DocumentRoot /path/to/document ServerName
Virtual Host – name based NameVirtualHost DocumentRoot /path/to/document1 ServerName DocumentRoot /path/to/document2 ServerName
Konfigurasi Modul Apache # /usr/local/apache/bin/httpd –l Static Module LoadModule php4_module libexec/libphp4.so DSO (Dynamic Shared Object) AddModule mod_php4.c
Menjalankan Web Server # apachectl start # apachectl restart # apachectl –help
Mail Server procmail i386.rpm sendmail i386.rpm sendmail-cf i386.rpm sendmail-doc i386.rpm imap i386.rpm imap-devel i386.rpm
Sendmail Hostname Smart host
Pengambilan Mail fetchmail
Baca Mail pop
Billing warnet/warnet tgz