[Ilugc] squid transproxy

  • From: varun@xxxxxxxxxxxxxxxxxxxxxx (Varun)
  • Date: Fri, 07 May 2004 16:31:21 +0530

prakash@xxxxxxxxx wrote:

Use IPTables / IPChains to redirect all outgoing PORT 80
requests through squid.

something like
-A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
should do.


On Mon, May 03, 2004 at 05:48:25PM +0530, Suresh Ramasubramanian wrote:
 

Varun wrote:

   

      My server Mdk10 CE with eth0 to gateway
and eth1 for LAN. Squid is running on the server.
I want to allow direct internet access on the server.
All internet access on the LAN ( eth1 ) I want  redirected
to port 3128 ( squid ).
I have done changes in squid.conf.
     

Just block port 80 outbound.

Ask people on your LAN to use your.squid.proxy:3128 in their browser

--
   

Hi Prakash,
                  In which file this command needs to be put.

iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT 
--to-ports 3128

Thanks

Varun



Other related posts: