Samba AD network - differences and recommendations?

Yesterday I started migrating a Nethserver 7 to NETH8. Before “finishing” the SAMBA/AD migration, I was asked which network (or which IPv4) I wanted to use for this (for the future AD or the transfer). The options were the IP or host network of the NETH8 host (192.168.88.x(/24)) or the IP or network of the cluster (10.88.0.1(/24)).

To ensure that the transfer did not fail (it takes long enough), I instinctively chose the local host network - its accessibility had been checked. The transfer is still running, but the AD now seems to be accessible (including the user shares)

Today I installed another completely new NETH8 (without migration) as a test and created an AD there. I noticed that its IP comes from the local cluster network by default.

Now I’m not sure whether I was wrong with my selection during the migration (host network) and whether I should have chosen the cluster network instead? I

I would like a configuration where problems don’t arise later due to this “special” decision or where I don’t have to expect any restrictions. For example, I think it would be difficult to move the AD to another node with the host network address.

Can this be changed later? Or do I have to go back to that point in the migration?

Regards
Yummiweb

@yummiweb

Do not have unnecessary worries, you are on the right path.

An AD must be accessible to computers willing to join, and that’s ONLY possible using the hosts IP.

If this is a cloud server, and only Apps need AD authentification, then you can use the Cluster VPN IP 10.x.x.x…

My 2 cents
Andy

Now I’m confused. An AD with a cluster IP can be reached within the cluster (apps), but certainly from outside the cluster via (local) host IP and port, which are then passed on “inwards”. And the AD should of course be able to process “external” as well as “internal” requests. The NETH8 has been able to do this so far.

In this respect, both ADs (regardless of whether with a host network IP or cluster IP) would be accessible “externally”, but an AD with a host network IP would possibly no longer be accessible from the cluster network (another node) without contortions.

Moreover, with a host network IP for the AD, the big advantage would be lost that the AD connection to the cluster IP would stand in the way of moving to another host network. Up to now, changing the AD IP has always been discouraged.

If I have the choice (still have), I would prefer to use the cluster IP for the AD. Hence my question as to whether this can be changed without any problems or whether I have to go back to the last step. I have to make this decision right now.

As I said, the only correct way is to use the hosts IP.
ALL Apps on NS8 are always accessible via the cluster networlk.

If it’s not exposed, it won’t “listen” to that IP.

A Windows PC will not be able to join via Cluster Network…

I have about 10 NS8 ADs working well this way.

My 2 cents
Andy

Thank you for your answer. Just to make sure we are both talking about the same thing, here are the screenshots:

Freshly installed Nethserver 8 with AD, the AD uses (natively) the cluster IP.

And here is the Nethserver 8 installed yesterday with an AD taken over from Nethserver 7:

I’m sure this won’t cause any problems now, but maybe in the later scenarios I described.

Regards Yummiweb

You say that a Windows PC cannot join an AD in the cluster network? Why is that the standard configuration in NETH8?

I assume that we mean different things. I am talking about the IP that the AD uses internally, and that is now one from the cluster network. I am convinced that the AD can still be reached via the host address.

It may be reachable via the external IP.
I don’t play games, I need this professional.
The host IP is the correct one to use!

If it can be reached by IP does NOT mean the service (AD here) will respond to “names” (DNS names or NetBIOS).

But AD needs names to work.

As an example.

Using File-Server on NS8:

The name of the host will NOT work, even if entered in DNS.
But using the AD name will work right away!

Both have entries pointing to the Host name of the NS8 node.

I do not know. I have pointed out several bad points of AD here, but so far not much more than “it’s coming”…

:frowning:

Some “Productive” Servers AD:

The last one is NOT migrated.
This is a fresh Install.

And I have in my entire professional life NEVER had a machine tell me what IP I am to use.
I tell a machine what IP it has to use, and that’s the way things are.
After all, I am root, the mashine has to obey!

My 2 cents
Andy

1 Like

Dear Andy, thank you for your advice.

What I would be interested to know:
Were your examples all Nethserver 7 migrations or did they also include newly installed NETH8 AD? Because newly installed ADs are apparently always set up with their cluster IP.

I had not yet connected Windows clients to the new AD with new NETH8 installations, but I did have external (non-NETH8) Nextcloud installations (LDAP), for example. At least there it worked without a problem.

I would therefore like to assume that I can also use the host IP with the current NETH8 to reach the AD, even if the AD uses a cluster IP internally. I would be surprised if it were anything else, because why assign the AD a cluster IP internally by default if the AD is then no longer accessible via the host IP?

It may be better to leave an AD with connected Windows clients on the previous IPs during migration for reasons of simplicity. In this case there are no Windows clients and I would like to take the “standard route” for various reasons.

But the migration just failed anyway.

So this time I’ll go the other way and see what happens. I just have to outsource the large data folder first because unfortunately there is no content-selective migration.

