Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2007 15:54:19 -0500
From:      JD Bronson <jbronson@sixcompanies.com>
To:        freebsd-questions@freebsd.org
Subject:   pppoe (userland PPP) and nat 'loopback'
Message-ID:  <200705172054.l4HKsNtU000521@cheyenne.sixcompanies.com>

next in thread | raw e-mail | index | archive | help
Can this be configured?

What I need is a way to go from one LAN machine to the WAN and
loopback to the other LAN machine.

LAN->WAN->LAN

simple pf.conf:

binat on $bge1 from 192.168.82.170 to any -> 67.x.x.1
binat on $bge1 from 192.168.82.171 to any -> 67.x.x.2
binat on $bge1 from 192.168.82.172 to any -> 67.x.x.3
binat on $bge1 from 192.168.82.173 to any -> 67.x.x.4
and so on.

I need to use 192.168.82.172 to go and connect to public
67.x.x.2  then loop back to 67.x.x.1


Why do I need this? - I run 2 external DNS servers (with views) and
as such NS2 needs to talk to NS1 but using the WAN NAT loopbacks.

thanks in advance for any tips.

-JD




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