Hello pluggers, I'm having a firewall server having two eths. Let's just say eth0 facing internet and eth1 facing secured internal LAN. In here, I've also setup one of our company's domain since we have 2 domains, (say it www.domain2.ph). I'm trying to forward all incoming packets to my mail server (probably, to ports 25 and 110) having an internal ip address of let's say, 192.168.1.5. I've used iptables since i had a kernel 2.4 and I did something like:
iptables -t nat -A PREROUTING -i eth1 -p TCP --dport 25 -s 0.0.0.0/0 -j DNAT --to 192.168.0.2:25 iptables -A FORWARD -p TCP -d 192.168.0.2 --dport 25 -s 0.0.0.0/0 -j ACCEPT iptables -t nat -A PREROUTING -i eth1 -p TCP --dport 110 -s 0.0.0.0/0 -j DNAT --to 192.168.0.2:110 iptables -A FORWARD -p TCP -d 192.168.0.2 --dport 110 -s 0.0.0.0/0 -j ACCEPT iptables-save > /etc/sysconfig/iptables I've checked my setup by sending an email to [EMAIL PROTECTED] but unfortunately, it bounced back and tells: Unable to deliver message to the following address(es). <[EMAIL PROTECTED]>: Sorry, I wasn't able to establish an SMTP connection. (#4.4.1) How's this? Please help! This has been my problem for two weeks now. Oliver _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
