NethServer / nethsecurity

NethSecurity image and build environment
https://www.nethsecurity.org/
Other
90 stars 6 forks source link

Custom dns for hotspot #635

Closed Tbaile closed 2 days ago

Tbaile commented 1 week ago

Sometimes we need to change default dns for the hotspot (defaults are Opendns ones: 208.67.220.220 and 208.67.222.222). This is currently not supported, but it should be quite fast to do (no UI, only command line action for now).

The template file /opt/icaro/dedalo/template/chilli.conf.tpl already supports custom dns, we just would need to write the config file /var/dedalo/config where variables are taken.

I propose to use 2 new props in the dedalo db :

These props should write the /var/dedalo/config this way: HS_DNS1 ="dns1" HS_DNS2 ="dns2"

Additional considerations that took place during implementation:


Refs:

github-actions[bot] commented 1 week ago

Testing image version: 8-23.05.3-ns.1.1.0-26-g31270c6

gsanchietti commented 1 week ago

I followed the documentation. After executing the commands, the DNS are updated:

grep '^dns' /var/dedalo/chilli.conf 
dns1            "1.1.1.1"
dns2            "8.8.8.8"

Verified