SlideShare uma empresa Scribd logo
1 de 5
Baixar para ler offline
Konfigurasi 
Proxy ( squid 
Debian 7
Setting IP Debian 7 ( wheezy ) 
anda mengisi IP pada /etc/network/interfaces tambah settingan seperti dibawah ini 
IP diatas bisa anda ganti dengan IP yang anda gunakan. 
Install Squid (Proxy Server) 
Jika anda sudah melakukan pengisian IP /setting IP yang perlu anda lakukan selanjutnya adalah menginstall squid 
server /proxy server. Ketik perintah CLI di bawah ini. 
#apt-get install squid 
Setting Squid (Proxy Server) 
Jika sudah maka yang kita lakukan selanjutnya adalah menyetting SQUID , settingan squid terletak pada directory 
/etc/squid/ dan didalamya terdapat file squid.conf file inilah yang nantinya akan kita setting ketik Perintah CLI 
seperti dibawah ini 
#nano /etc/squid/squid.conf 
Setelah itu cari kode kode dibawah ini 
1. http_port 3128 
2. visible_hostname 
3. cache_mem 8 MB 
4. cache_mgr webmaster 
Lalu lakukan pengubahan dibawah ini 
1. http_port 3128 transparent 
2. visible_hostname rangga (rangga dapat anda ganti
dengan nama komputer anda sendiri) 
3. cache_mem 16 MB 
4. cache_mgr ranggaselaluuye.com (ranggaselaluuye.com 
dapat anda ganti dengan domain anda sendiri) 
Setelah anda melakukan perubaha kode diatas makan selanjutnya anda kemudian anda cari kode acl localnet . 
Tambahkan kode dibawah acl localnet seperti berikut. 
acl warnet src 12.0.0.0/8 
acl gagoleh url_regex “/etc/squid/haram” 
acl dilarang dstdomain “/etc/squid/dilarang” 
Anda bisa ganti nama warnet dengan nama yang anda suka dan anda juga bisa mengganti nama file yang saya buat 
“/etc/squid/haram” seperti contoh “/etc/squid/coba” serta juga nada bias mengganti “/etc/squid/dilarang” 
dengan nama yang anda suka. 
Setelah itu yang harus anda lakukan adalah mencari #http_access deny all . hilangkan tanda pagar. 
Dan tambahkan kode dibawah http_access deny all seperti berikut ini. 
http_access deny gagoleh 
http_access deny dilarang 
http_access allow warnet 
Anda sesuaikan sepeti pada setingan acl localnet . 
Setelah itu kita buat file haram dan dilarang kita harus membuatnya sendiri karena di directory “/etc/squid” tidak 
ada file tersebut. Ketikan perintah CLI seperti berikut ini. 
#touch /etc/squid/haram 
Dan buat file dilarang 
#touch /etc/squid/dilarang 
Kemudian yang harus kita lakukan adalah mengedit file haram dan dilarang seperti dibawah ini 
Ketik perintah CLI seperti dibawah ini. 
#nano /etc/squid/haram 
Tambahkan URL website pada file haram seperti www.youtube.com (website yang nantinya akan kita block) 
kemudian simpan 
#nano /etc/squid/dilarang 
Tambah kan nama / keyword (kata kunci pencarian) seperti youtube (kata kunci website yang akan kita block) 
Jika langkah diatas sudah selesai .yang perlu kita lakukan adalah mengedit file /etc/rc.local dan /etc/sysctl.conf . 
Kita edit file /etc/rc.local . ketik perintah dibawah ini. 
#nano /etc/rc.local 
Tambahkan kode seperti ini diatas exit 0
Iptables –t nat –A POSTROUTING –o eth0 –s 12.0.0.0/0 MASQUERADE 
Iptables –t nat –A PREROUTING –s 12.0.0.0/0 –p tcp --dport 80 –j REDIRECT -- to-ports 3128 
Keterangan kode diatas iptables pada bagian pertama adalah untuk menshare internet pada eth0 ke eth1 karena 
eth0 terkoneksi dengan internet. Sedangkan -s 12.0.0.0/0 adalah subnets address eth1 .dan iptables yang kedua 
adalah untuk REDIRECT port 80 ke port 3128 (proxy). 
Selanjutnya kita harus mengedit file /etc/sysctl.conf .ketik perintah CLI dibawah ini. 
#nano /etc/sysctl.conf 
Cari kode #net.ipv4.ip_forward=1 hilangkan tanda pagar,kemudian itu simpan. 
Jalankan SQUIDnya .ketik squid –z , Selanjutnya kita restart squid dan networking.ketik perintah dibawah ini. 
#/etc/init.d/squid restart 
Perintah diatas untuk merestart SQUID 
#/etc/init.d/networking restart 
Pengujian Squid (Proxy Server)Client 
Buka web browser pada computer client ketik URL pada address bar web browser 
Ketik situs yang di block tadi misal: www.youtube.com jika hasilnya seperti gambar dibawah ini maka itu tandanya 
anda sukses. 
Ranggaselaluuye.com adalah DNS/Domain yang saya buat , selamat mencoba semoga sukses anda juga bias 
mengirim pesan di social media saya
Facebook E-mail twitter 
Mas Tobel ranggariki46@yahoo.co.id 
okebro14@gmail.com 
@Official_WK

Mais conteúdo relacionado

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Destaque (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Konfigurasi proxy (squid) debian 7 wheezy linux

  • 1. Konfigurasi Proxy ( squid Debian 7
  • 2. Setting IP Debian 7 ( wheezy ) anda mengisi IP pada /etc/network/interfaces tambah settingan seperti dibawah ini IP diatas bisa anda ganti dengan IP yang anda gunakan. Install Squid (Proxy Server) Jika anda sudah melakukan pengisian IP /setting IP yang perlu anda lakukan selanjutnya adalah menginstall squid server /proxy server. Ketik perintah CLI di bawah ini. #apt-get install squid Setting Squid (Proxy Server) Jika sudah maka yang kita lakukan selanjutnya adalah menyetting SQUID , settingan squid terletak pada directory /etc/squid/ dan didalamya terdapat file squid.conf file inilah yang nantinya akan kita setting ketik Perintah CLI seperti dibawah ini #nano /etc/squid/squid.conf Setelah itu cari kode kode dibawah ini 1. http_port 3128 2. visible_hostname 3. cache_mem 8 MB 4. cache_mgr webmaster Lalu lakukan pengubahan dibawah ini 1. http_port 3128 transparent 2. visible_hostname rangga (rangga dapat anda ganti
  • 3. dengan nama komputer anda sendiri) 3. cache_mem 16 MB 4. cache_mgr ranggaselaluuye.com (ranggaselaluuye.com dapat anda ganti dengan domain anda sendiri) Setelah anda melakukan perubaha kode diatas makan selanjutnya anda kemudian anda cari kode acl localnet . Tambahkan kode dibawah acl localnet seperti berikut. acl warnet src 12.0.0.0/8 acl gagoleh url_regex “/etc/squid/haram” acl dilarang dstdomain “/etc/squid/dilarang” Anda bisa ganti nama warnet dengan nama yang anda suka dan anda juga bisa mengganti nama file yang saya buat “/etc/squid/haram” seperti contoh “/etc/squid/coba” serta juga nada bias mengganti “/etc/squid/dilarang” dengan nama yang anda suka. Setelah itu yang harus anda lakukan adalah mencari #http_access deny all . hilangkan tanda pagar. Dan tambahkan kode dibawah http_access deny all seperti berikut ini. http_access deny gagoleh http_access deny dilarang http_access allow warnet Anda sesuaikan sepeti pada setingan acl localnet . Setelah itu kita buat file haram dan dilarang kita harus membuatnya sendiri karena di directory “/etc/squid” tidak ada file tersebut. Ketikan perintah CLI seperti berikut ini. #touch /etc/squid/haram Dan buat file dilarang #touch /etc/squid/dilarang Kemudian yang harus kita lakukan adalah mengedit file haram dan dilarang seperti dibawah ini Ketik perintah CLI seperti dibawah ini. #nano /etc/squid/haram Tambahkan URL website pada file haram seperti www.youtube.com (website yang nantinya akan kita block) kemudian simpan #nano /etc/squid/dilarang Tambah kan nama / keyword (kata kunci pencarian) seperti youtube (kata kunci website yang akan kita block) Jika langkah diatas sudah selesai .yang perlu kita lakukan adalah mengedit file /etc/rc.local dan /etc/sysctl.conf . Kita edit file /etc/rc.local . ketik perintah dibawah ini. #nano /etc/rc.local Tambahkan kode seperti ini diatas exit 0
  • 4. Iptables –t nat –A POSTROUTING –o eth0 –s 12.0.0.0/0 MASQUERADE Iptables –t nat –A PREROUTING –s 12.0.0.0/0 –p tcp --dport 80 –j REDIRECT -- to-ports 3128 Keterangan kode diatas iptables pada bagian pertama adalah untuk menshare internet pada eth0 ke eth1 karena eth0 terkoneksi dengan internet. Sedangkan -s 12.0.0.0/0 adalah subnets address eth1 .dan iptables yang kedua adalah untuk REDIRECT port 80 ke port 3128 (proxy). Selanjutnya kita harus mengedit file /etc/sysctl.conf .ketik perintah CLI dibawah ini. #nano /etc/sysctl.conf Cari kode #net.ipv4.ip_forward=1 hilangkan tanda pagar,kemudian itu simpan. Jalankan SQUIDnya .ketik squid –z , Selanjutnya kita restart squid dan networking.ketik perintah dibawah ini. #/etc/init.d/squid restart Perintah diatas untuk merestart SQUID #/etc/init.d/networking restart Pengujian Squid (Proxy Server)Client Buka web browser pada computer client ketik URL pada address bar web browser Ketik situs yang di block tadi misal: www.youtube.com jika hasilnya seperti gambar dibawah ini maka itu tandanya anda sukses. Ranggaselaluuye.com adalah DNS/Domain yang saya buat , selamat mencoba semoga sukses anda juga bias mengirim pesan di social media saya
  • 5. Facebook E-mail twitter Mas Tobel ranggariki46@yahoo.co.id okebro14@gmail.com @Official_WK