LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-24-2010, 04:10 AM   #1
warint06
LQ Newbie
 
Registered: May 2010
Posts: 8

Rep: Reputation: 0
squid and outlook problem


Aslam o Alaikum

After a very long searched and trying to many things i have now posting over here ..

problem is very simple

squid that allows outlook

but its not happening for me

scenario

adslroute---->dynamicip(eth1-192.168.1.3)-----------------------(linux-b0x)---eth0(192.168.2.1)---internal lan


now squid is running very fine
but outlook is not working
i have executed this script




#!/bin/bash
/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t mangle -F
/sbin/iptables -X
#-----------------------------------INPUT CHAIN-------------------------------------------#
/sbin/iptables -A INPUT -s 192.168.1.3 -p icmp --icmp-type echo-request -j ACCEPT
/sbin/iptables -A INPUT -s 192.168.1.3 -p tcp --dport Squid Port -j ACCEPT
/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A INPUT -m state --state NEW -i ! eth1 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 80 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 3128 -j ACCEPT
/sbin/iptables -I FORWARD -p tcp --dport 25 -j ACCEPT
/sbin/iptables -I FORWARD -p tcp --dport 110 -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
#---------------------------Transparent Proxy(PREROUTING)-------------------------------#
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
################################Source Nating(POSTROUTING)------------------------------#
/sbin/iptables -t nat -A POSTROUTING -s 192.168.1.3 -j MASQUERADE
echo '1' > /proc/sys/net/ipv4/ip_forward



i know this scripts turns on transparent proxy
and since m using squid-2.6 i have changed.conf
http_port 192.168.2.1:3128 transparent
and have also tried
http_port 3128 transparent

but now nether the transparent proxy nor outlook is working further
when i used nmap

[root@dhcppc1 ~]# nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2010-05-24 13:42 PKT
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1675 closed ports
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
631/tcp open ipp
841/tcp open unknown
3128/tcp open squid-http

Nmap finished: 1 IP address (1 host up) scanned in 0.106 seconds


nothing is open for smtp and pop3


plz help me out
 
Old 05-24-2010, 06:00 AM   #2
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
what about outlook?? you can't get mail? Well squid is not a pop3 / imap4, so it's not going to help you in the slightest there. you can get mail proxies, but generally people don't bother, just allow direct access by ip with iptables.
 
Old 05-24-2010, 06:27 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
I have a similar setup and the script I run is also similar and everything runs. We use email clients. Are not you able to get the mails?
And as Chris said, it has nothing to do with squid. Squid is http proxy. You need to look into iptables.
 
  


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
squid and outlook problem warint06 Linux - Networking 2 05-21-2010 11:21 AM
Squid+Outlook mail problem cueflux LinuxQuestions.org Member Intro 1 08-27-2009 05:38 AM
Help me in outlook mail access problem in squid proxy in RHEL 5 Swarup Hait Linux - Newbie 3 01-06-2009 09:45 PM
Squid & M$ Outlook ~=gr3p=~ Linux - Networking 4 11-16-2006 04:15 PM
Squid and Outlook johnnycash Linux - Networking 0 05-20-2004 05:18 AM

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

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