Gateway support #15
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Depends on
#18 Set gateway mode automatically
pranav/pybatmesh
Reference: pranav/pybatmesh#15
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
B.A.T.M.A.N. has a feature called gateway mode which is useful when there are two or more nodes having internet access. This mode allows other nodes to connect to the internet via the fastest node, while also preventing multiple DHCP replies.
We could use naxalnet.conf to configure it
How about we add
mode=auto
innaxalnet.conf
which will check for internet access without bat0, and if there is internet access, set mode toserver
, or toclient
otherwise.If we implement this, we have to think of some way to find out if any of the ethernet ports is bridged to a DHCP server.
I'm working on this on a branch
gateway
.My idea is to use a temporary networkd
*.network
based on the bridge0 config file and replaceName=bridge0
in[Match]
withen*
andeth*
. Then reload networkd and then check if any of them isroutable
. If any of them is routable, set gateway mode in batman-adv to server; else set it to client.Implemented auto gateway mode. This is now the default. This can be configured with
Pull request #18 was merged. Closing this issue.