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 07-07-2008, 10:19 AM   #1
shahsaifi
LQ Newbie
 
Registered: Jul 2008
Location: New Delhi, India
Distribution: CentOS, Fedora, RHEL, Ubuntu, FreeBSD, OpanSolaris, SUSE, Mandriva
Posts: 11

Rep: Reputation: 0
squid proxy + pop3/smtp + iptables


Hi there,

I'm a newbie, trying to configure squid proxy server, I'm able to share web but at my client site which has windows xp is not able to receive emails, the same I was doing on windows 2k3 server using ISA and getting all emails in outlook.

We have a broadband whose LAN IP is 192.168.1.5 which is connected to external interface of gw 192.168.1.1 Internal interface ip of gw is 10.11.0.1.

I've explored a lot got some iptables rules but not able to solve the issue. still struggling. please help me out.
 
Old 07-08-2008, 09:44 PM   #2
sunethj
Member
 
Registered: Nov 2006
Posts: 97

Rep: Reputation: 16
can you post your current iptables rule set?
 
Old 07-10-2008, 12:32 AM   #3
shahsaifi
LQ Newbie
 
Registered: Jul 2008
Location: New Delhi, India
Distribution: CentOS, Fedora, RHEL, Ubuntu, FreeBSD, OpanSolaris, SUSE, Mandriva
Posts: 11

Original Poster
Rep: Reputation: 0
there are no rules in iptables, I'm not using firewall (disable)...
 
Old 07-10-2008, 12:35 AM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
What does squid have to do with POP3 ?


Maybe you can pick just (1) problem, and ask that question, or pose that problem here. You are asking too much, with too little detail.
 
Old 07-10-2008, 12:57 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you sure iptables isn't running - I seem to recall seeing a thread recently where the poster had disabled the firewall through the GUI, but it was still causing problems.
 
Old 07-10-2008, 06:17 AM   #6
sunethj
Member
 
Registered: Nov 2006
Posts: 97

Rep: Reputation: 16
i think the problem is your squid is the only way to internet and since pop and smtp does not use squid you can get mails.

in that case you have to masquerade using iptables and have to use your linux box as the default gateway for your internal pcs.
 
Old 07-10-2008, 07:20 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
This problem can be solved by configuring squid as transparent proxy mode.
Search LQ forums and you will find it how to do it.
 
Old 07-11-2008, 06:14 AM   #8
shahsaifi
LQ Newbie
 
Registered: Jul 2008
Location: New Delhi, India
Distribution: CentOS, Fedora, RHEL, Ubuntu, FreeBSD, OpanSolaris, SUSE, Mandriva
Posts: 11

Original Poster
Rep: Reputation: 0
Hi thanks for you support, I've configured it as transparent proxy but still not able to resolve, please suggest me the iptables masquearding rules..
 
Old 07-12-2008, 12:10 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
This will help you to set up transparent squid:

http://www.cyberciti.biz/tips/linux-...uid-howto.html
 
Old 11-14-2008, 03:37 AM   #10
amin.yousaf
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by shahsaifi View Post
Hi there,

I'm a newbie, trying to configure squid proxy server, I'm able to share web but at my client site which has windows xp is not able to receive emails, the same I was doing on windows 2k3 server using ISA and getting all emails in outlook.

We have a broadband whose LAN IP is 192.168.1.5 which is connected to external interface of gw 192.168.1.1 Internal interface ip of gw is 10.11.0.1.

I've explored a lot got some iptables rules but not able to solve the issue. still struggling. please help me out.


i m facing the same problem
only windows 2003 server n windows 98 users can access the emails in outlook but windows xp users are not able to access outlook emails


wat can i do pls help to solve de problem


i hv already done dis

1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A PREROUTING -p TCP --dport 80 -j REDIRECT --to-port 3128
iptables -t nat -A POSTROUTING -p TCP --dport 110 -j MASQUERADE
iptables -t nat -A POSTROUTING -p TCP --dport 25 -j MASQUERADE

also for https
iptables -t nat -A POSTROUTING -p TCP --dport 443 -j MASQUERADE
iptables -t nat -A POSTROUTING -p TCP --dport 563 -j MASQUERADE

service iptables save

service iptables restart

there is no firewall running linux machine
n
on xp i hv also checked by disabling antivirus n firewall


but still i m unable to solve my problme


pls help me to solve de prob

Last edited by amin.yousaf; 11-14-2008 at 03:53 AM.
 
Old 11-16-2008, 11:05 AM   #11
shahsaifi
LQ Newbie
 
Registered: Jul 2008
Location: New Delhi, India
Distribution: CentOS, Fedora, RHEL, Ubuntu, FreeBSD, OpanSolaris, SUSE, Mandriva
Posts: 11

Original Poster
Rep: Reputation: 0
Hi there,
try these rules:-

clients-------switch----eth1--linux--eth0--------internet

& rules for masquerading:
iptables -F
service iptables save
iptables -A POSTROUTING -t nat -s 192.168.200.0/24 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT
service iptables save
echo 1 > /proc/sys/net/ipv4/ip_forward
 
  


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
SMTP/POP3 problems with squid/iptables dragonleech Linux - Security 8 09-23-2010 04:57 AM
ftp and pop&smtp with squid proxy and iptables ssilayaraja Linux - Networking 3 04-06-2008 05:32 PM
pop3 smtp ftp proxy ?? pettar Linux - Networking 7 10-25-2005 06:12 AM
POP3 & SMTP Proxy arun79 Linux - Networking 2 06-17-2003 07:44 PM
SMTP and POP3 Proxy step Linux - Newbie 4 03-14-2003 07:19 AM

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

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