NetBSD-Users archive

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

Re: NPF single NIC & NAT



In Message <20160627095815.56E17115364%xen1.duzan.org@localhost>,
   "Gary Duzan" <gary%duzan.org@localhost>wrote:

=>In Message <loom.20160626T181533-226%post.gmane.org@localhost>,
=>   Ryan Brackenbury <ryan.brackenbury%gmail.com@localhost>wrote:
=>
=>=>Hopefully someone can shed some light on what I'm doing wrong - and 
=>=>hopefully there is a way to do this that doesn't require a second NIC.
=>
=>   I can't speak to the NPF issue, but you could try using a vlan interface
=>between your servers as a workaround.

   Drat, got the addresses backwards:

=>/etc/ifconfig.vlan0:
=>create
=>vlan {vlan-id} vlanif ale0
=>inet 172.16.0.2
=>!route add -host 172.16.0.3 192.168.0.3
!route add -host 192.168.0.3 172.16.0.3

   And this assumes you aren't using the 172.{16..31} range for anything else.

					Gary


=>and something similar on the opposite end. I do something like this
=>at home, but inverted, putting external traffic on a vlan (via a
=>hardware switch) and routing it out on the native interface.
=>
=>   Good luck.
=>
=>				Gary Duzan
=>
=>


Home | Main Index | Thread Index | Old Index