SETTING DAN KONFIGURASI PC SERVER UBUNTU 9.04
Alt + f2
Gnome-terminal
Sudo su
Password
- pico /etc/network/interfacesauto eth0
iface eth0 inet static
address 192.168.1.10x
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
auto eth1
iface eth1 inet static
address 192.168.50.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255 - ctrl + o (enter) ctrl + x
- pico /etc/init.d/networking restart
- pico /etc/resolv.confnameserver 203.130.208.18
nameserver 8.8.8.8 - pico /etc/sysctl.confhilangkan tanda pagar pada #net.ipv4.ip_foward=1
- pico /etc/rc.localiptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination "alamat ip address eth1":3128
kasih tanda # pada exit0 - gedit /etc/apt/sources.listhapus dan download di catatan penguin
- apt-get update
- apt-get install apache2
- cd /var/www
- gedit index.html
<html>
<body>
<table border="1">
<tr>
<td>
<font color="blue" size="25">
<marquee>
<h1>
UKK 2012 SMK RADEN PATAH</h1>
</marquee>
</td>
</tr>
<table>
</font>
</body>
<marquee direction="right">
<img height="200" widht="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLgrq5AicO6OHQFo1YwIh_70MrK5GFBdRjnnWw5HDqzbh5EcuVDfgOnkDtkjxQLy4tzYOiLm5iEqt5eJwY1_Oty43OFFrHGKv_-j_lR7PodBbkrtrya3A9DZJ8PgtMjMRR80yZqbvSU4Vb/s1600/gambar+vespa+edit+copy.jpg">
</img></html>
<br>
<blink>
<font aligh="center" color="green" size="20">
SMK BISA...!!
</font>
</blink>
</br></marquee>
Save + close - /etc/init.d/apache2 restartCek
Buka Mozilla >>>>>>>>>>>>> (ketik alamat ip server) - Apt-get install squidGedit/etc/squid/squid.conf
#http_port 3128
Menjadi
http_port 3128
#cache_mem 8 mb
Manjadi
Cache_mem 16 mb
#cache_effective_user proxy
Menjadi
Cache_effective_user proxy
#cache_mgr webmaster
Menjadi
Cache_mgr (email anda)
#visible_hostname
Menjadi
Visible_hostname www.smk-radenpatah.sch.id
http_acces allow localhost
acl domain-terlarang dstdomain "/etc/squid/domain-terlarang"
http_access deny domain-terlarang
http_acces deny all
menjadi
#http_access deny all
Save + Close
Pico /etc/squid/domain-terlarang
Isikan
www.facebook.com
www.yotube.com
/etc/init.d/squid restart
Restart computer
Cek pada server
Masuk ke Mozilla
Edit >>>> preference >>> advanced >>> network >>> setting >>> pilih manual proxy configuration >>> http proxy : alamat server re port: 3128
No comments:
Post a Comment