oakestra / oakestra-net

Networking component of Oakestra
Apache License 2.0
5 stars 7 forks source link

tuncfg.json is not used in setup #160

Closed smnzlnsk closed 3 months ago

smnzlnsk commented 5 months ago

Short

tuncfg.json is not used for tunnel setup of netmanager

Proposal

The tuncfg.json is copied to /etc/netmanager/ by the install.sh script. On first impression, this configuration file sets the defaults for the tunnel to be set up by the netmanager, however, instead the netmanagers proxyTunnel is set up using os.getenv - so environment variables, which are not necessarily set up by the developer/host. This renders the file useless.

Solution

Change the netmanager proxy tunnel setup to read configuration defaults from /etc/netmanager/tuncfg.json or remove it from the setup and document it to use environment variables.

Status

Looking for feedback

Checklist