mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2024-12-27 10:30:23 +05:30
Pranav Jerry
d0389e5638
Added arg and config option to manually set gw_mode. When gateway_mode is auto, a temporary config will be added, and after a ten sec delay, naxalnet will check if systemd-networkd shows a 'routable' connection. If the connection is routable, gw_mode will be set to server; or client otherwise.
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# This configuration file is part of naxalnet.
|
|
# To configure this program, rename this file
|
|
# to naxalnet.conf and edit it.
|
|
# The values given here are defaults.
|
|
|
|
[networkd]
|
|
# systemd-networkd configuration files bundled with naxalnet.
|
|
# THese will be copied to runtimedir at runtime.
|
|
confdir = /usr/share/naxalnet/networkd
|
|
# systemd-networkd runtime configuration directory.
|
|
# See man:systemd.network(5)
|
|
runtimedir = /run/systemd/network
|
|
|
|
[device]
|
|
# These are better left this way
|
|
# Changing this won't do you any good, unless you have
|
|
# other network configs that would mess things up.
|
|
batman=bat0
|
|
bridge=bridge0
|
|
|
|
[gateway]
|
|
# This helps users choose the best network when multiple machines
|
|
# offer an internet connection, or to be more precise, a DHCP server
|
|
# Allowed values: auto, server, client or off
|
|
mode=auto
|
|
|
|
[adhoc]
|
|
# All your nodes should have the same name
|
|
name = NxMesh
|
|
|
|
[ap]
|
|
# An AP is started if your machine has more than one WiFi adapter.
|
|
ssid = MeshWiFi
|
|
# Note the spelling. It's passwd, not password.
|
|
passwd = naxalnet256
|