Internet Sharing Through Proxy With Constraints

I have internet connection in my machine which is in LAN , host OS is vista . host computer has BSNL router attached to it.

I want to share my internet connection to the LAN with certain constraint by setting up Proxy on my machine..

for e.g.

Restriction i want to apply are:

Data Usage [for e.g. user must not exceed her usage beyond 50MB] Site Restriction [User must not be able to open certain sites] User Must enter her password while accessing first time internet [when resource connect proxy server]


To do this, you will have to either a) install some kind of proxy server on your computer, or b) configure it to act as a router.

First you need to decide which kind of access you want to give to other computers. If you only want to provide HTTP/HTTPS (i.e. web browsing), you need a), a "web proxy". If you want to allow any kind of internet traffic, you need b).

The rest of your question (data volume restriction, restriction on sites, password protection) will depend on whether you need a) or b). Password protection in particular will be difficult for b) (as some programs that try to access the net may have no way to prompt for a pw).

Quick pointers: For a) (web proxy), there are many implementations. A popular one is Squid, but there are many others. For b), look for "internet connection sharing".


If you want to restrict access using a proxy, you need to setup a proxy like Squid, and configure "content filtering", and "authentication".

For setting up Squid on Windows, see http://wiki.squid-cache.org/KnowledgeBase/Windows

For restricting which sites can be accessed, see e.g. http://www.freesoftwaremagazine.com/articles/web_blocking_squid

For authentication, see http://wiki.squid-cache.org/Features/Authentication

For data volume restriction, I don't know of any of-the box solution. It might make more sense to just monitor bandwith use and warn users who overdo it; that way the full bandwidth is availiable to everyone as long as there are no problems. Otherwise, you'll have to look for other/ additional software.

You might also want to look at other options for proxy software:


  • yes i want to go for [a]. and how to configure Squid for Restricting Users. – Jigar Joshi Jul 19 '10 at 10:32
  • Thanks Sleske for your help. i will let you know once i will configured it successfully. – Jigar Joshi Jul 19 '10 at 12:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.