NetBSD-Users archive

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

Re: NPF single NIC & NAT



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.

/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

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