n2n/doc/Bridging.md
Dylan Yee e01daf4a85
support linux l2 bridge (#1044)
* support linux l2 bridge

* unified timeout name

* typo

* minor code style adaptions

* feature define

* feature define

* feature define

* feature define

* added hint to bridging to help output

* added hint to bridging

* drafted bridging documentation

* added bridging hint

---------

Co-authored-by: Logan oos Even <46396513+Logan007@users.noreply.github.com>
2023-05-04 11:00:38 +08:00

803 B

Bridging (Linux)

General Remarks

edges can be part of network bridges. As such, n2n can connect otherwise un-connected LANs.

How To Use with brctl

... requires -r ... general syntax ... one example connecting two remote sites' LANs, including commands

How it works

... remembers peer info MAC ... ageing ... internal MAC replaced inside usually encrypted packet data (no disclosure then) ... initial learning

Broadcasts

... note on broadcast domain

Compile Time Option

The -roption at edge does not differentiate between the use cases routing and bridging. In case the MAC-learning and MAC-replacing bridging code interfers with some special routing scenario, removal of the #define HAVE_BRIDGING_SUPPORT from /include/n2n.h file disables it at compile time.