Você está na página 1de 3

video LKS2013 ============= Configure the network primary network interface: eth0 Configure manual network ip address: 192.168.90.

1 /24 gateway: 192.168.90.1 name server address: 192.168.90.1 hostname: peceex domain name: dheniez.edu user account username: user password: 123abc login as root nano /etc/network/interfaces allow-hotplug eth0 #allow-hotplug, interface akan berfungsi setelah rebo ot address 192.168.90.1 netmask 255.255.255.0 network 192.168.90.0 broadcast 192.168.90.255 gateway 192.168.90.1 dns-nameservers 192.168.90.1 dns-search dheniez.edu auto eth1 address 192.168.100.1 netmask 255.255.255.0 network 192.168.100.0 broadcast 192.168.100.255 gateway 192.168.100.1 /etc/init.d/networking restart --------------------------------------------------apt-get install dhcp3-server nano /etc/default/dhcp3-server #isc-dhcp-server INTERFACES="eth1" #interface yang terhubung ke client nano /etc/dhcp3/dhcpd.conf #/etc/dhcp/dhcpd.conf # A slightly diff..... subnet 192.168.100.0 netmask 255.255.255.0 { range 192.168.100.2 192.168.100.100; option domain-name-servers 192.168.90.1; option domain-name "dheniez.edu"; option routers 192.168.100.1; option broadcast-address 192.168.100.255; default-lease-time 600; max-lease-time 7200; } /etc/init.d/dhcp3-server restart #isc-dhcp-server NB: restart networking jika diperlukan. restart dhcp jika terdapat pesan failed.

ping 192.168.90.1

ping 192.168.100.1 ping 192.168.100.2 #jika sudah terkoneksi dengan client --------------------------------------------------apt-get install proftpd run proftpd: standalone nano /home/user/proftpd.txt #membuat file di folder ftp proftpd SUKSES ! ftp 192.168.90.1 #mengakses ftp dari ip yang dimaksud Name: user Password: 123abc ftp> ls #untuk melihat isi folder ftp dari akun user ftp> bye #keluar dari aplikasi ftp cat /home/user/proftpd.txt #melihat konten file --------------------------------------------------apt-get install apache2 nano /var/www/index.html <html> <head> <title>apache2</title> </head> <body> Apache2 SUKSES ! </body> </html> apt-get install links #install browser text mode links #menjalankan aplikasi links url: 192.168.90.1 --------------------------------------------------apt-get install php5 nano /var/www/info.php #membuat file info.php <? phpinfo(); ?> -----------------------------------------apt-get install bind9 nano /etc/bind/named.conf #tambahkan statement berikut sebelum baris include zone "dheniez.edu" { type master; file "db.dheniez"; }; zone "192.in-addr.arpa" { type master; file "db.192"; }; cp /etc/bind/db.local /var/cache/bind/db.dheniez cp /etc/bind/db.127 /var/cache/bind/db.192 nano /var/cache/bind/db.192 replace localhost <> dheniez.edu ...

@ 1.90.168

IN IN

NS PTR

dheniez.edu. dheniez.edu.

nano /var/cache/bind/db.dheniez replace localhost <> dheniez.edu ... @ IN NS dheniez.edu. @ IN A 192.168.90.1 www IN A 192.168.90.1 ftp IN A 192.168.90.1 mail IN A 192.168.90.1 vpn IN A 192.168.90.1 /etc/init.d/bind9 restart nslookup dheniez.edu 192.168.90.1 ^C for EXIT -------------------------------------------apt-get install postfix courier-pop coureier-imap squirrelmail Create directory based-web: NO Postfix configuration: Internet Site System mail name: dheniez.edu nano /etc/postfix/main.cf goto last file home_mailbox = Maildir/ dpkg-reconfigure postfix Root and postmaster mail recipient: OK Other destinations to accept mail for (blank for none): OK Force synchronous update on mail queue? NO Local network: add 0.0.0.0/0 Use procmail for local delivery? NO Mailbox size limit (byte): OK Local address extension character: Internet protocols to use: ipv4 nano /etc/squirrelmail/apache.conf # users will prefer ... <VirtualHost -:80> DocumentRoot /usr/share/squirrelmail ServerName mail.dheniez.edu </VirtualHost> nano /etc/apache2/apache2.conf goto last file Include /etc/squirrelmail/apache.conf

Você também pode gostar