0% found this document useful (1 vote)
580 views1 page

Nano /etc/network/interfaces: (Kalau Tidak Bisa, Ketik Yg Dibawah Ini)

The document provides instructions for configuring IP addresses, installing and configuring DHCP, DNS, web, and proxy servers on a Linux server. It includes commands to set a static IP address, install DHCP and DNS server software, edit configuration files, copy files to locations, restart services, and install and configure an Apache web server and Squid proxy server. Key steps are configuring IP addresses and interfaces, installing DHCP and DNS servers, editing zone files, copying files to locations, installing Apache and editing the index.html file, and installing and configuring Squid proxy server.

Uploaded by

Redna Ambar Sari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
580 views1 page

Nano /etc/network/interfaces: (Kalau Tidak Bisa, Ketik Yg Dibawah Ini)

The document provides instructions for configuring IP addresses, installing and configuring DHCP, DNS, web, and proxy servers on a Linux server. It includes commands to set a static IP address, install DHCP and DNS server software, edit configuration files, copy files to locations, restart services, and install and configure an Apache web server and Squid proxy server. Key steps are configuring IP addresses and interfaces, installing DHCP and DNS servers, editing zone files, copying files to locations, installing Apache and editing the index.html file, and installing and configuring Squid proxy server.

Uploaded by

Redna Ambar Sari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

KONFIGURASI IP ADDRESS apt cups forward pm-utils software-center

root@server:# nano /etc/network/interfaces apt-xapian-index debconf gdm postgresql


