Linksys AC Series Router Configuration Tips for OpenWRT: Difference between revisions

mNo edit summary
Line 1,371: Line 1,371:


But also keep in mind the settings changes in the /etc/init.d/dhcpd startup script only affect the DHCPD service.  The /etc/resolv.conf File still derives its settings from the /etc/config/dhcp File when the DHCPD service is restarted or the router is rebooted (same for DNSMASQ).  IE, the /etc/config/dhcp File should not be completely dismissed as useless.
But also keep in mind the settings changes in the /etc/init.d/dhcpd startup script only affect the DHCPD service.  The /etc/resolv.conf File still derives its settings from the /etc/config/dhcp File when the DHCPD service is restarted or the router is rebooted (same for DNSMASQ).  IE, the /etc/config/dhcp File should not be completely dismissed as useless.
==== Restricting the DHCPD Service to only Answer / Listen on Desired Interfaces ====
To restrict the DHCPD service to a specific interface, edit the /etc/init.d/dhcpd file, scroll way down to the start_service section, and look for the following line;
* procd_set_param command $PROG -q -f -cf $config_file -lf $lease_file $dhcp_ifs
Change it in similar manner to the below examples;
*    procd_set_param command $PROG WhatEverAdapterName WhatEverOtherAdapterName -q -f -cf $config_file -lf $lease_file $dhcp_ifs
*    procd_set_param command $PROG eth0.1 br-LAN1_1 -q -f -cf $config_file -lf $lease_file $dhcp_ifs
Many sites suggest that creating a blank / empty zone for the subnet (on a multi-homed device) will make it so DHCPD doesn't answer for those interfaces.  But testing has prooven otherwise.  The below settings in /etc/dhcpd/dhcpd.conf will '''''00000000000000000000000000''''' prevent the DHCPD service from answering on the interface associated with the W.X.Y.Z IP Address;<syntaxhighlight lang="text">
subnet W.X.Y.Z netmask 255.255.255.0 {
}
</syntaxhighlight>The Edit Network Interfaces Button and Interfaces File Type setting in Webmin will not work with OpenWRT.


====Special Note====
====Special Note====
Line 3,776: Line 3,791:
hostnet_list=
hostnet_list=
</syntaxhighlight>Items such as dhcpd_version can be modified to reflect whatever version of DHCPD is available in the future.  No modifications need to be made to the /overlay/webmin/dhcpd/module.info (assuming the root path of Webmin is /overlay) file as this Module seems to be compatible with every version of DHCPD on every Linux distribution.
</syntaxhighlight>Items such as dhcpd_version can be modified to reflect whatever version of DHCPD is available in the future.  No modifications need to be made to the /overlay/webmin/dhcpd/module.info (assuming the root path of Webmin is /overlay) file as this Module seems to be compatible with every version of DHCPD on every Linux distribution.
The Edit Network Interfaces Button and Interfaces File Type setting in Webmin will not work with OpenWRT.


====Samba Server Webmin Module (/etc/webmin/samba/config)====
====Samba Server Webmin Module (/etc/webmin/samba/config)====