');mask-image:url('data:image/svg+xml;utf8, ');content:'';margin:0 .4rem;display:inline-block;vertical-align:middle;line-height:1}.breadcrumb-trail .trail-items li:last-child:after{display:none}.bloghash-breadcrumbs{font-size:1.4rem;border-width:0}#page .page-header .bloghash-breadcrumbs a>span{color:inherit}#bloghash-copyright .bloghash-flex-row>div:empty{display:none}#bloghash-copyright>.bloghash-container>.bloghash-flex-row>div{width:auto;padding-top:.6rem;padding-bottom:.6rem}.bloghash-copyright-layout-1 #bloghash-copyright>.bloghash-container>.bloghash-flex-row>div{-ms-flex-preferred-size:100%;flex-basis:100%;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}#bloghash-scroll-top{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:fixed;bottom:2.5rem;right:2rem;z-index:997;width:4rem;height:4rem;opacity:0;-webkit-transform:translate3d(0,3rem,0);transform:translate3d(0,3rem,0)}#bloghash-scroll-top .bloghash-scroll-icon{overflow:hidden;z-index:2}#bloghash-scroll-top .bloghash-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:2rem;color:var(--bloghash-white);-webkit-transform:translateY(1.1rem);-ms-transform:translateY(1.1rem);transform:translateY(1.1rem)}#bloghash-scroll-top:before{content:'';z-index:1;border-radius:10rem;background-color:var(--bloghash-primary);-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);border:.1rem solid rgba(185,185,185,.4)}#bloghash-scroll-top svg{fill:var(--bloghash-white)}.bloghash-widget.widget:not(.widget_text):not(.hester-core-custom-list-widget) ul,.bloghash-widget.widget:not(.widget_text):not(.hester-core-custom-list-widget) ol{list-style:none;margin-left:0;margin-right:0}#main .bloghash-widget{overflow:hidden}#main .bloghash-widget{margin-bottom:4rem}#main .bloghash-widget:last-child{margin-bottom:0}.wp-block-heading,.wp-block-search .wp-block-search__label{margin-top:0;position:relative;display:block;margin-bottom:2.5rem}.wp-block-search .wp-block-search__label{width:auto;line-height:1.4}.widget ol,.widget ul{line-height:1.5}.widget ol:last-child,.widget ul:last-child{margin-bottom:0}.widget ol li,.widget ul:not(.wp-block-social-links) li{margin-bottom:1rem}.widget ol li:last-child,.widget ul:not(.wp-block-social-links) li:last-child{margin-bottom:0}.widget.widget_block li a{position:relative;z-index:0}.bloghash-entry>:first-child,.wp-block-group__inner-container>:first-child{margin-top:0}.bloghash-entry>:last-child,.wp-block-group__inner-container>:last-child{margin-bottom:0}.bloghash-entry ol{margin-left:4rem}.bloghash-entry ol li:not(.blocks-gallery-item):last-child,.bloghash-entry ul:not(.wp-block-social-links) li:not(.blocks-gallery-item):last-child{margin-bottom:0}.bloghash-entry ol{margin-bottom:2rem;margin-top:2rem}.bloghash-entry p{margin-bottom:1.5rem;margin-top:1.5rem}.author-avatar img{border-radius:var(--bloghash-full-radius);width:3rem;vertical-align:middle;margin-right:.8rem;display:inline-block;outline:1px solid rgba(185,185,185,.4)}#main .content-area .entry-meta a{color:inherit}.entry-meta{font-size:1.3rem;font-weight:600;margin-top:1.2rem}.entry-meta .bloghash-icon{height:1.827rem;margin-right:.7rem;vertical-align:text-bottom}.entry-meta .entry-meta-elements>span{padding:0 1rem;line-height:1.2}.entry-meta .entry-meta-elements>span.posted-on{line-height:1.5}.entry-meta .entry-meta-elements>span,.entry-meta .entry-meta-elements>span .posted-by{-js-display:inline-flex;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.entry-meta .entry-meta-elements>span:first-child{padding-left:0}.entry-meta .entry-meta-elements>span:last-child{margin-right:0;padding-right:0}.entry-meta .entry-meta-elements>span:before{content:'';position:relative;left:-1.1rem;width:4px;height:4px;border-radius:100%;background-color:var(--bloghash-primary)}.entry-meta .entry-meta-elements>span:first-child:before{display:none}.entry-media{margin-bottom:2.5rem}.entry-media img{margin:0 auto;display:block}.single-post .entry-content{margin-top:4rem}.single-post .entry-media{margin-bottom:4rem}.single .entry-content img{margin:0 auto;display:block}.single .entry-content p img{display:inline-block;vertical-align:text-bottom}.single .post-category{margin-bottom:.3rem;font-size:1.4rem}.single .post-category a{-js-display:inline-flex;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;margin:0 .4rem .8rem}.single .entry-header{text-align:start;margin-bottom:1rem}.single .entry-meta{text-align:start;margin-top:1.6rem}.single .entry-content{margin-bottom:5rem}.single.bloghash-page-title-align-left .bloghash-article>.entry-header,.single.bloghash-page-title-align-left .bloghash-article>.post-category{text-align:start}.single.bloghash-page-title-align-left .bloghash-article>.entry-meta>.entry-meta-elements{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}#cancel-comment-reply-link{font-size:1.3rem;border-radius:var(--bloghash-normal-radius);border:.2rem solid currentColor;font-weight:500;padding:.4rem .7rem;line-height:1;text-decoration:none;text-transform:capitalize;margin-left:1.4rem;color:inherit}.comment-form>p{-ms-flex-preferred-size:100%;flex-basis:100%;margin-top:0;margin-bottom:.8em}.comment-form textarea{height:19.2rem}#bloghash-preloader{position:fixed;z-index:99991;overflow:hidden}.preloader-1{position:absolute;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:var(--bloghash-white);opacity:1}.preloader-1>div{display:inline-block;border:.3rem solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.2);-webkit-animation:spin .65s infinite cubic-bezier(.445,.05,.55,.95);animation:spin .65s infinite cubic-bezier(.445,.05,.55,.95);width:5rem;height:5rem;border-radius:100%;will-change:transform}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}button.bloghash-animate-arrow{-webkit-appearance:none;border:none;-webkit-box-shadow:none;box-shadow:none;background:0 0;outline:none}.bloghash-animate-arrow .arrow-bar{-webkit-transform:scaleX(0);-ms-transform:scaleX(0);transform:scaleX(0)}.bloghash-animate-arrow svg{vertical-align:middle}.bloghash-animate-arrow.right-arrow svg{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.bloghash-animate-arrow.right-arrow .arrow-bar{-webkit-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0}.bloghash-animate-arrow.right-arrow .arrow-handle{-webkit-transform:translateX(.6rem);-ms-transform:translateX(.6rem);transform:translateX(.6rem)}.bloghash-hamburger{padding:0;display:inline-block;font:inherit;color:inherit;text-transform:none;background-color:transparent;border:0;margin:0;overflow:visible}.hamburger-box{width:2.5rem;height:1.4rem;display:inline-block;position:relative}.hamburger-inner{display:block;top:50%;margin-top:-.1rem}.hamburger-inner,.hamburger-inner:before,.hamburger-inner:after{width:2.8rem;height:2px;background-color:#111827;border-radius:var(--bloghash-normal-radius);position:absolute}.hamburger-inner:before,.hamburger-inner:after{content:"";display:block}.hamburger-inner:before{top:-5px}.hamburger-inner:after{bottom:-5px}.bloghash-mobile-nav{order:1;display:none;margin-left:2.4rem}.bloghash-hamburger,.bloghash-mobile-nav{-webkit-box-align:center;-ms-flex-align:center;align-items:center}body:not(.is-mobile-menu-active) .bloghash-hamburger .hamburger-box .hamburger-inner:before{width:1.5rem}.bloghash-hamburger{-js-display:inline-flex;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;border-radius:var(--bloghash-normal-radius)}.bloghash-hamburger .hamburger-inner,.bloghash-hamburger .hamburger-inner:before,.bloghash-hamburger .hamburger-inner:after{background-color:currentColor}#bloghash-header:after{content:'';position:fixed;top:100%;left:0;right:0;height:100vh;background-color:rgba(255,255,255,.85);z-index:991;opacity:0;visibility:hidden;will-change:opacity,visibility;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@media only screen and (min-width:782px){.site .bloghash-flex-row .col-md{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;max-width:100%;-ms-flex-preferred-size:0;flex-basis:0}.site .bloghash-flex-row .col-md.flex-basis-auto{-ms-flex-preferred-size:auto;flex-basis:auto}.site .bloghash-flex-row .end-md{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;text-align:end;margin-left:auto}}@media only screen and (max-width:868px){.bloghash-hide-mobile-tablet{display:none!important}.bloghash-container{padding:0 3rem}.bloghash-header-widgets .bloghash-header-widget{padding-left:1rem;padding-right:1rem}.bloghash-header-widgets .bloghash-header-widget:not(.bloghash-header-widget__button,.bloghash-header-widget__socials) .bloghash-icon{font-size:2.4rem}.bloghash-mobile-nav{margin-left:1.6rem}}@media only screen and (max-width:599px){#bloghash-header-inner .bloghash-widget-wrapper,.bloghash-header-element,.bloghash-header-widgets .bloghash-header-widget{position:static}.bloghash-header-widgets .dropdown-item:after{display:none}.page-header>.bloghash-container{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.author-avatar img{display:none}}@media only screen and (max-width:480px){#page{min-height:-webkit-fill-available}}@media only screen and (max-width:960px){#main>.bloghash-container{display:block}#primary{max-width:100%!important;padding-left:0!important;padding-right:0!important;margin-top:4rem}.site-main #secondary{width:100%;margin-top:4rem}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){#main>.bloghash-container #primary{-ms-flex-preferred-size:0%;flex-basis:0%}}.content-area a:not(.bloghash-btn,.wp-block-button__link,.page-numbers,[class^=cat-],[rel=tag]),.bloghash-social-nav>ul>li>a .bloghash-icon.bottom-icon{color:var(--bloghash-primary)}#masthead .bloghash-header-widgets .dropdown-item:after{border-bottom-color:var(--bloghash-primary);outline:none!important}.bloghash-header-widgets .dropdown-item,.preloader-1>div{border-top-color:var(--bloghash-primary)}::-webkit-selection{background-color:var(--bloghash-primary);color:var(--bloghash-white)}::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2)}::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.4)}@media (prefers-reduced-motion:reduce){*{animation-duration:0s!important}}.bloghash-cursor{visibility:hidden;position:fixed;z-index:10000;display:flex;justify-content:center;align-items:center;top:0;left:0}.bloghash-cursor .bloghash-cursor-wrapper{display:flex;justify-content:center;align-items:center}.bloghash-cursor .bloghash-cursor--follower{position:absolute;background-color:var(--bloghash-primary);opacity:.35;border-radius:100%;width:2.4rem;height:2.4rem}.bloghash-cursor .bloghash-cursor--label{position:absolute;display:flex;justify-content:center;align-items:center;color:var(--bloghash-white);letter-spacing:.08em;transform:scale(0);will-change:transform,opacity}.bloghash-cursor .bloghash-cursor--icon{position:absolute;display:flex;justify-content:center;align-items:center;color:var(--bloghash-white);transform:scale(0);will-change:transform,opacity;color:rgba(255,255,255,.76)}.bloghash-cursor .bloghash-cursor--icon:before{content:"\f061";font-family:var(--bloghash-font-awesome);font-size:2.4rem}.bloghash-glassmorphism{position:fixed;right:0;left:0;bottom:0;display:flex;overflow:hidden;z-index:-1}.bloghash-glassmorphism .block{width:28.8rem;height:28.8rem;filter:blur(64px);mix-blend-mode:multiply;border-radius:999px;display:block;opacity:.1}.bloghash-glassmorphism .block.one{margin-top:5rem;background-color:rgba(239,35,60)}.bloghash-glassmorphism .block.two{margin-top:16rem;margin-left:-8rem;background-color:rgba(4,134,139)}@media only screen and (min-width:768px){.bloghash-glassmorphism{top:4rem}}@media only screen and (min-width:1024px){.bloghash-glassmorphism .block{width:38.4rem;height:38.4rem}}@media only screen and (min-width:1280px){.bloghash-glassmorphism{top:8rem}}.wp-block-latest-posts.wp-block-latest-posts__list li{margin-bottom:1.6rem}.wp-block-latest-posts__post-title{margin:1rem 0 0;display:block;font-weight:600}.post-category .cat-links a.cat-5{--bloghash-primary:#f43676;--bloghash-primary_80:#fdd7e4}:root{--bloghash-primary:#f43676;--bloghash-primary_80:#fdd7e4;--bloghash-primary_15:#f6558b;--bloghash-primary_27:rgba(244,54,118,.27);--bloghash-primary_10:rgba(244,54,118,.1)}#bloghash-header-inner{background:#fff}#bloghash-header,.bloghash-header-widgets a:not(.bloghash-btn),.bloghash-logo a,.bloghash-hamburger{color:#131315}#bloghash-header-inner{border-color:rgba(185,185,185,.4);border-bottom-width:1px}.bloghash-header-widget:after{background-color:#ccc}@media screen and (max-width:960px){#bloghash-header-inner .bloghash-nav{display:none;color:#000}.bloghash-mobile-nav{display:inline-flex}#bloghash-header-inner{position:relative}#bloghash-header-inner .bloghash-nav>ul>li>a{color:inherit}#bloghash-header-inner .site-navigation{display:none;position:absolute;top:100%;width:100%;height:100%;min-height:100vh;left:0;right:0;margin:-1px 0 0;background:#fff;border-top:1px solid #eaeaea;box-shadow:0 15px 25px -10px rgba(50,52,54,.125);z-index:999;font-size:1.7rem;padding:0}#bloghash-header-inner .site-navigation>ul{overflow-y:auto;max-height:68vh;display:block}#bloghash-header-inner .site-navigation>ul>li>a{padding:0!important}#bloghash-header-inner .site-navigation>ul li{display:block;width:100%;padding:0;margin:0;margin-left:0!important}#bloghash-header-inner .site-navigation>ul a{padding:0;position:relative;background:0 0}#bloghash-header-inner .site-navigation>ul li{border-bottom:1px solid #eaeaea}#bloghash-header-inner .site-navigation>ul>li:last-child{border-bottom:0}#bloghash-header-inner .site-navigation>ul a>span{padding:10px 30px!important;width:100%;display:block}#bloghash-header-inner .site-navigation>ul a>span:after,#bloghash-header-inner .site-navigation>ul a>span:before{display:none!important}}.bloghash-nav.bloghash-header-element,.bloghash-header-layout-1 .bloghash-header-widgets{font-weight:600;font-family:"Inter Tight",Helvetica,Arial,sans-serif;font-size:1.7rem;line-height:1.5}#secondary{width:30%}body:not(.bloghash-no-sidebar) #primary{max-width:70%}.bloghash-layout__boxed-separated #content>article,.bloghash-layout__boxed-separated.bloghash-sidebar-style-2 #secondary .bloghash-widget{background-color:#fff}body{color:#002050}h1,h2,a,.entry-meta,.bloghash-logo .site-title,.wp-block-heading,.wp-block-search__label{color:#302d55}:root{--bloghash-secondary:#302d55}.bloghash-container{max-width:1480px}.bloghash-logo img{max-height:45px}.bloghash-logo .logo-inner{margin-top:27px;margin-right:10px;margin-bottom:27px;margin-left:10px}@media only screen and (max-width:768px){.bloghash-logo .logo-inner{margin-top:25px;margin-right:1px;margin-bottom:25px}}.page-header{background:rgba(244,54,118,.1)}.page-header{border-color:rgba(0,0,0,.062);border-style:solid;border-bottom-width:1px}.bloghash-breadcrumbs{padding-top:15px;padding-bottom:15px}html{font-size:62.5%}@media only screen and (max-width:768px){html{font-size:53%}}@media only screen and (max-width:480px){html{font-size:50%}}*{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}body{font-weight:400;font-family:"Be Vietnam Pro",Helvetica,Arial,sans-serif;font-size:1.7rem;line-height:1.75}h1,.bloghash-logo .site-title,h2{font-weight:700;font-style:normal;text-transform:none;text-decoration:none;font-family:"Be Vietnam Pro",Helvetica,Arial,sans-serif}h1,.bloghash-logo .site-title{font-weight:700;font-size:4rem;line-height:1.4}h2{font-weight:700;font-size:3.6rem;line-height:1.4}#bloghash-header .bloghash-logo .site-title{font-size:3rem}#secondary .bloghash-widget .wp-block-heading,#secondary .bloghash-widget .wp-block-search__label{font-size:2.4rem}.single-post .entry-content{font-size:1.6rem}
Cara membuat server squid proxy – README
Skip to content
Posted by
Olya
February 20, 2025 Mataram, ReadmeID – Oke, mari kita bahas cara membuat server Squid Proxy. Saya akan jelaskan langkah-langkah umum, karena detail konfigurasi bisa berbeda tergantung pada sistem operasi yang Anda gunakan (misalnya Ubuntu, CentOS, dsb.).
A. Langkah-Langkah Umum: 1. Instalasi Squid: Ubuntu/Debian: Gunakan perintah sudo apt install squid. CentOS/RHEL: Gunakan perintah sudo yum install squid. Untuk sistem operasi lain, cari petunjuk instalasi Squid yang sesuai. 2. Konfigurasi Dasar Squid: File konfigurasi Squid biasanya terletak di /etc/squid/squid.conf (atau direktori serupa). Beberapa pengaturan penting yang perlu diperhatikan: http_port: Port yang akan didengarkan oleh Squid (defaultnya 3128). cache_dir: Direktori untuk menyimpan cache (sesuaikan ukurannya sesuai kebutuhan). acl: Access Control Lists (ACL) untuk mengatur siapa yang boleh mengakses proxy. http_access: Aturan untuk mengizinkan atau menolak akses berdasarkan ACL. 3. Konfigurasi ACL dan Aturan Akses: 3.A Buat ACL untuk mengidentifikasi grup pengguna atau jaringan. Contoh: acl localnet src 192.168.1.0/24 (untuk jaringan lokal Anda) acl all src 0.0.0.0/0 (untuk semua sumber) 3.B Buat aturan akses untuk mengatur siapa yang boleh menggunakan proxy. Contoh: http_access allow localnet (izinkan jaringan lokal) http_access deny all (tolak semua lainnya) 4. Restart Squid: Setelah melakukan perubahan konfigurasi, restart layanan Squid: Ubuntu/Debian: sudo systemctl restart squid CentOS/RHEL: sudo systemctl restart squid B. Contoh Konfigurasi Dasar (squid.conf):
http_port 3128
cache_dir ufs /var/spool/squid 100 16 256
acl localnet src 192.168.1.0/24
acl all src 0.0.0.0/0
http_access allow localnet
http_access deny all
C. Opsi Konfigurasi Lanjutan: Authentication: Jika Anda ingin membatasi akses hanya untuk pengguna tertentu, Anda bisa mengaktifkan otentikasi (misalnya dengan NCSA atau LDAP). HTTPS/SSL Filtering: Untuk memeriksa lalu lintas HTTPS, Anda perlu mengaktifkan SSL bump (perhatikan implikasi keamanan dan privasi). Caching: Atur ukuran dan jenis cache sesuai kebutuhan. Logging: Konfigurasikan level logging untuk memantau aktivitas proxy. D. Penting: Konfigurasi Squid bisa sangat kompleks. Pelajari dokumentasi Squid untuk memahami semua opsi yang tersedia. Perhatikan keamanan. Squid proxy yang tidak dikonfigurasi dengan benar bisa menjadi celah keamanan. E.Contoh Tutorial Konfigurasi Squid: F. Semoga panduan ini membantu Anda membuat server Squid Proxy! Jangan ragu untuk bertanya jika ada hal yang ingin Anda diskusikan lebih lanjut.
Scroll to Top
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok
Awesome tutorial