LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Thread Tools
Old 07-07-2008, 11:19 AM   #1
shahsaifi
LQ Newbie
 
Registered: Jul 2008
Location: New Delhi, India
Distribution: CentOS, Fedora, RHEL, Ubuntu, FreeBSD, OpanSolaris, SUSE, Mandriva
Posts: 10
Thanked: 0
squid proxy + pop3/smtp + iptables


[Log in to get rid of this advertisement]
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.
shahsaifi is offline     Reply With Quote
Old 07-08-2008, 10:44 PM   #2
sunethj
Member
 
Registered: Nov 2006
Posts: 96
Thanked: 0
can you post your current iptables rule set?
sunethj is offline     Reply With Quote
Old 07-10-2008, 01:32 AM   #3
shahsaifi
LQ Newbie
 
Registered: Jul 2008
Location: New Delhi, India
Distribution: CentOS, Fedora, RHEL, Ubuntu, FreeBSD, OpanSolaris, SUSE, Mandriva
Posts: 10
Thanked: 0

Original Poster
there are no rules in iptables, I'm not using firewall (disable)...
shahsaifi is offline     Reply With Quote
Old 07-10-2008, 01:35 AM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,511
Thanked: 4
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.
Mr. C. is offline     Reply With Quote
Old 07-10-2008, 01:57 AM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Thanked: 126
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.
billymayday is offline     Reply With Quote
Old 07-10-2008, 07:17 AM   #6
sunethj
Member
 
Registered: Nov 2006
Posts: 96
Thanked: 0
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.
sunethj is offline     Reply With Quote
Old 07-10-2008, 08:20 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Ubuntu Karmic, CentOS 5.4
Posts: 2,508
Thanked: 162
This problem can be solved by configuring squid as transparent proxy mode.
Search LQ forums and you will find it how to do it.
linuxlover.chaitanya is offline     Reply With Quote
Old 07-11-2008, 07:14 AM   #8
shahsaifi
LQ Newbie
 
Registered: Jul 2008
Location: New Delhi, India
Distribution: CentOS, Fedora, RHEL, Ubuntu, FreeBSD, OpanSolaris, SUSE, Mandriva
Posts: 10
Thanked: 0

Original Poster
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..
shahsaifi is offline     Reply With Quote
Old 07-12-2008, 01:10 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Ubuntu Karmic, CentOS 5.4
Posts: 2,508
Thanked: 162
This will help you to set up transparent squid:

http://www.cyberciti.biz/tips/linux-...uid-howto.html
linuxlover.chaitanya is offline     Reply With Quote
Old 11-14-2008, 04:37 AM   #10
amin.yousaf
LQ Newbie
 
Registered: Jul 2008
Posts: 8
Thanked: 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 04:53 AM..
amin.yousaf is offline     Reply With Quote
Old 11-16-2008, 12:05 PM   #11
shahsaifi
LQ Newbie
 
Registered: Jul 2008
Location: New Delhi, India
Distribution: CentOS, Fedora, RHEL, Ubuntu, FreeBSD, OpanSolaris, SUSE, Mandriva
Posts: 10
Thanked: 0

Original Poster
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
shahsaifi is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration