Debian
Membuat ROUTER pada LINUX DEBIAN
• Yang paling penting computer udah ter’install LINUX DEBIAN, pake’ mode text
jangan yang grafik
• Truz pasti’in juga computer punya 2 LAN Card yang siap pake’
• First step, setting IP buat 2 LAN Card, 1 LAN Card (eth0) di sambung’in ke client,
yang 1 lagi (eth1) di sambung’in ke internet (192.168.10.1).
• Untuk setting IP, haruz masuk ke /etc/network/interfaces, yang isinya :
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
broadcast 192.168.10.255
network 192.168.1.0
auto eth1
iface eth1 inet static
address 192.168.10.2
netmask 255.255.255.0
gateway 192.168.10.1
broadcast 192.168.10.255
network 192.168.10.0
auto lo
iface lo inet loopback
• Kalo’ udah setting tadi wajib di simpen
• Teruz restart network pake’ perintah /etc/init.d/networking restart
• Untuk nge-check setting ip tadi ketik perintah ifconfig
• Aktifkan ipforward dengan cara masuk ke /etc/sysctl.conf teruz aktifkan ipforward
dengan menghilangkan tanda kres (#)
• Kalo’langkah-langkah di atas udah, sekarang tinggal routing aja, caranya ketik :
#iptables –t nat –A POSTROUTING –s 192.168.1.0/24 –j MASQUERADE
#iptables-save
• Untuk nge-check proses routing itu ketik :
#iptables-t nat –n -L
Untuk mensetting dhcp agar komputer client mendapatkan ip yang tetap edit
script seperti di bawah ini :
host komputer1 {
hardware ethernet 00:50:56:C0:00:01;
fixed-address 192.168.1.2;
}
Uji Coba Koneksi , ping alamat server bila ada reply maka configurasi anda
berhasil.
Administrasi Server
DHCP Server Debian
Instalasi DHCP server
Setting up a DHCP server on Ubuntu Hardy Heron
Memastikan paket bind9 apakah sudah terinstall dengan benar, dengan perintah # dpky –
l bind9
};
Zone “debian.com,”{ Nama Server
Type master;
File “/var/cache/bind/db.debian”; Tempat file disimpan
};
Zone “192.in-addr.arpa”{
Type master;
File “/var/cache/bind/db.192”; Tempat file di simpan
};
Copy file db.127 dan db.local pada directoty yang sama ,dengan perintah:
# cp db.127 db.192
# cp db.local db.debian
Lalu pindah pada directory /var/cache/bind,dengan perintah:
# mv db.192 /var/cache/bind
# mv db.debian /var/cache/bind
Membuat file zone forward yang berfungsi untuk menerjemahkan nama ke IP Address
dari zona lokalnya.dengan perintah:
# pico /var/cache/bind/db.debian
$TTL 604800
@ IN SOA debian.com. root.debian.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS debian.com.
@ IN A 192.168.1.1
www IN A 192.168.1.1
Membuat file zone forward yang berfungsi menerjemahkan IP Address ke nama dari
zona lokalnya, dengan perintah
# pico /var/cache/bind/db.192
$TTL 604800
@ IN SOA debian.com. root.debian.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS debian.com.
1.1.168 IN PTR debian.com.
www IN PTR debian.com.
Mencoba DNS Server apakah sudah berjalan dengan baik dan benar dengan perintah
ping
# ping www.debian.com
Jika muncul reply berarti konfigurasi anda berhasil
# Allow anonymous FTP? (Beware – allowed by default if you comment this out )
anonymous_enable=YES
#
# Uncoment this to allow local users to log in.
local_enable=YES
#
# Uncoment this to enable any form of FTP write command.
write_enable=YES
# Default umask for local user is 077. you may wish to change this to 002,
# if your user expect that (022 is used by most other ftpd’s)
# local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=Yes
#
# Activate directory messages-messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections orginate from port 20 ( ftp-data).
connect_from_port_20=YES
PS : Tanda yang becetak tebal merupakan tanda yang telah dihilangkan tanda pagarnya
http://www.kel7.com/webmail
[global]
[my data]
path = /media/
guest ol = yes
browsable = yes
read-only = no
writeable = yes
valid users = kel7,root
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
public = no
writable = no
create mode = 0700
# Sharing Printer Windows clients look for this share name as a source of downloadable
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
writable = yes
guest ok = no —-> guest dilarang masuk
write list = root, @ntadmin
Untuk test apakah konfigurasi kita sudah berhasil, lakukan a computer on the
computers or people pengecekan menggunakan search ketikkan alamat IP kitanetwork
Untuk test apakah konfigurasi Anda sudah berhasil, buka Internet Explorer
tools
internet options
connections
LAN setting
Pilih use automatic configuration script
lalu isikan pada address alamat server kita
Administrasi Server
internet gratis 3 by cyberphreaking
install proxy squid di redhat 9 dan transparansi proxy
Setting Squid di Ubuntu 6.0.6
Dan anda liat di toolbar pojok kanan bawah anda bila ada tulisan success berarti anda
berhasil bila ad tulisan failed berarti anda gagal, dan coba anda liat sekali lagi apa
kesalahannya .
#. Untuk Debian :
1. Login As Root :
sany@kenshin:~$ su
Password:
Setelah login sebagai root maka buka /etc/network/interfaces
kenshin:/home/sany# vi /etc/network/interfaces
eth0 adalah nama kartu network anda, semua linux selalu terbiasa dari 0,1,2.. dsb.
# Untuk Mandriva :
1. Login As Root :
sany@kenshin:~$ su
Password:
Setelah login sebagai root maka buka /etc/sysconfig/network-scripts/ifctg-eth0
kenshin:/home/sany# vi /etc/sysconfig/network-scripts/ifctg-eth0
Muncul deh isinya
eth0 adalah nama kartu network anda, semua linux selalu terbiasa dari 0,1,2.. dsb.
Name adalah Nama Kartu anda.
address adalah Ip Address komputer anda yang di gunakan di eth0
Netmask, tergantung perhitungan anda.
Broadcast ip yang digunakan untuk mengumumkan ip anda.
Network anda
gateway digunakan sebagai ip yang digunakan untuk akses ke internet atau jaringan luar.
Nah setelah itu baru deh kita restart
#>/etc/init.d/networking stop
#>/etc/init.d/networking start
untuk partisi root, dibuat sebagai partisi boot juga, dengan cara
-klik enter