Date: Mon, 22 Apr 2002 11:21:50 -0700 (PDT) From: S F <snf_lists@yahoo.com> To: freebsd-questions@freebsd.org Subject: email server (qmail) on two different class c networks - can I do it w/out nat? Message-ID: <20020422182150.45105.qmail@web14307.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
I have searched the archives and usenet groups and this question seems to have come up in some form or another, but as far as I can see, not with the same circumstances. I have a FreeBSD 4.5 machine on two class C 10. networks. I am moving from one set of ip addresses to another (from 1 public ip to 5) and have been trying to slowly move over the servers that I have (email, dns and web). I am having a big problem, however, with my email server. It has two ip addresses assigned to the nic, 10.20.155.10 and 10.6.18.10 (both subnet masks are 255.255.255.0). Both of those 10. networks are being supplied a nat connection to the internet by two separate nat/routers (Linksys) on two different IP's. The default router is 10.20.155.1 per the rc.conf file. The box answers all requests fine from the 10.20.155.x network, but if it gets a request from the 10.6.18.x network, it must be sending the replies out the 10.20.155.x interface, thus the machine making the port 25, etc requests, does not hear the replies. Here is the question: I am not trying to create a bridge and the current setup is only temporary - i.e. until dns changes are made world-wide. Is there a way to set this machine up so it will answer back through the appropriate interface/gateway - i.e. if a request comes into the 10.20.155.x network, it answers via that gateway and if it comes in the 10.6.18.x network, it answers via that gateway? Can I do this without setting up some type of nat concoction? Amazingly enough, the machine that I don't like much - a RH 7.2 machine running some web stuff is handling this dual network issue just fine... It is on 10.20.155.20 and 10.6.18.20 answering queries without any problems... and I don't understand why. TIA, SF __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020422182150.45105.qmail>