Setting up a Proxy server on my home router to enable content filtering
I need to know how to set up a proxy server on my router
First, this isn't possible (in the way you mean). You don't set up proxy servers IN routers. At least, not in a standard DSL/Cable modem/Router that would have been provided.
You set up a proxy server in another device (computer) in the network, and have the router point at it.
I'll use my home network as an example. I have a media converter (changes the DSL/phone line to an Ethernet plug). Next in line is my MacMini Server. It creates the PPPoE connection to my ISP. In the server I am running DHCP (hands out the IP addresses to my network so other computers can connect using WiFi), DNS (handles name services for me), an email server, a VPN server, a caching proxy server, and many other services. The only way to connect to my network through the MacMini is wirelessly. In this way, all clients are forced to go through the services I built.
I mention all this because I am NOT using the stock DSL router that was provided by my ISP.
The process to do all this would be the subject of a book. I did it because I am a network security engineer by trade, and understand the nuances of what I'm doing (and places that I traded off security, speed, and functionality).
I can't recommend this for you, because I don't know all the specifics of your situation. What I can say is that you may want to see about installing something like netnanny on the phone. Other options include researching proxy services that are available commercially and requiring it to use them.
EDIT: Conceivably, you could try and install a version of linux into a modem/router and make this happen. However, you would:
- Void warranties
- Brick the device if you make a mistake
- Potentially cause a problem that gets the attention of your ISP
- Not get it to work without compiling a version of Linux to go on it
- Have to find a driver to get the modem function to work/write a driver to make this work.
When I say this isn't possible, I mean for a consumer grade situation. If you are an enthusiast and can afford to take all the risks, then it may be the thing for you to try.
You could accomplish this task by setting your DNS servers to opendns.com addresses, 208.67.222.222 and 208.67.220.220 and then sign up for an account there to manage your public IP address, then specifically disable all requests to google.com, or to http://www.google.com/imghp, and all other image areas in order to block out those requests. It's not a perfect solution.
I also do IT for a living and there are solutions that can use a proxy inside the router.
First, you could try installing DD-WRT with squid on your home router, but that is a complicated process and not what I would recommend.
A better option is to look at a Buffalo WZR-1750 router that has DD-WRT installed.
A third option is to use an old PC, add a second network card into it and then download and install the IPCop router solution. IPCop takes some work to set up, but it's online, it's very reliable and you can do all sorts of things with it such as restricting what devices can get online, blocking certain IP addresses, certain MAC addresses, or you can restrict access to the internet to certain times of the day (such as from 5PM - 8PM when there's family accountability, and the kids can't search porn when their in the family room with you.
I would recommend going with either the buffalo router or with the IPCop solution. You can get cheap PCs from many computer shops or check your local school or university for PCs that they sell off as they replace their computers in the classrooms.