LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   squid proxy + pop3/smtp + iptables (https://www.linuxquestions.org/questions/linux-server-73/squid-proxy-pop3-smtp-iptables-654096/)

shahsaifi 07-07-2008 10:19 AM

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.

sunethj 07-08-2008 09:44 PM

can you post your current iptables rule set?

shahsaifi 07-10-2008 12:32 AM

there are no rules in iptables, I'm not using firewall (disable)...

Mr. C. 07-10-2008 12:35 AM

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.

billymayday 07-10-2008 12:57 AM

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.

sunethj 07-10-2008 06:17 AM

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.

linuxlover.chaitanya 07-10-2008 07:20 AM

This problem can be solved by configuring squid as transparent proxy mode.
Search LQ forums and you will find it how to do it.

shahsaifi 07-11-2008 06:14 AM

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..

linuxlover.chaitanya 07-12-2008 12:10 AM

This will help you to set up transparent squid:

http://www.cyberciti.biz/tips/linux-...uid-howto.html

amin.yousaf 11-14-2008 03:37 AM

Quote:

Originally Posted by shahsaifi (Post 3206699)
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

shahsaifi 11-16-2008 11:05 AM

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


All times are GMT -5. The time now is 10:09 AM.