On 2020-12-02 09:52:53, Stuart Henderson wrote:
> On 2020-12-01, [email protected] <[email protected]> wrote:
> > Is it possible? Or am I imaging things and it's better to do it with
> > dhcp/pf routing? If it's possible to do with vlans on layer2, then
> > what am I suppose to look for? I can read man pages, but honestly
> > I don't really know how to approach that problem, so some keywords,
> > programs, rfcs would be nice to have:)
> 
> If they were wired ethernet interfaces then you could do this directly
> with bridge. But bridge needs an ethernet-type layer 2 interface.
> 
> The LTE devices are a layer 3 type interface so this would need to be
> routed (and usually also natted, unless you have a fancy provider that
> can route a block of addresses to it).
Yeah.. I didn't think about that.

> With wifi, an AP often works by bridging to ethernet and that is OK,
> but when connecting a wired device behind a wireless client there are
> problems. The standard frame format has source/destination/AP MAC
> addresses, but for "client bridge" to work it needs a fourth so it
> can pass on the MAC address of the wired client. APs that support
> WDS mode can cope with this, but OpenBSD doesn't have support for
> this, either in client or in AP mode.
> 
> So normally you'll need to use routing and possibly NAT to have
> OpenBSD connect a wired client to a wifi interface.
You made me realize that forcing it do be done on layer2 is way
more complicated and hacky than simple NAT with redirect all, to
specific vlan. NAT is simpler, more clean, and I probably will
still be able to perform good packet queueing and redundancy
on main router. RPI4 should have enough power to forward two
networks that will probably never get faster than 20Mbps each.

Thanks for explanation and opening my eyes:)

-- 
.-----------------.-------------------.---------------------.------------------.
| Michal Lyszczek | Embedded C, Linux |   Company Address   |  .-. open source |
| +48 727 564 419 | Software Engineer | Leszczynskiego 4/29 |  oo|  supporter  |
| https://bofc.pl `----.--------------: 50-078 Wroclaw, Pol | /`'\      &      |
| GPG FF1EBFE7E3A974B1 | Bits of Code | NIP:  813 349 58 78 |(\_;/) programer  |
`----------------------^--------------^---------------------^------------------'

Attachment: signature.asc
Description: PGP signature

Reply via email to