LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-04-2010, 11:35 PM   #16
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985

Once more for luck, squid in a web proxy, not an imap / pop3 proxy. Please read up on these subjects.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-04-2010, 11:49 PM   #17
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Yeah I understand that squid is web proxy and not imap or pop proxy. But that is all the issue. I do not want to intercept the email data. Nor do I intend to in the future. But because our squid is so placed in the network that all the data has to pass through it. Right now as squid is transparently doing it, the email clients do not need to worry about it. There is a setting in thunderbird preferences where I can set it for proxy settings, but it is not working. It seems I need to use squid as socks proxy as well.
 
Old 01-05-2010, 12:12 AM   #18
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
squid is NOT a socks proxy. *ALL* traffic can *NOT* pass through squid.
 
Old 01-05-2010, 12:14 AM   #19
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Ok. Then what is the better way of doing it. Any other option or any add on or anything? Plugin for squid?
 
Old 01-05-2010, 12:15 AM   #20
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
christ, you've no idea what you're doing have you??
 
Old 01-05-2010, 12:41 AM   #21
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
I have. I remember some time back in a similar setup evolution worked quite fine. But not thunderbird. I am not trying to proxy pop and smtp requests. Neither do I intend to.
 
Old 01-05-2010, 12:56 AM   #22
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Maybe what I am looking for is Delegate. One of the members here had a same issue and some one suggested delegate which can be used as an application level proxy for multiple protocols. Will try it for pop and smtp and squid for http.
 
Old 01-05-2010, 08:31 AM   #23
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Rep: Reputation: 23
Get a socks proxy.

Quote:
Originally Posted by linuxlover.chaitanya View Post
The above script in #12 post is working for the local addresses. Now, I need to only solve the problem for email clients.
If, and this is a big if, your email client AND server can be configured to use an http proxy, it will work. Generally speaking however, the http proxy you feed your email client is only used to load http content, _not_ to send and receive email.

Otherwise, you need another proxy server, specifically a socks proxy. There used to be lots of free nifty socks proxy servers for windows 95/98, and linux clients and software connected to them just fine. Other than saying, you need a socks proxy, I can't help much, since the windows 95/98 days were the last in which I had to use a socks proxy.

Good luck.
 
Old 01-05-2010, 10:51 PM   #24
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
I am back to square one. With the above script, I can not access the local addresses. And I understand that squid is http proxy and can not be used to send emails and download them with pop. And I have been trying to tell this to Chris as well.
As you said, I need socks proxy and I have one. I installed DeleGate, and it works fine. But another issue with it. It completely borks wpad. With delegate installed and running, browsers CAN NOT automatically detect proxy settings.
Also it is important that local addresses work as everyone here works with visual studio.
 
Old 01-06-2010, 02:00 AM   #25
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well in that case it seems you do not understand your product choice well enough. If there are two proxies configured correctly and running independently then they will not interfere with one another. You are clearly doing something wrong without going in to nearly enough detail about it.
 
Old 01-06-2010, 02:51 AM   #26
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Yes. And that is where I need help. I have not worked with delegate before. And I thought delegate should be working independently and should not affect my current setup. And to extent it is not. It is just creating issues when browser is set to detect proxy settings automatically. If I configure browser for proxy manually it will work fine. But then I can not go and configure every browser on every machine. And wpad seems the solution for this.
Will still keep on reading on delegate even more.
Thanks for sharing my headache.
 
Old 01-08-2010, 04:42 AM   #27
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Ok. For my issues with email clients I have downloaded p3scan. It says it is a pop and smtp proxy which can work transparently. I downloaded and installed it from the source. It is available for download at sourceforge. The version I am using is 2.3.2.
Everything is fine but it does not seem to work. README file says I need to redirect pop and smtp ports to 8110, the default on which p3scan listens. And it is listening. lsof command says so.

I am using these iptables rules for transparent redirecting smtp and pop to p3scan.

Code:
iptables -t nat -A PREROUTING -p tcp -i $LAN_IN --dport pop3 -j REDIRECT --to 8110
iptables -t nat -A PREROUTING -p tcp -i $LAN_IN --dport smtp -j REDIRECT --to 8110
But the rules are not working. And if I masquerade the output interface all the squid rules become useless.
 
Old 01-08-2010, 06:56 AM   #28
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Got email clients to work with p3scan. Only one thing that I am not able to get of of is right now is the wpad script with Firefox. It is working with IE though. So I guess the function isInNet is not going well with Firefox.

Ok let me put the solution in brief. Just install p3scan and configure its configuration file /etc/p3scan/p3scan.conf.
Start the p3scan. And put these iptables rules for transparent redirection so that email clients do not know about it.

Code:
iptables -t nat -A PREROUTING -i $LAN_IN -p tcp --dport pop3 -j REDIRECT --to 8110
iptables -t nat -A POSTROUTING -o $OUT_IN -j MASQUERADE

Last edited by linuxlover.chaitanya; 01-08-2010 at 07:01 AM. Reason: typo
 
Old 01-08-2010, 12:00 PM   #29
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Those two iptables rules have nothing to do with each other. first you redirect a tcp connection and then nat it? that makes no sense - that connection will never hit POSTROUTING.
 
Old 01-09-2010, 06:22 AM   #30
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Well, I was completely wrong. Nothing is working now. Everything has gone haywire.
But what I want to work out is those REDIRECT rules. I think p3sense is what I want but those redirect rules are not working. And I want them to work.
I am lost. Its Saturday, at 1800 and still at office. Nothing working out and my brain is completely out and need to get a coffee.
 
  


Reply



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
[SOLVED] Squid+DansGuardian not working properly. squid blocking sites that should be linuxlover.chaitanya Linux - Server 13 11-10-2014 10:34 AM
what is wrong in my configuration in squid + dhcp3 + iptables + wpad.dat bideshp Linux - Networking 3 09-06-2009 05:42 PM
LXer: Squid Proxy Server On Ubuntu 9.04 Server With DansGuardian, ClamAV, And WPAD LXer Syndicated Linux News 0 07-03-2009 08:51 PM
Squid 2.6 Reverse Proxy from Squid(3128) to OrginServer(80) Not working rraj Linux - Server 0 06-06-2008 02:29 PM
Squid WPAD proxy getting TCP_DENIED/400 Invalid-request HiOctane21 Linux - Networking 0 02-07-2007 12:49 PM

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

All times are GMT -5. The time now is 04:06 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