Re: Can Network Manager be used for router-type configurations?

On Sat, 2018-03-31 at 08:38 +0100, Nick Howitt wrote:

On 31/03/2018 02:52, A. F. Cano wrote:
On Mon, Mar 19, 2018 at 10:55:07AM +0000, Nick Howitt wrote:
I currently use ClearOS which is a CentOS derivative which can
as a full internet gateway and does not use Network Manager. I've
been trying to evaluate Network Manager in Centos 7.4 to see if
can be used in ClearOS to manage the interfaces and so far I've

Since no one has replied...  I'm running a Freedombox on an apu1d4
(a small low power single board computer with 3 ethernet
and it uses Network Manager.  The FreedomBox software

makes it easy to set up a gateway/firewall system that is secure
and offers many other services so it's also a home server.

The FreedomBox software handles a lot of the details you ask about,
but you might also have to customize depending on your specific
requirements if they differ from what the FreedomBox is designed
to do in its default mode.

Maybe not what you want but it's an option.

Thanks for the reply. I am currently using ClearOS 7.4 on a homebrew
and it can do it as well but it does not use Network Manager. I hear 
that they would like to use network manager when v8 is released as 
upstream (Centos/RHEL) do, so I thought I'd investigate and I could
find out how to do various things in nm:


In NetworkManager, this is all enabled by ipv4.method=shared and

For IPv4, it means to run a DHCP server. For IPv6, it means to do
prefix delegation.

But note that this is meant as something that works nicely, out of the
box, without many knobs. It is not the most flexible way to configure a
router, but rather to quickly share your internet with another machine.
Maybe that is suitable for you, maybe not. If not, we'd like to hear
what you'd suggest to improve.

1 - change the DHCP server range of addresses for a Wireless Hotspot

You can do that by configuring a static/manual IP address. That address
is assigned to the router, and the same subnet is shared. Explained in
`man nm-settings`. 

2 - get WPA/PSK to work on the hotspot (it would configure bit not

Not sure what you are doing. WPA/PSK hotspot works for me with NM.

3 - add other DHCP options to the Hotspot DHCP server

That is not really possible. Note that ipv4.dns (for nameservers) and
ipv4.searches (for DNS searches) is honored. NM spawns a dnsmasq
instance as DHCP server. See
for the option that it passes. Also not, it passes 
to dnsmasq, so you might put there additional configurations.

4 - Configure a wired LAN interface (as opposed to WAN interface)
with a 
fixed IP and a DHCP server

Works exactly the same as for Wi-Fi. Confiugre the ethernet profile
with ipv4.method=shared and ipv6.method=shared respectively.


Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]