How to build local web proxy without configuring the browsers
Asked Answered
D

7

6

How does Netnanny or k9 Web Protection setup web proxy without configuring the browsers? How can it be done?

Deathblow answered 6/1, 2011 at 12:21 Comment(0)
A
6

Using WinSock directly, or at the NDIS or hardware driver level, and then filter at those levels, just like any firewalls soft does. NDIS being the easy way.

Download this ISO image: http://www.microsoft.com/downloads/en/confirmation.aspx?displaylang=en&FamilyID=36a2630f-5d56-43b5-b996-7633f2ec14ff
it has bunch of samples and tools to help you build what you want. After you mount or burn it on CD and install it go to this folder: c:\WinDDK\7600.16385.1\src\network\ndis\

Anoa answered 14/1, 2011 at 7:50 Comment(3)
how hard is to write all windows OP's application based on NDIS ?Deathblow
Thanks for the replays, few question , im c++ programmer manly on linux , windows is new thing for me. 1. does programming once will run on all windows OP's? currently as i see it its the best solution what i whant to do is basic thing like netnanny and k9 doing to filter web requestsDeathblow
ok , now i found this : Layered Service Provider. can it be the thing im looking for .. en.wikipedia.org/wiki/Layered_service_providerDeathblow
D
2

I think what you need is a transparent proxy that support WCCP.

Take a look at squid-cache FAQ page

And the Wikipedia entry for WCCP

With that setup you just need to do some firewall configuration and all your web traffic will be handled by the transparent proxy. And no setup will be needed on your browser.

Dobrinsky answered 19/1, 2011 at 0:51 Comment(0)
S
1

netnanny is not a proxy. It is tied to the host machine and browser (and possibly other applications as well. It then filters all incoming and outgoing "content" from the machine/application.

Essentially Netnanny is a content-control system as against destination-control system (proxy).

Easiest way to divert all traffic to a certain site to some other address is by changing hosts file on local host

Stoppage answered 12/1, 2011 at 8:56 Comment(1)
when i installed net nanny , i checked if they attached some BHO or some plug in to FF , and i didn't found any what i did saw they have some component as service .Deathblow
B
1

You might want to have a look at the explanation here: http://www.fiddlertool.com/fiddler/help/hookup.asp

This is how Fiddler2 achieves inserting a proxy in between most apps and the internet without modifying the apps (although lots of explanation of how-to failing the default setup). This does not answer how NetNanny/K9 etc work though, as noted above they do a little more and may be a little more intrusive.

Brainsick answered 13/1, 2011 at 5:1 Comment(0)
B
1

I believe you search for BrowserHelperObjects. These little gizmos capture ALL browser communication, and as such can either remote ads from the HTML (good gizmo), or redirect every second click to a spam site (bad gizmo), or just capture every URL you type and send it home like all the WebToolBars do.

Burgoo answered 13/1, 2011 at 22:7 Comment(0)
G
1

What you want to do is route all outgoing http(s) requests from your lan through a reverse proxy (like squid). This is the setup for a transparent web proxy.

There are different ways to do this, although I've only ever set it up OpenBSD and Linux; and using Squid as the reverse proxy.

At a high level you have a firewall with rules to send all externally bound http traffic to a local squid server. The Squid server is configured to:

  • accept all http requests
  • forward the requests on to the real external hosts
  • cache the reply
  • forward the reply back to the requestor on the local lan

You can then add more granular rules in Squid to control access to websites, filter content, etc.

I pretty sure you can also get this functionality in different networking gear. I bet F5 has some products that do some or all of what I described, and probably Cisco as well. There is probably other proxies out there besides Squid that you can use too.

PS. I have no idea if this is how K9 Web Protection or NetNanny works.

Gobert answered 17/1, 2011 at 2:34 Comment(0)
E
0

Squid could provide an intercept proxy for HTTP and HTTPs ports, without configuring the browsers and it also supports WCCP.

Evieevil answered 17/8, 2016 at 14:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.