Intallasi Proxy Server Paket 2 menggunaka Virtual IP (VirtualBox)
Local Area Network : IP dan Netmask bebas tanpa Gateway dan DNS
VirtualBox Host-Only Network : IP : 192.168.55.5, Netmask : 255.255.255.0, Gateway : 192.168.55.1, DNS: 192.168.55.1
Adapter 1 : Host-Only Adapter
- nano /etc/network/interfaces
auto eth0 eth0:2
iface eth0 inet static
address 192.168.55.1
netmask 255.255.255.0
iface eth0:2 inet static
address 192.168.55.1
netmask 255.255.255.0
- /etc/init.d/networking restart
- apt-get install bind9 squid vsftpd apache2
- nano /etc/squid/squid.conf
ctrl+w = acl CONNECT
acl situs dstdomain www.institusi.com
acl client src 192.168.55.0/24
ctrl+w = INSERT YOUR OWN
http_access deny situs
http_access allow client
ctrl+w = visible_hostname
visible_hostname cahyasuhe@gmail.com
- /etc/init.d/squid restart
- nano /etc/vsftpd.conf
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
tulis di paling bawah : anon_root=/home/ftp
- /etc/init.d/vsftpd restart
- nano /etc/bind/named.conf.local
zone "smkn4padalarang.sch.id" {
type master;
file "/etc/bind/1";
};
zone "institusi.com" {
type master;
file "/etc/bind/2";
};
- cd /etc/bind
- cp db.127 1
- nano 1
Ganti yang localhost menjadi smkn4padalarang.sch.id
@ IN NS smkn4padalarang.sch.id
@ IN A 192.168.55.1
ftp IN A 192.168.55.1
www IN A 192.168.55.1
- cpc 1 2
- nano 2
Ganti yang localhost menjadi institusi.com
@ IN NS institusi.com
@ IN A 192.168.55.1
ftp IN A 192.168.55.1
www IN A 192.168.55.1
- /etc/init.d/bind9 restart
- ln -s /etc/apache2/mods-available/userdir.conf /etc/apache2/mods-enabled/userdir.conf
- ln -s /etc/apache2/mods-available/userdir.load /etc/apache2/mods-enabled/userdir.load
- cd /etc/skel
- mkdir public_html
- adduser paket2
- Masuk ke Client -> Buka Web Browser -> Tools -> Options -> Advanced -> Network -> Settings... -> Pilih "Manual proxy configuration" -> HTTP Proxy : 192.168.55.1, Port : 3128 -> Ceklist di "Use this proxy server for all protocols"
- cek di Client (Mozilla Firefox) : www.smkn4padalarang.sch.id
- cek di Client (Mozilla Firefox) : www.smkn4padalarang.sch.id/~paket2
- cek di Client (Mozilla Firefox) : www.institusi.com
- Cek FTP : Buka Command Prompt -> Ketik "ftp" -> Ketik "open" -> Ketik "192.168.55.1" -> Ketikkan user yang sudah kita buat
VirtualBox Host-Only Network : IP : 192.168.55.5, Netmask : 255.255.255.0, Gateway : 192.168.55.1, DNS: 192.168.55.1
Adapter 1 : Host-Only Adapter
- nano /etc/network/interfaces
auto eth0 eth0:2
iface eth0 inet static
address 192.168.55.1
netmask 255.255.255.0
iface eth0:2 inet static
address 192.168.55.1
netmask 255.255.255.0
- /etc/init.d/networking restart
- apt-get install bind9 squid vsftpd apache2
- nano /etc/squid/squid.conf
ctrl+w = acl CONNECT
acl situs dstdomain www.institusi.com
acl client src 192.168.55.0/24
ctrl+w = INSERT YOUR OWN
http_access deny situs
http_access allow client
ctrl+w = visible_hostname
visible_hostname cahyasuhe@gmail.com
- /etc/init.d/squid restart
- nano /etc/vsftpd.conf
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
tulis di paling bawah : anon_root=/home/ftp
- /etc/init.d/vsftpd restart
- nano /etc/bind/named.conf.local
zone "smkn4padalarang.sch.id" {
type master;
file "/etc/bind/1";
};
zone "institusi.com" {
type master;
file "/etc/bind/2";
};
- cd /etc/bind
- cp db.127 1
- nano 1
Ganti yang localhost menjadi smkn4padalarang.sch.id
@ IN NS smkn4padalarang.sch.id
@ IN A 192.168.55.1
ftp IN A 192.168.55.1
www IN A 192.168.55.1
- cpc 1 2
- nano 2
Ganti yang localhost menjadi institusi.com
@ IN NS institusi.com
@ IN A 192.168.55.1
ftp IN A 192.168.55.1
www IN A 192.168.55.1
- /etc/init.d/bind9 restart
- ln -s /etc/apache2/mods-available/userdir.conf /etc/apache2/mods-enabled/userdir.conf
- ln -s /etc/apache2/mods-available/userdir.load /etc/apache2/mods-enabled/userdir.load
- cd /etc/skel
- mkdir public_html
- adduser paket2
- Masuk ke Client -> Buka Web Browser -> Tools -> Options -> Advanced -> Network -> Settings... -> Pilih "Manual proxy configuration" -> HTTP Proxy : 192.168.55.1, Port : 3128 -> Ceklist di "Use this proxy server for all protocols"
- cek di Client (Mozilla Firefox) : www.smkn4padalarang.sch.id
- cek di Client (Mozilla Firefox) : www.smkn4padalarang.sch.id/~paket2
- cek di Client (Mozilla Firefox) : www.institusi.com
- Cek FTP : Buka Command Prompt -> Ketik "ftp" -> Ketik "open" -> Ketik "192.168.55.1" -> Ketikkan user yang sudah kita buat