Transparent web proxy

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:43, 3 August 2005 (edit)
213.139.154.67 (Talk)
(typo)
← Previous diff
Revision as of 23:48, 8 August 2005 (edit) (undo)
Sveasoft (Talk | contribs)

Next diff →
Line 1: Line 1:
 +'''You are here: ''' '''[[Main Page]]'''/'''[[DD-WRT Docu (EN)]]'''/'''[[Squid Transparent Proxy]]'''
 +
 +
 +=Introduction=
 +Running a transparent proxy server on your network can be used for more advanced content filtering of web pages for environments such as a school or library (where in some locales, filtering is required by law) or as a way to protect children in the household.
 +
 +This guide will help you enable a transparent proxy server on your network by having your WRT54G router forward all traffic to the proxy server automatically
 +
 +=Desktop Setup=
First install Squid on your unix box First install Squid on your unix box
after that you have to set up squid to do transparent proxying with these settings after that you have to set up squid to do transparent proxying with these settings
Line 9: Line 18:
httpd_accel_uses_host_header on httpd_accel_uses_host_header on
-When that is done you need to edit this script +=Router Setup=
-http://forum.bsr-clan.de/viewtopic.php?p=10177#10177 and upload it to the nvram in rc_firewall+You will need to use [iptables] to tell your router how to forward traffic. If you don't have a good grasp on [iptables] yet, someone has already done the work and written a shellscript to do the work for you. Be sure to edit the variables at the top.
 + 
 +The script can be found at:
 +http://forum.bsr-clan.de/viewtopic.php?p=10177#10177
 + 
 +You'll need to have the script run every time the router boots. An easy way to do is to set as in the rc_firewall variable. From either [Telnet/SSH_and_the_Command_Line]
 + # nvram rc_firewall="
 + PASTE
 + EDITED
 + SCRIPT
 + HERE
 + "
 +'''You are here: ''' '''[[Main Page]]'''/'''[[DD-WRT Docu (EN)]]'''/'''[[Squid Transparent Proxy]]'''

Revision as of 23:48, 8 August 2005

You are here: Main Page/DD-WRT Docu (EN)/Squid Transparent Proxy


Introduction

Running a transparent proxy server on your network can be used for more advanced content filtering of web pages for environments such as a school or library (where in some locales, filtering is required by law) or as a way to protect children in the household.

This guide will help you enable a transparent proxy server on your network by having your WRT54G router forward all traffic to the proxy server automatically

Desktop Setup

First install Squid on your unix box after that you have to set up squid to do transparent proxying with these settings

httpd_accel_host virtual httpd_accel_port 80

httpd_accel_with_proxy on

httpd_accel_uses_host_header on

Router Setup

You will need to use [iptables] to tell your router how to forward traffic. If you don't have a good grasp on [iptables] yet, someone has already done the work and written a shellscript to do the work for you. Be sure to edit the variables at the top.

The script can be found at: http://forum.bsr-clan.de/viewtopic.php?p=10177#10177

You'll need to have the script run every time the router boots. An easy way to do is to set as in the rc_firewall variable. From either [Telnet/SSH_and_the_Command_Line]

# nvram rc_firewall="
PASTE
EDITED 
SCRIPT
HERE
"

You are here: Main Page/DD-WRT Docu (EN)/Squid Transparent Proxy