Advertisement

07.16.2008 at 07:13PM PDT, ID: 23571922
[x]
Attachment Details

transparent proxy setup

Asked by pkgoyal in Linux Network Security, Network Software Firewalls

I installed squid proxy on my local machine running at port # 3128.

To make is transparent proxy, I executed following command.

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128

But somehow it is not working. I executed following command and found that none of the packet is meeting this rule...

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128

root@test-desktop:/home/test# iptables -nv -t nat -L PREROUTING
Chain PREROUTING (policy ACCEPT 81 packets, 13075 bytes)
pkts bytes target prot opt in out source destination
0 0 REDIRECT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 redir ports 3128
root@test-desktop:/home/test#


Any idea ?

Start Free Trial
[+][-]07.16.2008 at 07:34PM PDT, ID: 22021964

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.17.2008 at 12:33AM PDT, ID: 22023069

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.17.2008 at 08:38AM PDT, ID: 22026690

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 10:16AM PDT, ID: 22027668

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux Network Security, Network Software Firewalls
Sign Up Now!
Solution Provided By: ravenpl
Participating Experts: 2
Solution Grade: C
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628