Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2006 23:57:18 +0200
From:      Iantcho Vassilev <ianchov@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: natd with several alias IPs
Message-ID:  <18e02bd30602161357p30dacd80tc03151a8d31fc87a@mail.gmail.com>
In-Reply-To: <cb5206420602160253n15585d25ocb482ecd62d373b1@mail.gmail.com>
References:  <cb5206420602151245j19b37f18g90b3a91fb71beb6d@mail.gmail.com> <43F3EE83.6060702@mac.com> <cb5206420602160253n15585d25ocb482ecd62d373b1@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
That`s how i do it with PF!!!
<Freebsd>



nat on ed0 proto {tcp udp icmp} from 10.10.xx.xx to any -> 172.16.xx.xx
# Rule  2 (NAT)
#
#
nat on ed0 proto {tcp udp icmp} from 10.10.xx.xx to any -> 172.16.xx.xx
#
# Rule  3 (NAT)
#
#
nat on ed0 proto {tcp udp icmp} from 10.10.xx.xx to any -> 172.16.xx.xx

#
# Rule  4 (NAT)
#
#
nat on ed0 proto {tcp udp icmp} from 10.10.xx.xx to any -> 172.16.xx.xx





------>
Where ed0 is the interface with the alias..


As performace i can say that`s its scalling very well. Because of the natur=
e
of PF and the options you can set(to be more aggressive or not ) i don`t
have problems with overheat.


On 2/16/06, Andrew Pantyukhin <infofarmer@gmail.com> wrote:
>
> On 2/16/06, Chuck Swiger <cswiger@mac.com> wrote:
> > Andrew Pantyukhin wrote:
> > > I wonder, what tricks do you use to use more than
> > > one alias IP? I mean, if you have hundreds of
> > > hosts behind your firewall, what can you do to alias
> > > some of them to one ip, others to another and so on.
> >
> > See "man natd" about the following options for 1-to-1 NAT translation,
> which can
> > be put into /etc/natd.conf and processed automagicly when the machine
> boots:
> >
> >      -redirect_address localIP publicIP
>
> That's one trick. Do you use it in production? How many
> hosts do you have mapped this way? How do you get
> incoming traffic translated to the address it is meant
> for, not the last address?
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18e02bd30602161357p30dacd80tc03151a8d31fc87a>