I already had the ip address in the Server NAT screen and and also the
inbound NAT screen and rules screen. But, none of this worked until I did
the command that Robert Staph gave me to do on the exec.php page.
/sbin/ifconfig xl2 22.214.171.124 netmask 255.255.255.255 alias which now works
with what I had, but when you reboot the machine the above goes away and you
have to add it again. Any ideas on how to get it to stick??
From: Chris Buechler [mailto:cbuechler at gmail dot com]
Sent: Wednesday, February 09, 2005 11:14 AM
To: Travis Zadikem
Cc: m0n0wall at lists dot m0n0 dot ch
Subject: Re: [m0n0wall] NOT A BUG!!!... Problems using multiple IP
addresses on m0n0wall
On Wed, 9 Feb 2005 11:01:35 -0700, Travis Zadikem
<tzadikem at picosecond dot com> wrote:
> The problem with natting in my case is that I have two mail servers in
> at this time and try setting up nat for two different servers with the
> ports, (110, 143 and 25) but different IP addresses. The alias idea is
> ip addresses on the WAN that is then natted to the two different servers
> which works now.
That doesn't make anything more difficult.
On the NAT screen, go to Server NAT, add the second IP there. Then go
to inbound NAT and you can put in NAT rules using either the WAN
interface's IP or the IP you added for Server NAT.
Or 1:1 NAT one of them and use Inbound NAT on the other, without using
Server NAT at all.