Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2007 09:13:52 +0700
From:      Vasily Ivanov <freebsdpf@academ.org>
To:        freebsd-pf@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: how 2 address&port map outbound traffic to multiple/different IPs on a single intfc?
Message-ID:  <200706130913.53526.freebsdpf@academ.org>
In-Reply-To: <70f41ba20706111920x2e9e2d71ma2bcb3dd074daa60@mail.gmail.com>
References:  <70f41ba20706111920x2e9e2d71ma2bcb3dd074daa60@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello.

On 12 June 2007 09:20, snowcrash+freebsd wrote:
[- snip -]

> (2) from the POOLS discussion, 'simple' outbound NAT:
>
> 	nat on $ext_if from z.z.z.102 port 25 to any -> ($ext_if)
> 	nat on $ext_if from z.z.z.102 port 25 to any -> ($ext_if)
>
> doesn't do it either - i dno't think -- as $ext_if picks up the
> "primary IP" assigned via the pppoe startup, x.x.x.1.

You can specify required IP explicitly, like 

	nat on $ext_if from z.z.z.102 port 25 to any -> x.x.x.2

You don't even need aliases on interface (at least it works for my ethernet 
connection, dunno about pppoe). Just make sure your upstream routes traffic 
to your x.x.x.x/29 into your box.

>
> so, i think i'm in the right ballpark with *nat of some sort, but how
> do i get this done correctly?
>
> cheers!
> _______________________________________________
> freebsd-pf@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-pf
> To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org"

-- 
wbr, 
Vasily
http://www.academ.org
mailto: <freebsdpf@academ.org>



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