how to setup squid transparent proxy in centOS 6.4
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how to setup squid transparent proxy in centOS 6.4
i have search over the number of forums about transparent proxy in centOS but i cannot still solve my problem....
someone please explain me in brief about setting up a transparent proxy in my centOS proxy server.
ethernet_internet - 192.168.1.13
ethernet_LAN - 10.180.5.2(as proxy server)
i have search over the number of forums about transparent proxy in centOS but i cannot still solve my problem....
someone please explain me in brief about setting up a transparent proxy in my centOS proxy server.
ethernet_internet - 192.168.1.13
ethernet_LAN - 10.180.5.2(as proxy server)
Thank You
Since you haven't actually told us what problem(s) you're having, what do you think we'll be able to tell you???
i configured the settings as given below, but when i access internet from client computer(removing the proxy settings from browser) i cannot access internet....but when i set the proxy settings(Address-10.180.5.2 port 3128) i can access the internet....
My aim is to make my proxy server(10.180.5.2) as transparent so that i don't have to configure proxy on client browser iptables
*filter
:INPUT ACCEPT [86:39104]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [77:37515]
-A INPUT -s 10.180.5.2/32 -p tcp -m tcp --dport 3128 -j ACCEPT
-A INPUT -s 10.0.0.0/8 -p tcp -m tcp --dport 3128 -j ACCEPT
-A FORWARD -s 10.180.5.2/32 -i eth1 -j ACCEPT
COMMIT
*nat
:PREROUTING ACCEPT [76:6891]
:POSTROUTING ACCEPT [8:2751]
:OUTPUT ACCEPT [8:2751]
-A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.180.5.2:3128
-A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-port 3128
COMMIT
i configured the settings as given below, but when i access internet from client computer(removing the proxy settings from browser) i cannot access internet....but when i set the proxy settings(Address-10.180.5.2 port 3128) i can access the internet....My aim is to make my proxy server(10.180.5.2) as transparent so that i don't have to configure proxy on client browser iptables
*filter
:INPUT ACCEPT [86:39104]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [77:37515]
-A INPUT -s 10.180.5.2/32 -p tcp -m tcp --dport 3128 -j ACCEPT
-A INPUT -s 10.0.0.0/8 -p tcp -m tcp --dport 3128 -j ACCEPT
-A FORWARD -s 10.180.5.2/32 -i eth1 -j ACCEPT
COMMIT
*nat
:PREROUTING ACCEPT [76:6891]
:POSTROUTING ACCEPT [8:2751]
:OUTPUT ACCEPT [8:2751]
-A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.180.5.2:3128
-A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-port 3128
COMMIT
Ok, so everything is working exactly like it should. What's the problem??? A transparent proxy is one that the user doesn't know is there, but you are going to have to tell your systems to USE IT somehow. Either push down a proxy PAC file, or do a redirection in your router somehow. Sitting the box on the network won't just make it work...you have to route the traffic through the server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.