Interesting: How to setup ROUTER and/or FIREWALL that uses DNS
I got my dsl line to the internet. On my LAN I got my mail and webserver. Port 25 and 80 are connected via NAT (dsl router) to my mail- and webserver.
What I want to do is that my DSL router sends the port 25 traffic to a linux router. Then the linux router decides on DNS information (my DNS server on the LAN) where to send the traffic to.
So if my primairy email server with MX 10 record is down then my relay server with MX 20 record will be used automatically.
How do I set up such a router? Using iptables? If that's the case, how do I tell iptables to accept port 25 and redirect it to a mailserver using my internal DNS?
Last edited by mrcoffee11; 07-04-2006 at 09:29 AM.