<div dir="ltr">Thank you Sunil. You provided the missing piece to my understanding. Your explanation of how NetworkManager uses the LAN (shared interface type) to set dnsmasq thus changing the subnet for DHCP and DNS as well was exactly what I was looking for.<div><br></div><div>I went ahead and logged into Plinth using the WAN https entrypoint, set a single IP address and netmask, saved the changes, deactivated the LAN interface, activated again, and that was all I needed. All of the devices on my LAN picked up a new lease from the new subnet and everything works perfectly. </div><div><br></div><div>Thank you again!</div><div><br></div><div>Link</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 26, 2022 at 9:41 AM Sunil Mohan Adapa <<a href="mailto:sunil@medhas.org">sunil@medhas.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 1/26/22 05:04, Link Swanson wrote:<br>
> On a two-interface box with WAN + LAN interfaces, WAN having a public IP <br>
> from ISP, Freedombox sets up a default ipv4 IP for the LAN interface <br>
> with 10.42.0.1 and the default DHCP server hands out leases between <br>
> 10.42.0.10 and 10.42.0.254. This is great, but I need to change it.<br>
> <br>
> How do I change the LAN subnet? Say I need it to be something like, <br>
> e.g., <a href="http://192.168.1.0/24" rel="noreferrer" target="_blank">192.168.1.0/24</a> <<a href="http://192.168.1.0/24" rel="noreferrer" target="_blank">http://192.168.1.0/24</a>>. What steps should I take <br>
> to ensure that Freedombox LAN interface IP, DHCP services, and internal <br>
> DNS all switch over to using the 192.168.x.x network and no longer use <br>
> the 10.42.x.x network?<br>
> <br>
> Can I accomplish this from within plinth? If not, which conf files do I <br>
> change and/or which commands do I need to run with nmcli? Is there <br>
> anything to consider before making such a change?<br>
> <br>
<br>
Network Manager (which FreedomBox uses for all things related to network <br>
configuration) selects the subnet based on IP address assigned to the <br>
interface. "shared" type network connections (like the LAN interface you <br>
have) don't usually need to be IP addresses as NM choose from the 256 <br>
10.42.x.x/24 subnets automatically. However, if you assign an IP address <br>
like 192.168.0.1, NM will select that range <a href="http://192.168.0.1/24" rel="noreferrer" target="_blank">192.168.0.1/24</a> instead, <br>
which is what you want. And it will use that for IP address, DHCP and <br>
DNS by passing the appropriate parameters to dnsmasq. So, just set an <br>
IPv4 connection on that address. Of course, be sure to be connected via <br>
WAN while to do this change.<br>
<br>
If you need further tweaking (static assignments, bigger range, more <br>
leases) of dnsmasq behavior, then you can write a manual configuration <br>
file for it (to be used when NM spawns its own instance of dnsmasq). See <br>
the FreedomBox for Communities book[1] for an example.<br>
<br>
Links:<br>
<br>
- <br>
<a href="https://en.m.wikibooks.org/wiki/FreedomBox_for_Communities/Network_Configuration#Configuring_DHCP_Leases_and_Range" rel="noreferrer" target="_blank">https://en.m.wikibooks.org/wiki/FreedomBox_for_Communities/Network_Configuration#Configuring_DHCP_Leases_and_Range</a><br>
<br>
-- <br>
Sunil<br>
</blockquote></div>