LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-22-2014, 05:51 AM   #16
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Original Poster
Rep: Reputation: 31

I tried to configure Squid as Transparent Proxy, but I failed

1. I am using CentOS

2. Broad band dial up connection in Centos(ADSL Setup)

3. using open dns 208.67.222.222

4. local lan ip 172.16.11.10/255.255.0.0

What I have done so far

A. add in squid.conf

1. acl all src 172.16.0.0/255.255.0.0

2. http_access allow all

3. http_port 3128 transparent

4. Service squid start

B. IPtables rule

1. iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 172.16.11.10:3128

2. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

3. iptables -I INPUT -s 172.16.0.0/255.255.0.0 -p tcp --dport 3128 -j ACCEPT

in my windows box

1. ip address 172.16.11.55/255.255.0.0

2. gateway 172.16.11.10

3. dns 208.67.222.222

That's it

but now I can not access internet, if I configure my browser and set browser proxy I can access easily.

Please help.
 
Old 01-22-2014, 09:03 AM   #17
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by soumalya View Post
I tried to configure Squid as Transparent Proxy, but I failed

1. I am using CentOS
2. Broad band dial up connection in Centos(ADSL Setup)
3. using open dns 208.67.222.222
4. local lan ip 172.16.11.10/255.255.0.0

What I have done so far

A. add in squid.conf
1. acl all src 172.16.0.0/255.255.0.0
2. http_access allow all
3. http_port 3128 transparent
4. Service squid start
B. IPtables rule
1. iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 172.16.11.10:3128
2. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
3. iptables -I INPUT -s 172.16.0.0/255.255.0.0 -p tcp --dport 3128 -j ACCEPT

in my windows box

1. ip address 172.16.11.55/255.255.0.0
2. gateway 172.16.11.10
3. dns 208.67.222.222

That's it

but now I can not access internet, if I configure my browser and set browser proxy I can access easily.
Please help.
This is the EXACT SAME QUESTION you posted to start this thread. Posting it a second time is pointless.

If you're not going to read the replies you've received (not only in this thread, but in the MANY squid threads you've posted for YEARS now), and apply what you've been told, there's not much point asking questions. You have been directed to documentation, how-to guides, and many other resources, but don't seem to what to make an attempt to read/understand them. There's not much we can do for you if you don't show effort of your own.

Again, there is MUCH you can find with a simple Google search. Try reading and UNDERSTANDING the documentation:
http://www.tuxradar.com/answers/432
http://community.spiceworks.com/topi...a-proxy-server
http://wiki.squid-cache.org/SquidFaq/InterceptionProxy

AGAIN:
  • Don't bump your own threads if you're not going to add any information to them
  • Don't keep asking the same question over and over
  • Provide answers to questions you're asked
  • Saying things like "I failed", tells us NOTHING...you've been asked for information numerous times, but don't provide it.
If you can't/won't answer questions asked of you, or show any effort to do things that have been suggested to you, there's not much point posting questions in a public forum. Hire a consultant, and have them do it for you, or get your systems administrator to do such things.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Transparent proxy using squid LeoPap Linux - Server 8 12-02-2013 07:09 AM
transparent proxy with squid v 3.1.19 lindampofu Linux - Newbie 1 09-27-2012 04:37 AM
Squid transparent proxy astalavista2000 Linux - Server 3 11-20-2011 07:40 PM
Squid as a transparent proxy kemplej Linux - Software 2 12-08-2004 05:00 PM
squid transparent proxy...... hitesh_linux Linux - Networking 1 06-13-2003 03:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration