.:: Blackc0de Forum ::.
Would you like to react to this message? Create an account in a few clicks or log in to continue.

-=Explore The World From Our Binary=-
 
HomeIndeksLatest imagesPendaftaranLogin

 

 Setting dan konfigurasi Proxy Server di Debian

Go down 
3 posters
PengirimMessage
Voldemort
BC Security
BC Security
Voldemort


Jumlah posting : 331
Points : 725
Reputation : 16
Join date : 04.07.11

Setting dan konfigurasi Proxy Server di Debian Empty
PostSubyek: Setting dan konfigurasi Proxy Server di Debian   Setting dan konfigurasi Proxy Server di Debian Icon_minitimeWed Feb 01, 2012 10:46 pm

iseng-iseng nulis disin sebagai simpenan ane kalau ane lupa Setting dan konfigurasi Proxy Server di Debian 3529815765


> Install squid
# apt-get install squid

> Matikan squid dahulu :
# /etc/init.d/squid stop

> Edit squid :
#pico /etc/squid/squid.conf

cari dan tambahkan : ( hilangkan tanda # )

http_port 3128 transparent -> port default proxy
cache_mem 16 mb
cache_dir ufs /var/spool/squid 500 16 256
cache_mgr [You must be registered and logged in to see this link.]
visible_hostname proxy.tkj.com -> nama visible hostname kamu
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

> Kemudian cari tulisan : acl CONNECT method CONNECT, dan tambahkan

acl situs url_regex -i “/etc/situsterlarang.txt” -> u/ blokir setiap situs
http_access deny situs
acl lan src 192.168.1.0/24
http_access allow lan
http_access allow all

> lalu save .


> Konfigurasi interfacenya :
# pico /etc/network/interface

iface lo inet loopback

iface eth0 inet static
address 192.168.123.13
netmask 255.255.255.0
gateway 192.168.123.1

iface eth2 inet static
address 192.168.1.1
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0

auto eth0 eth2

auto lo

> Lalu buat file untuk mengeblok situsnya :
# mcedit /etc/situsterlarang.txt

facebook
friendster
yahoo

> Dan save.

> Buat swap :
# squid -z

> Kemudian aktifkan ip_forwading dan tabel routing dg perintah :

# echo 1 > /proc/sys/net/ipv4/ip_forwad
# iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j MASQUERADE

> Lalu kita REDIRECT port 80 ke port 3128 dg perintah :

# iptables -t nat -A PREROUTING -s 192.168.1.0/24 -p tcp –dport 80 -j REDIRECT –to-ports 3128
# iptables-save

> Lalu restart squid ;
# /etc/init.d/squid restart

> Cek situs yg telah di blok / dipindahkan portnya …


NB :

Untuk menyetting/menambahkan setting waktu, ketikkan:
acl waktu time MTWHFA 01:00-12:00
acl jam time MTWHFA 12:30-24:00
http_access deny waktu
http_access deny jam

Semoga bermanfaat.
Kembali Ke Atas Go down
BumiayuKita
Administrator
Administrator
BumiayuKita


Jumlah posting : 2456
Points : 3020
Reputation : 85
Join date : 06.02.11
Age : 34
Lokasi : bumiayu

Setting dan konfigurasi Proxy Server di Debian Empty
PostSubyek: Re: Setting dan konfigurasi Proxy Server di Debian   Setting dan konfigurasi Proxy Server di Debian Icon_minitimeWed Feb 01, 2012 11:43 pm

makasih kk :D nice shot dah :jempol1
Kembali Ke Atas Go down
http://aljinet.blogspot.com
markondes
Top Nubie
Top Nubie
markondes


Jumlah posting : 29
Points : 50
Reputation : 1
Join date : 14.02.12
Age : 32

Setting dan konfigurasi Proxy Server di Debian Empty
PostSubyek: Re: Setting dan konfigurasi Proxy Server di Debian   Setting dan konfigurasi Proxy Server di Debian Icon_minitimeTue Feb 14, 2012 1:36 pm

kk minta tolong dong proxy buat Luxembourg city,,,
udah nanya om ggogling,, semuanya acses ddenied....
tolong yah kk
Kembali Ke Atas Go down
Sponsored content





Setting dan konfigurasi Proxy Server di Debian Empty
PostSubyek: Re: Setting dan konfigurasi Proxy Server di Debian   Setting dan konfigurasi Proxy Server di Debian Icon_minitime

Kembali Ke Atas Go down
 
Setting dan konfigurasi Proxy Server di Debian
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» konfigurasi proxy squid
» Membangun Proxy Server Dengan Ubuntu server 10.04
» #ASK# Proxy Server Mandriva
» Proxy on Ubuntu Server
» Sharing ttg proxy server external... MASUK<<<<

Permissions in this forum:Anda tidak dapat menjawab topik
.:: Blackc0de Forum ::. :: Information Technology :: Server-
Navigasi: