Professional Documents
Culture Documents
edit Menjadi : # Uncomment the next line to enable packet forwarding for IPv4 net.ipv4.ip_forward=1
tambahkan baris Menjadi : #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 0/0 -j MASQUERADE exit 0
Atau
~#init 6
Jika firewall yang anda masukkan benar maka akan tampil spt gbr dibawah ini :
root@ubuntu:~# iptables -L -t nat Chain PREROUTING (policy ACCEPT) target prot opt source destination
Chain POSTROUTING (policy ACCEPT) target prot opt source destination anywhere
MASQUERADE all -- 192.168.1.0/24 Chain OUTPUT (policy ACCEPT) target prot opt source
destination
DNS SERVER
Install paket bind9 untuk kebutuhan DNS Server dengan perintah
~# apt-get install bind9
; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA localhost. root.localhost. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS localhost. @ IN A 127.0.0.1 @ IN AAAA ::1
Menjadi ;
; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA ns.teknik08.org. root.teknik08.org. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; IN NS ns.teknik08.org. ns IN A 192.168.1.100 www in cname mail in cname ftp in cname proxy in cname
Menjadi;
; ; BIND reverse data file for broadcast zone ; $TTL 604800 @ IN SOA ns.teknik08.org. root.teknik08.org. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; IN NS ns.teknik08.org. 100 in ptr ns.teknik08.org.
menjadi;
domain ns.teknik08.org nameserver 118.98.166.11 nameserver 202.134.1.10
FTP SERVER
Install paket vsftpd untuk kebutuhan FTP Server dengan perintah
~# apt-get install vsftpd
# Uncomment this to enable any form of FTP write command. write_enable=YES (hilangkan tanda pagar pada baris ini) # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd's) #local_umask=022
Kemudian Pada baris akhir tambahkan script untuk mengarahkan direktori ftp
anon_root =/home/teknik08
Web SERVER
Install paket apache2 dan php5 untuk kebutuhan web Server dengan perintah
~# apt-get install apache2 php5
menjadi;
<VirtualHost *:80> ServerAdmin webmaster@localhost www.teknik08.org DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory>
Kemudian script yg ditulis tebal menyatakan bahwa direktori web berada pada direktori /var/www/ sehingga nantinya halaman web yg akan dihosting/disimpan diserver berada pada direktori /var/www
setelah itu cari baris : http_access allow localhost # And finally deny all other access to this proxy http_access deny all lalu tambahkan: http_access allow lan menjadi: http_access allow localhost http_access allow lan # And finally deny all other access to this proxy http_access deny all Selanjutnya tambahkan baris visible_hostname visible_hostname proxy.skull.net 3. Buat folder cache dir, sesuai konfigurasi. Mis: /cache ~# mkdir -p /cache ~#chown proxy.proxy /cache 4. Buat cache, dengan perintah: ~# sudo squid z