Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Hair pinning with pf and NetBSD



Joerg Sonnenberger wrote:
On Wed, Nov 25, 2009 at 10:03:17AM -0500, Brian A. Seklecki wrote:
See attached diagrams.  I think your customer is very very confused
about TCP/IP, but anyway.

Yeah. I think the easiest configuration is actually to just add the

1) Create a lo1 or alias on lo0 inteface with a /32 of the public
   IP address
2) Create a static route on each machine, for the public /32, via the
   private /32 (in the /24 or whatever)

e.g.:

machine1$ sudo ifconfig lo1 create
machine1$ sudo ifconfig lo1 inet 129.144.100.100 netmask 255.255.255.255 up

machine2$ sudo route add -host 129.144.100.100 192.168.100.100

And vice-versa.

~BAS


public address of each machine as alias with /32 and use normal routing.

Joerg



Home | Main Index | Thread Index | Old Index