foris-controller issueshttps://gitlab.nic.cz/turris/foris-controller/foris-controller/-/issues2022-11-08T18:46:09+01:00https://gitlab.nic.cz/turris/foris-controller/foris-controller/-/issues/220The country setting from reForis is not applied to the Wi-Fi cards2022-11-08T18:46:09+01:00Stepan RechnerThe country setting from reForis is not applied to the Wi-Fi cardsBecause of different wireless regulations in different countries, it is needed to adapt the Wi-Fi frequency range according to the placement of the router ([i.e. in Germany](https://en.wikipedia.org/wiki/List_of_WLAN_channels#Germany)). ...Because of different wireless regulations in different countries, it is needed to adapt the Wi-Fi frequency range according to the placement of the router ([i.e. in Germany](https://en.wikipedia.org/wiki/List_of_WLAN_channels#Germany)). Nevertheless, reForis allows choosing a channel, which is not allowed in the country set up at the "Region and Time" tab, or the `auto" option sometimes chooses a forbidden channel. It looks like the global region setting is not sent to the Wi-Fi cards themselves:
```
root@turris:~# iw reg get
global
country DE: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
(5725 - 5875 @ 80), (N/A, 13), (N/A)
(57000 - 66000 @ 2160), (N/A, 40), (N/A)
phy#1
country US: DFS-FCC
(2400 - 2472 @ 40), (N/A, 30), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5350 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
(5470 - 5730 @ 160), (N/A, 23), (0 ms), DFS
(5730 - 5850 @ 80), (N/A, 30), (N/A)
(57240 - 71000 @ 2160), (N/A, 40), (N/A)
phy#0
country US: DFS-FCC
(2400 - 2472 @ 40), (N/A, 30), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5350 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
(5470 - 5730 @ 160), (N/A, 23), (0 ms), DFS
(5730 - 5850 @ 80), (N/A, 30), (N/A)
(57240 - 71000 @ 2160), (N/A, 40), (N/A)
```https://gitlab.nic.cz/turris/foris-controller/foris-controller/-/issues/211Remote creates files under root2022-10-19T06:33:09+02:00Josef SchlehoferRemote creates files under rootSince OpenWrt 21.02, mosquitto runs under its own user, thus means it is no longer uses root and mosquitto can not read root files.
It fails with following error:
```
Error: Unable to load server key file "/etc/ssl/ca/remote/01.key". Ch...Since OpenWrt 21.02, mosquitto runs under its own user, thus means it is no longer uses root and mosquitto can not read root files.
It fails with following error:
```
Error: Unable to load server key file "/etc/ssl/ca/remote/01.key". Check keyfile.
```
It helps to chown all files in remote folder as mosquitto and then it works.
Supersedes issue: https://gitlab.nic.cz/turris/os/build/-/issues/2892022-08-19https://gitlab.nic.cz/turris/foris-controller/foris-controller/-/issues/161Support IPv6 relay mode2022-11-08T18:49:56+01:00Karel KociSupport IPv6 relay modeWe should add support for IPv6-relay mode for cases when upstream router or ISP provides only IPv6 SLAAC.
Configuration is simple enough. In `dhcp` configuration such as this is required following settings:
```
config dhcp 'lan'
...We should add support for IPv6-relay mode for cases when upstream router or ISP provides only IPv6 SLAAC.
Configuration is simple enough. In `dhcp` configuration such as this is required following settings:
```
config dhcp 'lan'
....
option ra 'relay'
option dhcpv6 'relay'
option ndp 'relay'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
option dhcpv6 'relay'
option ra 'relay'
option ndp 'relay'
option master '1'
```
In words the change is addition of `ra/ndp/dhcpv6` setting to both `lan` and `wan`. It is important also to set master side and it is of course going to be `wan` side.
With this setting I am able to get IPv6 address even if I disable request for prefix on `wan`.Foris-controller 5.x