You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi billz,
there is an inconsistency of the creation of the file /etc/dhcpcd.conf, which can result in problems with the AP functionality as well as the client connection.
/etc/dhcpcd.conf is written by includes/hostapd.php as well as by ajax/networking/gen_int_config.php. The first writes to dhcpcd.conf, when the hotspot settings are saved and the latter, when settings for a network interface are saved. The 2 function do not respect the output of the other, so they just overwrite the content of dhcpcd.conf. Therefore it depends on the order of the calls, what is actually stored in dhcpcd.conf.
I fixed this for me now, but its just a quick hack to get my setup with two wlan cards going. A consistent solution, probably a single function called for both cases, is needed.
There is another issue in get_int_config.php: in my case the file "defaults" is read last, which puts the settings of the interfaces (e.g. static ip assignment) in front of the default settings. This disables the dhcpcd defaults and leads to the effect, that the uplink dns servers are no longer used by dnsmasq. Only the statically assigned dns servers are still available.
I fixed this by putting $strConfFile = file_get_contents(RASPI_CONFIG_NETWORKING.'/defaults')."\n";
in front of the foreach loop and removing the else statement, which handles the defaults file.
Best
Christian
The text was updated successfully, but these errors were encountered:
Hi billz,
there is an inconsistency of the creation of the file /etc/dhcpcd.conf, which can result in problems with the AP functionality as well as the client connection.
/etc/dhcpcd.conf is written by includes/hostapd.php as well as by ajax/networking/gen_int_config.php. The first writes to dhcpcd.conf, when the hotspot settings are saved and the latter, when settings for a network interface are saved. The 2 function do not respect the output of the other, so they just overwrite the content of dhcpcd.conf. Therefore it depends on the order of the calls, what is actually stored in dhcpcd.conf.
I fixed this for me now, but its just a quick hack to get my setup with two wlan cards going. A consistent solution, probably a single function called for both cases, is needed.
There is another issue in get_int_config.php: in my case the file "defaults" is read last, which puts the settings of the interfaces (e.g. static ip assignment) in front of the default settings. This disables the dhcpcd defaults and leads to the effect, that the uplink dns servers are no longer used by dnsmasq. Only the statically assigned dns servers are still available.
I fixed this by putting
$strConfFile = file_get_contents(RASPI_CONFIG_NETWORKING.'/defaults')."\n";
in front of the foreach loop and removing the
else
statement, which handles the defaults file.Best
Christian
The text was updated successfully, but these errors were encountered: