Re: Configure NetBSD as a gateway for LAN hosts

2020-10-17 Thread Greg Troxel
Martin Husemann writes: > On Sat, Oct 17, 2020 at 04:39:47PM +0200, Rocky Hotas wrote: >> > In general it is best to get packet flow working first and then start >> > caring >> > about filtering, but with NAT this is tricky. >> >> Why is this tricky with NAT? Because when a request exits from

Re: Configure NetBSD as a gateway for LAN hosts

2020-10-17 Thread Martin Husemann
On Sat, Oct 17, 2020 at 04:39:47PM +0200, Rocky Hotas wrote: > > In general it is best to get packet flow working first and then start caring > > about filtering, but with NAT this is tricky. > > Why is this tricky with NAT? Because when a request exits from the > gateway, it exits from a port det

Re: Configure NetBSD as a gateway for LAN hosts

2020-10-17 Thread Rocky Hotas
On ott 13 12:08, Martin Husemann wrote: > With above routing table this should already happen - no concrete local subnet > matching, so it will pick "default". Yes, I tried and it does! > > With a routing table > > entry, or with a rule (the `pass stateful out all' in soho_gw-npf.conf) > > in npf

Re: Configure NetBSD as a gateway for LAN hosts

2020-10-13 Thread Martin Husemann
On Tue, Oct 13, 2020 at 12:01:17PM +0200, Rocky Hotas wrote: > I probably have no difficulties in configuring the routing as regards the > netbsd_gateway host itself. Something like: > > Internet: > DestinationGatewayFlagsRefs UseMtu > Interface > default

Re: Configure NetBSD as a gateway for LAN hosts

2020-10-13 Thread Rocky Hotas
On ott 12 13:55, John Nemeth wrote: > This is a very common configuration, so there is lots of > documentation on the Internet about how to do it. For NetBSD in > particular, take a look at the Guide: > > http://www.netbsd.org/docs/guide/en/ > http://www.netbsd.org/docs/guide/en/part-net.ht

Re: Configure NetBSD as a gateway for LAN hosts

2020-10-12 Thread John Nemeth
On Oct 12, 20:07, Rocky Hotas wrote: } } Thanks to your suggestions for a NIC (in particular, thanks to Martin: } Realtek worked), I configured a second NIC in a NetBSD 9.0 (release) } machine. } I would like to use it as a 1) gateway and 2) DHCP server, but didn't } find much documentation as rega

Re: Configure NetBSD as a gateway for LAN hosts

2020-10-12 Thread Rocky Hotas
On ott 12 14:55, Jason Mitchell wrote: > You have a choice between routing and bridging. [...] > b) Do NAT/PAT so that the modem only sees traffic coming from the NIC > 2 network In case of routing, I would prefer this solution, because I would like the modem only sees traffic coming from the N

Re: Configure NetBSD as a gateway for LAN hosts

2020-10-12 Thread Jason Mitchell
⁣Get BlueMail for Android ​ On Oct 12, 2020, 2:10 PM, at 2:10 PM, Rocky Hotas wrote: >Hello! >Thanks to your suggestions for a NIC (in particular, thanks to Martin: >Realtek worked), I configured a second NIC in a NetBSD 9.0 (release) >machine. >I would like to use it as a 1) gateway and 2) DH

Configure NetBSD as a gateway for LAN hosts

2020-10-12 Thread Rocky Hotas
Hello! Thanks to your suggestions for a NIC (in particular, thanks to Martin: Realtek worked), I configured a second NIC in a NetBSD 9.0 (release) machine. I would like to use it as a 1) gateway and 2) DHCP server, but didn't find much documentation as regards problem 1). Assume that the machine's