Skip to main content

Configuring Squid to attach with softperferct bandwidth manager





In this article I’ll talk on how to setup a transparent proxy on Windows Server 2003 using Squid NT. Squid NT is a port from Linux base proxy server called Squid. I have successfully installed and configured Squid transparent proxy on Windows Server and here is how I do it.
Installing Squid NT is very easy, first you can download Squid NT here, and then you can follow my old tutorial here: http://markus.revti.com/2007/06/installing-squid-cache-for-windows/
Although installing Squid NT is easy, however configuring transparent proxy on Windows version of Squid is a bit tricky as Squid NT have its limitation. From Squid NT website it’s stated: “Transparent Proxy: missing Windows non commercial interception driver”.

My first thought was there is no way to do port forwarding or port redirecting in Windows Server the same way it is done in Linux server. In Linux based server you can use iptables to do port forwarding with the command like this:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128


I’ve been looking for a way to do port redirect or port forwarding in Windows Server 2003 this several days and start to become desperate as not much info I can get on this topic. At first I was looking for doing port forwarding or port redirecting in RRAS (Routing and Remote Access Service) but can’t find it. Actually there is port forwarding in RRAS but it’s not what I need to make transparent proxy.
Then I start looking for software that can do port forwarding and found Softperfect Bandwidth Manager can do it. You can download Softperfect Bandwidth Manager here.
Step by step to configure transparent proxy using Softperfect Bandwidth Manager:
Let start by installing the Squid NT, use my old tutorial here http://markus.revti.com/2007/06/installing-squid-cache-for-windows/ to guide you.
Then you'll need to modify the squid.conf to add "transparent" keyword behind http_port options so it will look like this:
http_port 3128 transparent


Install Softperfect Bandwidth Manager
Create a Port Map, here you should define the Squid’s port on your server. Go to “Tools > Port Mapping”
Softperfect Bandwidth Manager's Add Port MapSoftperfect Bandwidth Manager's Add Port Map

Click on New button to create a new mapping, fill like the example below
Softperfect Bandwidth Manager Adding New Port MapSoftperfect Bandwidth Manager Adding New Port Map

After you create a port map, you need to create a new rule to redirect all HTTP request to remote server port 80 to port 3128. Click on “Rules > Add Rule”. On General tab fill the fields with these values:
Direction: Both
Transfer Rate Limit: Unlimited
Protocol: TCP and UDP
Apply Rule on Interface: LAN
Softperfect Bandwidth Manager Rule General TabSoftperfect Bandwidth Manager Rule General Tab

Important! You must select the interface (Network Card) that is connected to your Local Network (the one that connect the server to other client computers, and NOT the one connected to the modem, etc.)
On Source tab set the values to these:
Source Address: Whole IP Address, and insert the IP ranges of your clients PC
Source Port: Any
Softperfect Bandwidth Manager Source TabSoftperfect Bandwidth Manager Source Tab

On Destination tab set the values to these:
Destination Address: Any IP Address
Destination Port: Port List and then Add these ports: 80 (HTTP) and 443 (HTTPS)
Softperfect Bandwidth Manager Destination TabSoftperfect Bandwidth Manager Destination Tab

On Advanced tab look for “Additional Processing”, give check on “Process through the following mapping” and select the port mapping you created before and click OK.
Softperfect Bandwidth Manager Advanced TabSoftperfect Bandwidth Manager Advanced Tab

Done, now all requests to port 80 and 443 will be redirected to Squid NT. To check whether the transparent proxy works or not you can visit http://whatismyipaddress.com/ and it should say “Proxy Server Detected!”
Download Squid NT and Softperfect Bandwidth Manager here

Comments

Popular posts from this blog

Laravel Training Purnama Academy

Nov 2018 Purnama Academy 0838-0838-0001 Kursus Laravel Training Center INdonesia, jakarta, Bandung, Bogor, Semarang, Yogya, Palembang kalimantan, surabaya visit www.purnamaacademy.com , Laravel - Online Courses, Classes, Training, Tutorials on Lynda https://www.lynda.com/Laravel-training-tutorials/2779-0.html Learn how to use Laravel, from beginner basics to advanced techniques, with online video tutorials taught by industry experts. Top Laravel Courses Online - Updated November 2018 | Udemy https://www.udemy.com/topic/laravel/ Whether you're interested in developing web apps in the Laravel PHP framework, or building a RESTful API with Laravel, Udemy has a course to help you ... PHP Laravel Framework | Brainmatics.Com brainmatics.com/php-laravel-framework/ Translate this page Laravel merupakan framework PHP yang dirancang untuk membangun situs web ... Pada training ini diharapkan mampu membantu meningkatkan kemampuan ... Dec 3 - Dec 6 Brainmatics Laravel training - Laracasts htt...

Bisnis Paling Populer 2012

TEMPO.CO, Jakarta - Sektor industri pangan, industri jasa dan perhotelan, serta pertambangan dan energi diperkirakan bakal mengalami booming pada 2012. Permintaan di dalam negeri terhadap industri jasa, perhotelan, serta makanan di dalam negeri akan meningkat. »Adapun pertambangan dan energi karena permintaan di beberapa negara yang tidak terkena krisis juga cukup besar,” tutur Didik J. Rachbini, Kepala Lembaga Pengkajian, Penelitian, dan Pengembangan Ekonomi (LP3E) Kadin Indonesia, di Jakarta, Rabu, 28 Desember 2011. Menurutnya, pertumbuhan kelompok masyarakat yang memiliki daya beli tinggi saat ini cukup besar. Sehingga, permintaan terhadap sektor jasa dan produk makanan maupun perhotelan akan terus bertumbuh. Dia menyebut, sektor konsumsi masih akan menyumbang sekitar 60 persen dari pertumbuhan ekonomi. »Namun, bila pemerintah tidak bisa menjaga kondisi yang nyaman bagi kalangan usaha, maka pertumbuhan industri di dalam negeri akan di bawah target pemerintah,” kata Didik. Dia menyeb...

tempat training komputer di bandung

Jadwal training, kursus komputer sisindotek Bandung GRA-03 - Google Sketchup 3D for Building Interior 3 Hari , Start : 6,20 Oct , 3 Nov, 8 Dec 2014 GUI-02 - Building ASP.Net Application with IronSpeed Designer 4 Hari , Start : 13, 27 Oct, 10, 24 Nov , 1,15 Dec 2014 API-02 - Building Integrated Map Website with PHP MySQL and Google Map API V.3 3 Hari , Start : 6,20 Oct , 3 Nov, 8 Dec 2014 NTW-04 - Installing and Configuring Exchange Server 2008 4 Hari , Start : 13, 27 Oct, 10, 24 Nov , 1,15 Dec 2014 CMS-03 - Web Development with PHP CodeIgniter 3 Hari , Start : 6,20 Oct , 3 Nov, 8 Dec 2014 PRO-01 - Computer for Secretary and Admin Staff (Networking Essential, MS. Outlook, Document Security and sharing, MS. Office Integration, File Archive and data backup - Recovery, etc.) 3 Hari , Start : on demand PRG-06 - Building Event Scheduler System with PHP AJAX and SMS Gateway 4 Hari , Start : 13, 27 Oct, 10, 24 Nov , 1,15 Dec 2014 NTW-03 - Installing, Configuring and Administering UBUNT...