Re: A single-board computer for NetBSD

2016-11-18 Thread Hal Murray

marti...@gmail.com said:
> I think of creating a simple router for home use with NetBSD. Just for fun.
> I imagine a single board printed circuit with passive cooling, with 2+ 100+
> Mbit/s ethernet ports and maybe a vga port too.  A Raspberry Pi sort of
> thing, but maybe not exactly that..  Hmm, some olimex board might be nice
> maybe..

> Can someone give me an advice wrt.  which HW to buy so that it will happily
> run some of the recent NetBSD releases? 

The low cost approach is to plug a USB Ethernet adapter into something like a 
Raspberry Pi.  That may not be good enough if you are after high throughput 
but it's probably good enough since you only asked for 100 megabit.

There are quite a few Mini-ITX boards with 2 LANs.  But then you have to get 
RAM, disk, and a case so the total price won't be cheap.  For more info, 
google for >Mini-ITX dual LAN<.  They are mostly "real" PCs with typical IO 
connectors.  The LANs will probably be gigabit.  They will be good for a lot 
more than just a home router.

They will run a lot cooler if you get a case that stands up on its side.  You 
can also add a tiny fan that makes almost no noise except during the first 
few seconds during boot.  SSDs will run cooler.

Another approach is to plug a PCI Ethernet card into a old PC if you have one 
that is quiet enough.



-- 
These are my opinions.  I hate spam.





Re: A single-board computer for NetBSD

2016-11-18 Thread Eric Garver
On Sat, Nov 19, 2016 at 04:14:32AM +0100, Martin Cermak wrote:
> Hello guys,
> 
> I think of creating a simple router for home use with NetBSD.
> Just for fun.  I imagine a single board printed circuit with
> passive cooling, with 2+ 100+ Mbit/s ethernet ports and maybe
> a vga port too.  A Raspberry Pi sort of thing, but maybe not
> exactly that..  Hmm, some olimex board might be nice maybe..
> 
> Can someone give me an advice wrt.  which HW to buy so that it
> will happily run some of the recent NetBSD releases?

I'm using an Odroid-C1+ as my home router. Quite happy with my setup.
See blog post linked below.

Eric.

http://erig.me/blog/201606261300/My-Home-Network.html


A single-board computer for NetBSD

2016-11-18 Thread Martin Cermak
Hello guys,

I think of creating a simple router for home use with NetBSD.
Just for fun.  I imagine a single board printed circuit with
passive cooling, with 2+ 100+ Mbit/s ethernet ports and maybe
a vga port too.  A Raspberry Pi sort of thing, but maybe not
exactly that..  Hmm, some olimex board might be nice maybe..

Can someone give me an advice wrt.  which HW to buy so that it
will happily run some of the recent NetBSD releases?

Thanks,
Martin



Re: IPv6 routing(?)

2016-11-18 Thread Jan Danielsson
On 2016-11-18 22:44, Robert Elz wrote:
[---]
>   |What do I need to do to make it respond to such requests?
> 
> You don't want it to, just assign your addressing rationally, rather than
> attempting to cram the world into one /64 (copying horrid IPv4 required hacks)
> and I suspect it will all be OK.
> 
> Assign a different /64 to your LAN (from the same /48).

   After getting over the initial "How dare he imply I have an IPv4
fetish?!" shock, I thought about it and you're completely right:  I've
been thinking in terms of IPv4.

   I stopped trying to shoehorn.  It works now.

   Thanks to everyone who contributed toward helping me break the IPv4
chains.  IPv6 ftw.

   /Jan


Re: Setting up IPv6

2016-11-18 Thread Robert Elz
Date:Fri, 18 Nov 2016 20:47:05 +0100
From:Rhialto 
Message-ID:  <20161118194704.gi21...@falu.nl>

  | Looking at /etc/rc.d/rtadv, I think it was this line that causes the
  | issue:
  | 
  | cp "$conf" "$chdir$conf"

Ah.  OK, never thought of looking there ...  that's a bug, will fix.

kre




Re: IPv6 routing(?)

2016-11-18 Thread Robert Elz
Date:Fri, 18 Nov 2016 17:32:47 +0100
From:Jan Danielsson 
Message-ID:  


  |So what happens is that the echo request is sent out from my host
  | (say it has address X), then I see then Cisco modem (ISP's equipment)
  | make a Neighbor Solicitation for the address X, but my NetBSD router
  | (which knows about address X according to "ndp -a") never replies.

Nor should it, it doesn't own the address.

  |What do I need to do to make it respond to such requests?

You don't want it to, just assign your addressing rationally, rather than
attempting to cram the world into one /64 (copying horrid IPv4 required hacks)
and I suspect it will all be OK.

Assign a different /64 to your LAN (from the same /48).

kre




Re: Setting up IPv6

2016-11-18 Thread Rhialto
On Fri 18 Nov 2016 at 12:11:38 +0700, Robert Elz wrote:
> If something is failing to work when the file is not there, I'd call that
> a bug (especially if an empty file works - requiring file to exist, but
> allowing it to be empty, to supply config info, would be simply perverse.)

Looking at /etc/rc.d/rtadv, I think it was this line that causes the
issue:

cp "$conf" "$chdir$conf"

where $conf is the missing file to copy into a chroot directory. I can't
try that out on my server atm though.

So strictly speaking the manual is correct in that the file is
optional, but some support stuff around it isn't careful enough.

> kre
-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/xs4all.nl-- are condemned to reinvent it. Poorly.


signature.asc
Description: PGP signature


Re: IPv6 routing(?)

2016-11-18 Thread Jan Danielsson
On 2016-11-18 03:35, Andy Ruhl wrote:
[---]
> Packets going out but not coming back seems to be the key.

   Exactly, and ..

> IPv6 likes to have ICMP enabled for path mtu discovery, might look into that.

   .. I think you're on to it here.

   So what happens is that the echo request is sent out from my host
(say it has address X), then I see then Cisco modem (ISP's equipment)
make a Neighbor Solicitation for the address X, but my NetBSD router
(which knows about address X according to "ndp -a") never replies.

   The issue seems to be that the router isn't acting as an "NDP proxy"
(analogous to an ARP proxy in IPv4, I assume).

   What do I need to do to make it respond to such requests?  Linux
appears to have a sysctl knob called net.ipv6.conf.all.proxy_ndp, is
there such a thing for NetBSD?  I looked through the sysctl list, but
couldn't find any obvious candidates.

   (NetBSD/amd64 -7).

> Also wondering if there is some issue receiving traffic, like you're
> firewalled? If you don't see ping replies they could be getting
> dropped before you can see them. Woud be nice to confirm by sniffing
> the outside interface somehow.

I'm using npf on my NetBSD router, but it's configured to allow
everything currently, so it shouldn't be an issue.

   /Jan