Transparent web proxy

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:48, 8 August 2005 (edit)
Sveasoft (Talk | contribs)

← Previous diff
Revision as of 23:55, 8 August 2005 (edit) (undo)
Sveasoft (Talk | contribs)
m (Router Setup - fixed links)
Next diff →
Line 19: Line 19:
=Router Setup= =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.+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: The script can be found at:
http://forum.bsr-clan.de/viewtopic.php?p=10177#10177 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]+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=" # nvram rc_firewall="
PASTE PASTE

Revision as of 23:55, 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