my tugas produktif_qu
setelah itu save (Ctrl+X lalu Y enter) dan restart squid nya (service squid restart)
Baca Selengkapnya →DNS (DOMAIN NAME SYSTEM)
Installasi
- Pertama masuk terminal
- root@debian:/home/user# sudo su
- root@debian:/home/user# pico /etc/apt/sources.list
setelah
masuk pico tambahkan repositorinya dan pilih salah satu yang di
gunakan(yang tidak digunakan di non-aktifkan). deb
http://mirror.its.ac.id/
debian squeeze main non-free contrib
- root@debian:/home/user# apt-get update
tunggu
sampai selesai
- root@debian:/home/user# apt-get install bind9
tunggu
sampai selesai
Konfigurasi
- root@debian:/home/user# pico/etc/bind/named.conf
//
this is the primary configuration file for the BIND DNS server named.
//
//
please read / usr/share/doc/bind9/README.Debian.gz for information on
the.
//
structure of BIND configuration files in Debian, *BEFORE* you
customize
//
this configuration file
//
//
if you are just adding zones, please do that in
/etc/bind/named.conf.local
Zone
“Irma.com” {
Type
master;
File
“etc/bind/Irma”;
};
Zone
“192.in-addr.arpa” {
Type
master;
File
“etc/bind/hati”;
};
include
"/etc/bind/named.conf.local";
- kemudian CTRL-X lalu Y lalu enter
- root@debian:/etc/bind# cp db.local /var/cache/bind/db.irma
- root@debian:/etc/bind# pico /var/cache/bind/hati
$TTL
604800
@
IN SOA irma.com. root.irma.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative
Cache TTL
;
@
IN NS irma.com.
@
IN A 192.168.10.31
- Kemudian CTRL-X lalu Y lalu enter
- root@debian:/etc/bind# cp db.127 /var/cache/bind/db.192
- root@debian:/etc/bind# pico /var/cache/bind/db.192
$TTL
604800
@
IN SOA irma.com. root.irma.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative
Cache TTL
;
@
IN NS irma.com.
31.10.168
IN PTR irma.com.
- root@debian:/etc/bind# pico /etc/resolv.conf
#generated
by networkmanager
Search
irma.com
Nameserver
192.168.10.31
- Kemudian CTRL X + Y
- root@debian:/etc/bind# /etc/init.d/bind9 restart
Pengujian
- root@debian:/etc/bind# nslookup 192.168.10.31
Server: 192.168.10.31
Address: 192.168.10.31#53
31.10.168.192.in-addr.arpa name
= irma.com.
- root@debian:/etc/bind# nslookup irma.com
Server: 192.168.10.31
Address: 192.168.10.31#53
Name: irma.com
cache_mem
15 MB
cache_mgr
admin@irma.com
visible_hostname
proxy.irma.com
Address:
192.168.10.31
Web
server
Instalasi
- root@debian:/home/user# apt-get install apache2 php5 mysql-server phpmyadmin
lalu
akan muncul tulisan : Reading package lists... Done
Konfigurasi
2. root@debian:/home/user#cd
/etc/apache2/sites-available/
3. root@debian:/home/user/sites-available/#cp
default web
4. root@debian:/home/user/sites-available#pico
web
pada
pico nama @local host di ganti dengan irma.com ,
tambahkan
tulisan di bawah serveradmin webmaster :
ServerName
www.irma.com
ServerAlias
irma.com
5. root@debian:/home/user/sites-available#a2dissite
default
6. root@debian:/home/user/sites-available#a2ensite
web
7.
root@debian:/home/user/sites-available#
cd /var/www/
8.
root@debian:/var/www#mkdir
web
9.
root@debian:/var/www#cd
web/
10.
root@debian:/var/www/web#
11.
buka TKJ.Lan dan download aplikasi Joomla
12.
setelah itu masuk pada home
13.
root@debian:/#cd
home/user/downloads
14.
root@debian:/home/user/downloads#
cp Joomla_2.5.6-Stable-Full_Package.zip
15.
root@debian:/var/www/web#apt-get
install unzip
tunggu
sampai instalasi selesai
16.
root@debian:/var/www/web#unzip
Joomla_2.5.6-Stable-Full_Package.zip
17. root@debian:/var/www/web#
ls
administrator
index.php media
build.xml
installation modules
cache
Joomla_2.5.6-Stable-Full_Package.zip plugins
cli
joomla.xml README.txt
components
language robots.txt
htaccess.txt
libraries templates
images
LICENSE.txt tmp
includes
logs web.config.txt
18. root@debian:/var/www/web#
chmod 777 ../web/ -R
19. root@debian:/var/www/web#
/etc/init.d/apache2 restart
Restarting
web server: apache2apache2: Could not reliably determine the server's
fully qualified domain name, using 127.0.0.1 for ServerName
...
waiting apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.0.1 for ServerName
20. root@debian:/var/www/web#
mysql -u root -p
Enter
password: ****
mysql>
create database web;
Query
OK, 1 row affected (0.00 sec)
mysql>
quit
Bye
21. root@debian:/var/www/web#
cd /etc/apache2/sites-available/
22. root@debian:/etc/apache2/sites-available#
pico web
23. root@debian:/etc/apache2/sites-available#
pico /etc/resolv.conf
24. root@debian:/etc/apache2/sites-available#
cd /var/www/web/
25. root@debian:/var/www/web#
cp /home/user/Downloads/Joomla_2.5.7-Stable-Full_Package.zip
/var/www/web/
26. root@debian:/var/www/web#
ls
administrator
installation modules
build.xml
Joomla_2.5.6-Stable-Full_Package.zip plugins
cache
Joomla_2.5.7-Stable-Full_Package.zip README.txt
cli
joomla.xml robots.txt
components
language templates
htaccess.txt
libraries tmp
images
LICENSE.txt web.config.txt
includes
logs
index.php
media
27. root@debian:/var/www/web#
unzip Joomla_2.5.7-Stable-Full_Package.zip
Archive:
Joomla_2.5.7-Stable-Full_Package.zip
replace
LICENSE.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename:N
28. masuk
pada http://irma.com/installation/index.php
29. pilih
NEXT
30. NEXT
31. NEXT
32. lalu
: NEXT
isi
data base type :MySql
Host
Name : Local Host
username
: root
password
: 1234
database
name : web
33.
NEXT
34. isi
kan nama : scorpio
masukkan
email: irmadwy99@yahoo.com
name
: irmadwy
password:
1234
35. lalu
: NEXT
36. NEXT
dan klik REMOVE INSTALLATION FOLDER
jadi
INSTALLATION FOLDER SUCCESSFULLY REMOVED dan klik ADMINISTRATION
- isi nama dan passwordnya.
Lalu
login
38. pilih
new article
39. masukkan
article pada joomla dan save
FTP
SERVER
Instalasi
- root@debian:/home/user# apt-get install proftpd
akan
muncul sperti di bawah ini.
- pilih standalone mode.
ok
Konfigurasi
dengan User Authentication Login
- root@debian:/home/user# mkdir tkj
- root@debian:/home/user# userdel tkj
- root@debian:/home/user# useradd -d /home/tkj
Usage:
useradd [options] LOGIN
tunggu
sampai selesai.
- root@debian:/home/user# useradd -d /tkj/ tkj
- root@debian:/home/user# passwd tkj
Enter
new UNIX password:
Retype
new UNIX password:
passwd:
password updated successfully
- root@debian:/home/user# pico /etc/proftpd/proftpd.conf
- setelah masuk tambahkan
<Anonymous
/home/tkj/>
User tkj
</Anonymous>
- root@debian:/home/user# ls
- root@debian:/home/user# cd ..
- root@debian:/home# ls
ftp
user
- root@debian:/home# mkdir tkj
- root@debian:/home# ls
ftp
tkj user
- root@debian:/home# /etc/init.d/proftpd restart
Stopping
ftp server: proftpd.
Starting
ftp server: proftpd.
Pengujian
Via Localhost
- root@debian:/home# ftp localhost
Connected
to localhost.
220
ProFTPD 1.3.3a Server (ftp.irma.com) [::1]
Name
(localhost:user): tkj
331
Anonymous login ok, send your complete email address as your password
Password:
230
Anonymous access granted, restrictions apply
Remote
system type is UNIX.
Using
binary mode to transfer files.
ftp>
bye
221
Goodbye.
- Buka web browser dan ketikkan “ftp.irma.com”
- setelah itu login dan isikan username : tkj dan password : tkj
- ok.
Mail
Server
Instalasi
- /home/user# apt-get install postfix courier-imap courier-pop
- Kemudian akan muncul menu PopUp. Dan sesuaikan dengan konfigurasi di bawah ini :
a.
General Type of Mail Configuration : Internet Site
b.
System Mail Name : irma.com
Konfigurasi
- /home/user# maildirmake /etc/skel/Maildir
- /home/user# adduser irma
Adding
user `irma' ...
Adding
new group `irma' (1002) ...
Adding
new user `irma' (1002) with group `irma' ...
Creating
home directory `/home/irma' ...
Copying
files from `/etc/skel' ...
Enter
new UNIX password: tkj
Changing
the user information for irma
Enter
the new value, or press ENTER for the default
Full
Name []: Irma dua
Room
Number []:
Work
Phone []:73201046
Home
Phone []:
Other
[]:
Is
the information correct? Y
- Menambahkan satu user lagi, agar prose mengirim bisa di laksanakan
/home/user#
adduser dwy
Adding
user `dwy' ...
Adding
new group `dwy' (1003) ...
Adding
new user `dwy' (1003) with group `dwy' ...
Creating
home directory `/home/dwy' ...
Copying
files from `/etc/skel' ...
Enter
new UNIX password: tkj
Retype
new UNIX password: tkj
passwd:
password updated successfully
Changing
the user information for dwy
Enter
the new value, or press ENTER for the default
Full
Name []: dwy dua
Room
Number []: 23
Work
Phone []:
Home
Phone []:
Other
[]:
Is
the information correct? [Y/n] Y
- Melakukan konfigurasi Postfix
/home/user#
nano /etc/postfix/main.conf
home_mailbox
= Maildir/
- Melakukan konfigurasi melalui dpkg
/home/user#
dpkg-reconfigure postfix
Stopping
Postfix Mail Transport Agent: postfix.
setting
synchronous mail queue updates: false
setting
myorigin
setting
destinations: irma.com, localhost, localhost.localdomain, localhost
setting
relayhost:
setting
mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 0.0.0.0/0
clearing
mailbox_command
setting
mailbox_size_limit: 0
setting
recipient_delimiter: +
setting
inet_interfaces: all
setting
inet_protocols: ipv4
- /home/user# /etc/init.d/postfix restart
- /home/user# /etc/init.d/courier-imap restart
- Menambahkan sub domain untuk mail server bind9
/home/user#
nano /etc/bind/db.irma
mail
IN A 192.168.10.31
- /home/user#/etc/init.d/bind9 restart
- Selesai menambahkan sub domain, lalu kembali ke home user
/home/user#
cd /home/user
Pengujian
- Kita akan mengirimkan e-mail ke user dwy
/home/user#
telnet mail.irma.com 25
Trying
192.168.10.31...
Connected
to mail.irma.com.
Escape
character is '^]'.
220
localhost ESMTP Postfix (Debian/GNU)
mail
from: irma
250
2.1.0 Ok
data
554
5.5.1 Error: no valid recipients
rcpt
to: dwy
250
2.1.5 Ok
data
354
End data with <CR><LF>.<CR><LF>
IJUST
SEND YOU A TESTING MESSAGE...
.
250
2.0.0 Ok: queued as 3C1CD1B69B
quit
221
2.0.0 Bye
Connection
closed by foreign host.
- Kalau sudah selesai kita lihat di User dwy
/home/user#
telnet mail.irma.com 110
Trying
192.168.10.31...
Connected
to mail.irma.com.
Escape
character is '^]'.
+OK
Hello there.
user
dwy
+OK
Password required.
pass
dwy
+OK
logged in.
stat
+OK
1 426
retr
1
+OK
426 octets follow.
Return-Path:
<irma@irma.com>
X-Original-To:
dwy
Delivered-To:
dwy@dwy.com
Received:
from unknown (unknown [192.168.10.31])
by
localhost (Postfix) with SMTP id 3C1CD1B69B
for
<dwy>; Wed, 14 Jan 2009 23:04:46 +0000 (UTC)
Message-Id:
<20090114230525.3C1CD1B69B@localhost>
Date:
Sat, 06 okt 2012 10:04:46 +0000 (UTC)
From:
irma@irma.com
To:
undisclosed-recipients:;
IJUST
SEND YOU A TESTING MESSAGE...
.
quit
+OK
Bye-bye.
Connection
closed by foreign host.
Web
mail
Instalasi
Dengan Squirrelmail
- Install squirrelmail dengan : root@debian:/home/user#apt-get install squirrelmail (enter)
Konfigurasi
- root@debian:/home/user#pico /etc/squirrelmail/apache2.conf (enter)
tambahkan
script ini yang paling bawah : Include
“/etc/squirrelmail/apache.conf”
- root@debian:/home/user#pico /etc/squirrelmail/apache.conf (enter)
yang
perlu di edit :
<virtual
*:80>
documentRoot
/user/share/squirrelmail
ServerName
mail.irma.com
</VirtualHost>
- root@debian:/home/user#/etc/init.d/apache2 restart (enter)
Pengujian
Squirrelmail
- masuk pada web browser : mail.irma.com
- maka akan muncul tampilan squirrelmail
- masukkan nama dan password lalu log in
DHCP Server
Dynamic Host Configuration
Protocol (CHCP), digunakan untuk melayani request Ip Address dari
client. Gunanya adalah, kita tidak perlu lagi repot-repot
mengkonfigurasi Ip pada computer, sebut saja Zero Configuration.
Client akan meminta Ip Address pada server, kemudian server akan
memberikan alokasi ip yang tersisa. DHCP memperbolehkan client dalam
sebuah network mendapatkan ip dan parameter-parameter lainnya seperti
gateway, DNS server, dan WINS server secara otomatis dari DHCP
server.
Pada bagian ini saya akan
menjelaskan cara untuk setting DHCP server,caranya sebagai berikut:
- Aplikasi yang kita gunakan untuk DHCP Server pada Debian bernama dhcp3-server.
root@debian:/home/user# apt-get
install dhcp3-server
Generating /etc/default/dhcp3-server...
Starting DHCP server: dhcpd3check syslog for
diagnostics. failed! failed!
invoke-rc.d: initscript dhcp3-server, action "start"
failed.
Setiap kali installasi dhcp server, akan muncul pesan
failed. Hal ini dikarenakan,
Ip Address kita tidak cocok dengan Ip Address pada file konfigurasi
Default dhcp3-server. Biarkan saja, nanti akan normal sendiri.
- File yang akan kita konfigurasi untuk dhcp server terletak pada satu file tunggal. File tersebut yakni dhcp.conf yang merupakan file dari dhcp3-server.
root@debian:/home/user# pico
/etc/dhcp3/dhcpd.conf
Beri tanda “#” pada semua baris. Kecuali baris
script di bawah ini. Sesuaikan alokasi ip dengan topologi jaringan.
#. . .
# A slightly different configuration for an internal
subnet.
subnet 192.168.31.0 netmask 255.255.255.192 {
range 192.168.31.1 192.168.31.60;
option domain-name-servers irma.com;
option domain-name "irma.com";
option routers 192.168.31.60;
option broadcast-address 192.168.31.61;
default-lease-time 14400;
max-lease-time 14400;
}
#. . .
- Jika dalam computer tersebut terdapat dua atau lebih Ethernet. Maka harus kita pastikan, Ethernet mana yang akan mendapat layanan DHCP Server. Untuk itu, edit file default dhcp seperti berikut.
root@debian:/home/user#
pico /etc/default/isc-dhcp-server
#. . .
# On what interfaces should the DHCP server (dhcpd)
serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0
eth1".
INTERFACES="eth3"
#sesuaikan dan ganti “eth3”
#. . .
- Simpan file dan restart dhcp yang sudah di konfigurasi dengan menggunakan perintah.
root@debian:/home/user#
/etc/init.d/isc-dhcp-server restart
Pengujian
- Pengujian pada Linux
Pada sisi client yang menggunakan system operasi linux,
gunakan perintah berikut. Jika terdapat dhcp server, maka computer
tersebut akan mendapatkan ip address secara otomatis.
root@debian:/home/user#
dhclient
Keadaan di atas, akan hilang jika computer kita restart.
Agar konfigurasi tetap dhcp, walaupun computer kita reboot,maka kita
harus mengedit file interfaces dahulu.
Kemudian rubah menjadi mode dhcp.
root@debian:/home/user#
pico /etc/network/interfaces
Dengan tambahkan script:
#. . .
auto eth3
iface eth3 inet
dhcp
- Sesudah itu restart network dengan menggunakan perintah.
root@debian:/home/user#
/etc/init.d/networking restart
SAMBA
SERVER
Instalasi
:
root@debian:/home/user#
apt-get update
root@debian:/home/user#
apt-get install samba
tunggu
sampai instalasi selesai
dan
pilih “ok”
root@debian:/home/user#
cd /home/user/
root@debian:/home/user#
mkdir share
root@debian:/home/user#
mkdir data
root@debian:/home/user#
chmod 777 share/ -R
root@debian:/home/user#
chmod 777 data/ -R
root@debian:/home/user#useradd
tkj
root@debian:/home/user#smbpasswd
-a tkj
root@debian:/home/user#pico
/etc/samba/smb.conf
ubah
pada ####### Authentication #######
jadi
: security = user
security
= data
dan
ubah pada #======= Share Definitions =======
jadi
: [share]
path
= /home/user/share/
browseable
= yes
writeable
= yes
valid
users = tkj
admin
users = root
[data]
path
= /home/user/data/
browseable
= yes
writeable
= yes
guest
ok = yes
root@debian:/home/user#
/etc/init.d/samba restart
PROXY
SERVER
- root@debian:/home/user#apt-get install squid
- root@debian:/home/user# nano /etc/squid/squid.conftulis http_port, lalu tekan terus sampai ada tulisan seperti dibawah dan isikan perintah berikut :Squid normally listens to port 3128http_port 3128 transparentcache_mem 16 MBcache_mgr admin@irma.comvisible_hostname proxy.irma.comlalu tulis lagi acl connect, lalu isikan perintah berikut :acl url dstdomain "/etc/squid/url"acl key url_regex -i "/etc/squid/key"http_access deny urlhttp_access deny keyacl lan src 192.168.10.0/26http_access allow lanhttp_access allow all
- root@debian: /home/user# vim /etc/squid/urlisikan perintah yahoo.com
- root@debian :/home/user# vim /etc/squid/keyisikan perintah pantai
- root@debian:/home/user# /etc/init.d/squid restart
- root@debian:/home/user# squid -z
- root@debian:/home/user# iptables -t nat -A PREROUTING -s 192.168.10.0/26 -p tcp --dport 80 -j REDIRECT --to-port 3128
- root@debian:/home/user# iptables-save > /etc/iptables
- root@debian:/home/user# cd /usr/share/squid/errors/English
- root@debian:/usr/share/squid/errors/English# vim ERR_ACCESS_DENIED
- root@debian:/usr/share/squid/errors/English# cd /home/user
- root@debian:/home/user# /etc/init.d/squid restart
- lalu buka ke halaman browser lalu tekan edit >preferens >advanced >network >setting >manual proxy configuration, lalu isikan ip 192.168.10.31 dan port 3128 >OK
- lalu coba buka halaman browser dan ketikkan alamat yahoo.com dan pantai, jika ada kata ERROR seperti divawah ini, maka berhasil.
- root@debian:/home/user# nano /etc/squid/squid.conf
Sunting acl dan menambahkan port FTP 3128 di SSL_ports
sehingga baris konfigurasi acl akan terlihat seperti "acl
SSL_ports port 3128
# TAG:
acl
#
Defining an Access List
=============================
#Default:
#
acl all src all
#
#Recommended
minimum configuration:
acl
manager proto cache_object
acl
localhost src 127.0.0.1/32
acl
to_localhost dst 127.0.0.0/8
#
#
Example rule allowing access from your local networks.
#
Adapt to list your (internal) IP networks from where browsing
#
should be allowed
acl
localnet src 10.0.0.0/8 # RFC1918 possible internal
network
acl
localnet src 172.16.0.0/12 # RFC1918
possible internal network
acl
localnet src 192.168.0.0/16 # RFC1918
possible internal network
#
acl
SSL_ports port 443 21
<------ put port 21 here
acl
Safe_ports port 80 # http
acl
Safe_ports port 21 # ftp
acl
Safe_ports port 443 # https
acl
Safe_ports port 70 # gopher
acl
Safe_ports port 210 # wais
acl
Safe_ports port 1025-65535 #
unregistered ports
acl
Safe_ports port 280 # http-mgmt
acl
Safe_ports port 488 # gss-http
acl
Safe_ports port 591 # filemaker
acl
Safe_ports port 777 # multiling
http
acl
CONNECT method CONNECT
#
TAG: http_access
#
Allowing or Denying access based on defined access lists
- Kemudian mencari dan menambahkan ke depan permintaan FTP secara langsung, untuk memungkinkan / mengaktifkan permintaan FTP pada proxy Squid dari klien jaringan kami. Konfigurasi squid.conf di bawah ini menunjukkan contoh konfigurasi perlu dilakukan pada file konfigurasi squid.
#
TAG: always_direct
#
Usage: always_direct allow|deny [!]aclname ...
#
#
Here you can use ACL elements to specify requests which should
#
ALWAYS be forwarded by Squid to the origin servers without using
#
any peers. For example, to always directly forward requests for
#
local servers ignoring any parents or siblings you may have use
#
something like:
#
#
acl local-servers dstdomain my.domain.net
#
always_direct allow local-servers
#
#
To always forward FTP requests directly, use
#
#
acl FTP proto FTP
#
always_direct allow FTP
#
#
NOTE: There is a similar, but opposite option named
#
'never_direct'. You need to be aware that "always_direct
deny
#
foo" is NOT the same thing as "never_direct allow foo".
You
#
may need to use a deny rule to exclude a more-specific case of
#
some other rule. Example:
#
#
acl local-external dstdomain external.foo.net
#
acl local-servers dstdomain .foo.net
#
always_direct deny local-external
#
always_direct allow local-servers
#
#
NOTE: If your goal is to make the client forward the request
#
directly to the origin server bypassing Squid then this needs
#
to be done in the client configuration. Squid configuration
#
can only tell Squid how Squid should fetch the object.
#
#
NOTE: This directive is not related to caching. The replies
#
is cached as usual even if you use always_direct. To not cache
#
the replies see no_cache.
#
#
This option replaces some v1.1 options such as local_domain
#
and local_ip.
#
#Default:
acl
FTP proto FTP
always_direct
allow FTP
- Restart server proxy squid untuk menerapkan perubahan.root@debian:/home/user# /etc/init.d/squid restart
- root@debian:/home/user# nano /etc/squid/squid.conf
#
DELAY POOL PARAMETERS
#
-----------------------------------------------------------------------------
#
TAG: delay_pools
#
This represents the number of delay pools to be used. For
example,
#
if you have one class 2 delay pool and one class 3 delays pool,
you
#
have a total of 2 delay pools.
#
#Default:
delay_pools
1 kita
tambah kan
delay_pools
1 2 kita
tambah kan
delay_parameters
1 -1/-1 5000/5000 kita
ganti bandwith 5000
#
delay_pools 0
setelah itu save (Ctrl+X lalu Y enter) dan restart squid nya (service squid restart)
- root@debian:/home/user# /etc/init.d/squid restart
VPN
SERVER
root@debian:/home/user#apt-get
update
root@debian:/home/user#apt-get
install pptpd
tunggu
sampai instalasi selesai
setelah
selesai instalasi sekarang masuk pada pptpd.conf
root@debian:/home/user#pico
/etc/pptpd.conf
atur
configurasi menjadi : # (Recommended)
localip 192.168.10.31
remoteip 192.168.10.234-238,192.168.31.245
# or
#localip 192.168.0.234-238,192.168.0.245
#remoteip 192.168.1.234-238,192.168.1.245
setelah
itu kita buat user dan passwordnya
root@debian:/home/user#pico
/etc/ppp/chap-secrets
atur
konfigurasinya menjadi : # Secrets for authentication using CHAP
#
client server secret IP addresses
onhenk pptpd onhenk *
root@debian:/home/user#/etc/init.d/pptpd
restart
NTP
SERVER
Install
dahulu:
root@debian:/home/user#apt-get
install ntp ntpdate
tunggu
sampai instalasi selesai
setelah
itu atur konfigurasinya seperti di bawah ini:
root@debian:/home/user#pico
/etc/ntp.conf
tambahkan
di paling atas sendiri:
“server
127.127.1.0
restrict
192.168.10.0 mask 255.255.255.192
setelah
di konfigurasi,restartlah
root@debian:/home/user#/etc/init.d/ntp
restart
setelah
itu masuk pada pengujian :
root@debian:/home/user#ntpq
-p
remote
refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0)
.LOCL. 5 l 4 64 1 0.000 0.000 0.001
(jika
pada jitter tidak bernilai 0.001 maka rebootlah)
root@debian:/home/user#ntpdate
-u 127.0.0.1
24
Nov 08:55:59 ntpdate[3798]: adjust time server 127.0.0.1 offset
0.000006 sec
root@debian:/home/user#ln
-sf /usr/share/zoneinfo/Asia/Jakarta /etc/localtime
root@debian:/home/user# /etc/init.d/ntp restart
Stopping
NTP server: ntpd.
Starting
NTP server: ntpd.
root@debian:/home/user#
ntpdate -u 192.168.10.31
setelah
itu restart lagi :
root@debian:/home/user#
/etc/init.d/ntp restart