LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 03-13-2012, 05:56 AM   #1
imran76
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Redirecting trasparent squid traffic to squid by using iptables


Hi all,
I am having problem while using transprent squid on cenos 5.7.
I configured the transparent squid proxy server on Centos 5.7.
I redirected all the port 80 traffic to squid by redirecting it to port 3128 in prerouting rule, it works fine on the client web browsers.
The problem is that some applications on client like utorrent, skype etc cannot connect to internet using this transparent squid. If I allow the ip_forwarding in centos, these applications use centos as a router and bypass the squid. If ip_forwarding is disabled, these applications fail to go to internet.
Can someone help me by telling some iptables prerouting rules to redirect all traffic to squid.
This is very important for me, Thanks in advance.
 
Old 03-13-2012, 08:49 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Try the following: http://www.karlrupp.net/en/computer/nat_tutorial Specifically, look at the section under the heading Applications, which has a subsection on Transparent Proxying.
 
  


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
IPTABLES port redirecting to SQUID imoulas Linux - Server 1 07-12-2011 04:14 PM
iptables/Squid with outgoing traffic NoTeef Linux - Networking 3 06-27-2011 08:29 AM
Squid - Redirecting one url to another Squid Server tom@work Linux - Server 0 09-09-2010 05:56 PM
[SOLVED] Problem with traffic control, squid and iptables ={D|D}= Linux - Networking 2 05-14-2010 11:25 AM
Passing traffic to Squid using Iptables Yahooguntu Linux - Networking 1 08-29-2009 01:57 AM


All times are GMT -5. The time now is 11:17 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration