Hi

I need some help on the following problem with Iptables. Can anybody provide me with 
some help.

Server Details
a) Our service provider provides us a catchall account & SMTP access. e.g. Server IP 
10.10.10.10

b) We have a gateway firewall server with 
squid running. e.g. Server IP 55.55.55.55 (Live IP)

c) We have a email server running behind the firewall. e.g Server IP 77.77.77.77 

To Do
a) The email server should be able to send POP & SMTP requests to our email service 
providers server ie 10.10.10.10 via our gateway server

b) Users from internet should be able to access our internal email server i.e. 
77.77.77.77 via our gateway server 55.55.55.55

Current Status
a) I feel the following iptable code running on our gateway server will allow users 
from internet to access our internal email server. Please advice if this is right. 
(Note : eth1 - External Network Card)

iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth1 -p tcp --sport 80 -j DNAT --to 77.77.77.77:80

I need to do this urgently and would require your precious contribution. 

Regards

Joel
9820533294
(022) 56346700


Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

 Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com

Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to 
http://airsahara.indiatimes.com and Bid Now !


-- 
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to