root@www:/var/cache# nano reverse
root@www:/var/cache# cd /etc/bind
# the primary network interface root@www:/etc/bind# dir
auto eth0 bind.keys db.empty named.conf.default-zones zones.rfc1918
iface eth0 inet static db.0 db.local named.conf.local
address 192.168.100.1 db.127 db.root named.conf.options
db.255 named.conf rndc.key
netmask 255.255.255.192
root@www:/etc/bind# nano db.255
network 192.168.100.0 root@www:/etc/bind# cp db.255 /var/cache/forward
broadcast 192.168.100.63 root@www:/etc/bind# cd /var/cache
gateway 192.168.100.1 root@www:/var/cache# dir
analog bind dictionaries-common ldconfig reverse
kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)
apache2 binfmts fontconfig man samba
root@server:# /etc/init.d/networking restart apt cups forward pm-utils software-center
root@server:# ifconfig apt-xapian-index debconf gdm postgresql
root@server:# route –n root@www:/var/cache# nano forward
DHCP Server root@www:/var/cache# nano /etc/hostname
root@www:/var/cache# nano /etc/hosts
root@server:# apt-get install dhcp3-server
root@www:/var/cache# cd bind
root@server:# nano /etc/dhcp/dhcpd.conf root@www:/var/cache/bind# dir
forward reverse
#... root@www:/var/cache/bind# /etc/init.d/bind9 restart
Stopping domain name service...: bind9 waiting for pid 1323 to die.
Subnet 192.168.100.0 netmask 255.255.255.192
Starting domain name service...: bind9.
range 192.168.100.2 192.168.100.62 root@server:# nslookup www. smkdarmaplus.sch.id.
option domain-name “smkdarmaplus.sch.id”; root@server:# nslookup 192.168.100.1
option domain-name-servers 192.168.100.1 root@server:# nslookup mail. smkdarmaplus.sch.id.
option routers 192.168.100.1
option broadcast-address 192.168.100.63
default-lease-time 600; WEB SERVER
max-lease-time 7200;
root@server:# apt-get install apache2
} root@server:# nano /var/www/index.html
#...
root@server:# nano /etc/default/isc-dhcp-server <html>
INTERFACES=”eth0 eth1” <head>
<title>
root@server:# /etc/init.d/dhcp3-server restart (kalau tidak bisa, ketik yg dibawah ini)
SMK... BISA!!!
root@server:# /etc/init.d/isc-dhcp-server restart </title>
</head>
INSTALL & KONFIGURASI DNS SERVER <body>
root@server:# apt-get install bind9 bind9-doc dnsutils <p align="center">
<font face="verdana" size="5" color="green">
root@server:# nano /etc/bind/named.conf.default-zones
YAYASAN PONDOK PESANTREN DARUL MA'ARIF
</font>
zone “smkdarmaplus.sch.id” { <br><font face="pristina" size="5" color="#ff0000"><b> SMK DARMA Plus </b></font></br>
type master; <font face="verdana" size="5" color="blue"> Payaman Solokuro Lamongan </font>
file “/var/cache/bind/forward”; </p>
<p><p>
}; <p align="center">
Zone “100.168.192.in-addr.arpa” { <img src='smk.jpg' widht="190" height="190">
type master; <br></br>
file “/var/cache/bind/reverse”; <font face="verdana" size="4">
Nama:Lailatul Magfiroh
};
</font>
#... </body>
Kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar) </html>
root@server:# cp /etc/bind/db.local /var/cache/bind/forward root@server:#/etc/init.d/apache2 restart
root@server:# nano /var/cache/bind/forward CARA COPYPASTE LOGO
root@www: # cp /home/smkdarmaplus/smkanyar.jpg /var/www/smk.jpg
$TTL 604800
@ IN SOA server.smkdarmaplus.sch.id. root. smkdarmaplus.sch.id. ( root@www: # nano /var/www/index.html
1 ; Serial hasil <img src='smk.jpg' widht="190" height="190">
604800 ; Refresh root@www: # cd /
86400 ; Retry
2419200 ; Expire root@www: # cd /var/www
604800 ; Negative Cache TTL root@www: /var/www # ls
; root@www: /var/www # chmod 777 smk.jpg
@ IN NS server. smkdarmaplus.sch.id.
@ IN A 192.168.100.1
Server IN A 192.168.100.1
www IN CNAME server. smkdarmaplus.sch.id. PROXY SERVER
mail IN CNAME server. smkdarmaplus.sch.id. root@server:# apt-get install squid
root@server:# nano /etc/squid/squid.conf
kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)
root@server:# cp /etc/bind/db.127 /var/cache/bind/reverse  ctrl+w: cari dan tambahkn script berikut:
http_port 3128 transparent
root@server:# nano /var/cache/bind/reverse
cache_mem 16 mb
cache_mgr [email protected]
$TTL 604800 visible_hostname www.smkdarmaplus.sch.id
@ IN SOA server.smkdarmaplus.sch.id. root.smkdarmaplus.sch.id. (  ctrl+w: cari dan tambahkn script berikut:
1 ; Serial acl connect method connect
604800 ; Refresh acl url dstdomain “etc/squid/url”
acl key url_Regex -i “etc/squid/key”
86400 ; Retry
http_access deny url
2419200 ; Expire http_access deny key
604800 ; Negative Cache TTL acl lan src 192.168.100.0/26
; http_access allow lan
@ IN NS server. smkdarmaplus.sch.id. http_access allow all
1 IN PTR server. smkdarmaplus.sch.id.
1 IN PTR www. smkdarmaplus.sch.id. Kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)
1 IN PTR mail. smkdarmaplus.sch.id. root@server:#/etc/init.d/squid restart
root@server:# nano /etc/squid/url
Periksa kembali file yang terdapat pada folder bind untuk memastikan file sudah tercopy. www.google.com
www.yahoo.com
root@www:/home/smkdarmaplus# cd /etc/bind root@server:# nano /etc/squid/key
root@www:/etc/bind# dir
bind.keys db.empty named.conf.default-zones zones.rfc1918 google
db.0 db.local named.conf.local yahoo
db.127 db.root named.conf.options root@server:#/etc/init.d/squid restart
db.255 named.conf rndc.key
root@www:/etc/bind# nano db.127
NB: untuk mengecek www.google.com bisa muncul EROR
root@www:/etc/bind# cp db.127 /var/cache/reverse
root@www:/etc/bind# cd /var/cache Tekan Alt-tools-options-advanced-network-centang setting-manual proxy configuration
root@www:/var/cache# dir http proxy:192.168.100.1 port:3128
analog bind dictionaries-common ldconfig reverse
apache2 binfmts fontconfig man samba

You might also like