Regards
Yummiweb

Addendum:

I always used the AD name for the LDAP clients. You never know what will be passed through from such a query, perhaps similar to the reverse proxy. Although ad.domain.tld already works with LDAP, Windows probably wants to have a number of AD names resolved.

Therefore, the local DNS forwards everything that ends in “/*.ad.domain.tld” to the internal DNS of the Nethserver. At least with Nethserver 7 it worked that way.

Regards
Yummiweb

Not quite true…

It’s true that the NS8 AD Setup will display the Cluster IP first.
It’s also true that a non migrated NS8 AD will be called DC1 by default.

This is an absolute No-Go for me.
I design and plan each and every one of my client networks, down to which IP is used for what kind of host.

And I did not write a paper about Naming Conventions for Hosts in a network to let a basic computer without a single jota of intelligence telling ME what I should do? No, I’m no fan of AI, but a machine with absolutly NO intelligence does NOT tell me what to do!

And I refuse to follow “stupid” suggestions, like NethSecurity 's default IP of 192.168.1.1 - an IP which no one should ever use!
I dare say the programmer who wrote that stupid pre-defination has less than a third my network experience…

(Why? Any router a co-worker - or your son - buys in a shop will probably use exactly that IP. This would typically cause an IP conflict, meaning no Internet at hpme, no DHCP or DNS working…)

My 2 cents
Andy

From here:
https://www.reddit.com/r/sysadmin/comments/ag9nyp/ip_addressesranges_to_avoid_on_your_lan/?rdt=52400

Also:
Dell iDRAC on 192.168.0.120
SonicWall 192.168.168.168
Fritzbox 192.168.178.x
lots more… :slight_smile:

This is absolutely correct!

Sorry, I had overlooked that.

1 Like

There are more non migrated NS8, but I don’t have access to some at the moment…

:slight_smile:

I think because it’s the more secure setting.
It seems you just missed to enable the file server. There’s a info message that it will be configured with the VPN IP:

If you enable the file server, you can choose the IP:

To force an IP change for the instance samba1:
See also NethServer 7 migration — NS8 documentation

api-cli run module/samba1/set-ipaddress --data '{"ipaddress":"192.168.1.123"}'

If you set the samba IP to the host IP address, the fileserver link is shown and the samba icon should be visible again after a browser refresh.
To hide the file server just set the samba IP back to the wireguard VPN IP.

2 Likes

@yummiweb

With 2 exceptions, all my NS8 are running on Debian 12 in Proxmox, all setup usig the quick single disk method. Debian 12 will allocate a measly 1 GB Swap partition - not enough.

I want 8, or better 16 GB Swap for my servers.

And as said, I define the network and I define the hosts in my network…
All have 16 GB or a bit more…

:slight_smile:

My 2 cents
Andy

1 Like

I completely agree with you that you shouldn’t leave the choice of names, networks and IPs to the machine. For me, this is also a question of clarity.

However, I see things a little more differently with regard to the internal AD IP. This is only determined by external factors in that it comes from the cluster network (which I chose myself) and currently ends in “1”. As long as I can reach the AD via a local host IP (which I hope), I shouldn’t care about the internal IP, just as I don’t have to care about the other internal IPs of the other containers/apps because the orchestrator sets them. As long as the containers/apps are externally accessible, I can live with it. Here I’m more concerned that resorting to a local IP scheme will limit me, because the option of moving the host or container (perhaps the AD?) could perhaps be easier with a container IP on the AD than with an AD tied to the respective host network. Or am I making a mistake here? In any case, I don’t want to limit myself to the options that are obviously still being developed.

But I agree with you overall that more local IPs (or more NICs if necessary) would open up more possibilities and that NETH8 is already very “patronizing” in several places where it really bothers and basically doesn’t need to be there. But I’ve obviously decided to bite the bullet otherwise I wouldn’t be asking here. If the migration is successful, the apple will have time to ripen again - of course without worms if possible.

I also always use SWAP via separate drives/VM images.

You are, a big one.
Setting the correct IP to a migrated node is a CLI operation taking a few seconds…

Development for AD is done at the company Microsoft, Samba tries to reverse engineer as best as they can. But real development? It has to follow Microsofts “guide lines”.
Andrew Tridgell did a great job so far with Samba, works very well yet still has it’s caveats and gotchas!
But none of this is defined at Nethesis!

:slight_smile:

My 2 cents
Andy

Using VMs really makes Disk Details possible like that, one wouldn’t even think about that with real hardware… :slight_smile:

But a sensible choice!

Thank you, I had actually overlooked that. So is a local IP always required for shares or Windows AD integrations?

Why then does the migration tool offer the choice between host IP and cluster IP at the finish if shares are available?

And - assuming another NIC - is a separate IP (different from the host IP) for AD/share also possible?