On Mon, 24 Mar 2003, Jeff Koncz wrote:
> > Maybe it would be simpler to simply swap the primary and alias IP numbers > > in your /etc/rc.conf file, so that the MTA starts up on the 201.61.128.211 > > subnet? > > Yes, I'm starting to think this might be the best option. I would much rather > redirect just the outbound smtp traffic to the alias IP if I could because I > wouldn't have to deal with the rest of the work that will be involved with > changing the machines primary IP address. I've done this before and know that > it's not that involved, but when you're busy with a ton of other work quick > options sometimes work best. I thought ipfilter might be able to do this. > > My network provider said they do it on Linux (which doesn't help me) using > "ipmasqadm" with the following command: > > ipmasqadm portfw -a -P tcp -L primary_ip 25 -R alias_ip 25 > > That got me thinking that ipf/ipnat might be able to do the same thing on > FreeBSD. > This is what I have done in ipnat.conf on a system which I have two ip addresses assigned to tun0 and I want SMTP traffic to appears as coming from the assigned ip for the mail server. map tun0 from 0/0 to 0/0 port = 25 -> alias_ip/32 portmap tcp auto Cheers, Larry.
