Difference between revisions of "SMEOnffLine: Mengubah IP address agar menjadi IP address Statik atau IP address Dinamik"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
==IP Statik== | ==IP Statik== | ||
+ | |||
+ | ===Copy /etc/rc.local=== | ||
sudo cp /etc/rc.local.ip.statik /etc/rc.local | sudo cp /etc/rc.local.ip.statik /etc/rc.local | ||
+ | |||
+ | ===Sesuaikan DHCP Server=== | ||
+ | |||
+ | Edit [[DHCP Server]] agar sesuai, misalnya | ||
+ | |||
+ | vi /etc/dhcp3/dhcpd.conf | ||
+ | |||
+ | ddns-update-style none; | ||
+ | option domain-name "ukm.co.id" | ||
+ | option domain-name-servers 192.168.0.254, 203.34.118.10, 203.34.118.12, 208.67.222.222, 208.67.220.220; | ||
+ | default-lease-time 86400; # 24 jam | ||
+ | max-lease-time 172800; # 48 jam | ||
+ | authoritative; | ||
+ | |||
+ | '''subnet 192.168.0.0 netmask 255.255.255.0 {''' | ||
+ | '''range 192.168.0.30 192.168.0.70;''' | ||
+ | '''option routers 192.168.0.1;''' | ||
+ | '''}''' | ||
+ | |||
+ | ===Sesuaikan SMTP Postfix=== | ||
+ | |||
+ | vi /etc/postfix/main.cf | ||
+ | |||
+ | mynetworks = 127.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 '''192.168.0.0/16''' | ||
+ | |||
+ | ===Sesuaikan NTP Server=== | ||
+ | |||
+ | vi /etc/ntp.conf | ||
+ | |||
+ | '''restrict 192.168.0.0 mask 255.255.255.0 trust''' | ||
+ | '''broadcast 192.168.0.255''' | ||
+ | |||
+ | ===Sesuaikan dansguardian=== | ||
+ | |||
+ | vi /etc/dansguardian/dansguardian.conf | ||
+ | |||
+ | accessdeniedaddress = 'http://'''192.168.0.254'''/cgi-bin/dansguardian.pl' | ||
+ | |||
+ | ===Sesuaikan eGroupWare=== | ||
+ | |||
+ | Edit konfigurasi & sesuaikan [[IP address]] yang baru | ||
+ | |||
+ | http://localhost/egroupware/setup/config.php | ||
+ | |||
+ | ===Sesuaikan Wiki=== | ||
+ | |||
+ | Edit konfigurasi | ||
+ | |||
+ | vi /var/www/wiki/LocalSettings.php | ||
+ | |||
+ | $wgLogo = "http://'''192.168.0.254'''/wiki/odc-wiki.jpg"; | ||
==IP Dinamik== | ==IP Dinamik== | ||
+ | |||
+ | ===Copy /etc/rc.local=== | ||
sudo cp /etc/rc.local.ip.dinamik /etc/rc.local | sudo cp /etc/rc.local.ip.dinamik /etc/rc.local | ||
− | + | ===Matikan DHCP Server=== | |
sudo /etc/init.d/dhcp3-server stop | sudo /etc/init.d/dhcp3-server stop | ||
− | |||
==Pranala Menarik== | ==Pranala Menarik== |
Latest revision as of 10:25, 6 January 2010
Sesuaikan isi /etc/rc.local dengan keperluan kita. Nilai default IP address dinamik. Untuk aplikasi server harus di set agar IP address statik.
IP Statik
Copy /etc/rc.local
sudo cp /etc/rc.local.ip.statik /etc/rc.local
Sesuaikan DHCP Server
Edit DHCP Server agar sesuai, misalnya
vi /etc/dhcp3/dhcpd.conf
ddns-update-style none; option domain-name "ukm.co.id" option domain-name-servers 192.168.0.254, 203.34.118.10, 203.34.118.12, 208.67.222.222, 208.67.220.220; default-lease-time 86400; # 24 jam max-lease-time 172800; # 48 jam authoritative; subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.30 192.168.0.70; option routers 192.168.0.1; }
Sesuaikan SMTP Postfix
vi /etc/postfix/main.cf
mynetworks = 127.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/16
Sesuaikan NTP Server
vi /etc/ntp.conf
restrict 192.168.0.0 mask 255.255.255.0 trust broadcast 192.168.0.255
Sesuaikan dansguardian
vi /etc/dansguardian/dansguardian.conf
accessdeniedaddress = 'http://192.168.0.254/cgi-bin/dansguardian.pl'
Sesuaikan eGroupWare
Edit konfigurasi & sesuaikan IP address yang baru
http://localhost/egroupware/setup/config.php
Sesuaikan Wiki
Edit konfigurasi
vi /var/www/wiki/LocalSettings.php
$wgLogo = "http://192.168.0.254/wiki/odc-wiki.jpg";
IP Dinamik
Copy /etc/rc.local
sudo cp /etc/rc.local.ip.dinamik /etc/rc.local
Matikan DHCP Server
sudo /etc/init.d/dhcp3-server stop