On Thu, Jun 28, 2012 at 10:43 AM, Marikkannan Rajagopal <[email protected]> wrote: > Hi All, > > The Server having two nic cards, one card is having the ipaddress as > "192.168.1.4" and the other one is having the ipaddress as > "192.168.2.55".All client systems having the ipaddress range > "192.168.2.0/24",and > the client system are accessing the internet through squid proxy.Now i want > to configure the "Mozilla thunderbird" in all client systems.But it cannot > accessing through squid proxy. > > Now i made the proxy as transparent,still it was not working and i also > done the NAT through iptables by > > iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to > 192.168.2.55:3128 > iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT > --to-port 3128 > > here "eth0 ---> 192.168.1.4" and "eth1 ----> 192.168.2.55". Please > intimate where i am going wrong.
The second NAT for connections coming on eth0 is not needed. Create NAT rules for -i eth0 dport 25 (SMTP), 110 (POP3) and 143 (IMAP) to the outgoing IP address... Then try telnet to your mail server port 25 and see if you are getting a SMTP response.. Similarly verify POP3. Are you able to ping the internet from the server itself? This will make sure your routing is correctly configured on the server. If not, set default route as eth0. -- Mohan Sundaram _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
