Skip to main content

How to Configure Squid Proxy

1. Install Squid

2. edit squid.conf

3. #vi /etc/squid/squid.conf (Readhat Version)

4. add this line
acl mynet src 192.168.1.0/24
http_access allow mynet


5. enable memory_replacement_policy lru

6. enable cache_replacement_policy lru

7. enable cache_dir ufs /var/spool/squid 100 16 1024

8. add this line
visible_hostname your.domain

9. start squid using port 3128

Comments

Cacá said…
Hello Efren.
I'm brasilian, and i'm tryng to create a video stream with upload on my website using a webcam.
I searched this on the internet but i didn't found... Can you help me?
Flash is the better option, all right? How i do it?

thanks,
Carlos.
Cacá said…
can you send your e-mail? We can talk more on a e-mail.

Popular posts from this blog

take a snapshot online via your webcam

I'm fully newbie on flash but I manage to mix php and flash, i had a client which prefer a web cam app online, well that was 2007 ago, but when i notice y flash had this feature accessing a client web cam i was thinking if i can do some snapshot on it. well I've done it. to those who needs my app email me or leave you email here. well i might come out with free version but maybe with some banners on just for the just for a credit on my own. and also to those who wants some sample I can update my site upon your request.

Automated Testing with Behat & Mink on Linux

Have time to read my introduction. Behat + Mink + Selenium Server will do the automatic testing for your website. Behat handles your test cases in a form of a sentence which consist of the following Feature - which is a description of your test case. Example is "Title Checking" Scenario - Feature consist of Scenario's Conditions - Scenario's consist of condition using the following tags "Given", "When", "Then", "And", "But" Example feature:  Feature: Google Search @javascript Scenario: Check Google Site When I go to " http://www.google.com " Then Capture a ScreenShot @javascript Scenario: Search Efren on Google Given I am on " http://www.google.com " When I input "Efren" in " gbqfq" element When press " Google Search " Then print current URL Then Capture a ScreenShot You need t...
Java Script Request Handler var xmlHttpRequestHandler = new Object(); var requestObject; xmlHttpRequestHandler.createXmlHttpRequest = function(){ var XmlHttpRequestObject; if(typeof XMLHttpRequest != "undefined"){ XmlHttpRequestObject = new XMLHttpRequest(); } else if(window.ActiveXObject){ var tryPossibleVersions = ["MSXML2.XMLHttp.5.0", "MSXML2.XMLHttp.4.0", "MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp", "Microsoft.XMLHttp"]; for(i=0;i try{ XmlHttpRequestObject = new ActiveXObject(tryPossibleVersions[i]); break; } catch(xmlHttpRequestObjectError){ // Ignore Exception } } } return XmlHttpRequestObject; } function puthtml(url){ requestObject = xmlHttpRequestHandler.createXmlHttpRequest(); requestObject.onreadystatechange=onReadyStateChangeResponseCo...