9. Network and remote access
The server's network
Settings > Network has the tabs General, Interfaces, Routes, Wi-Fi, VPN Client, Speed Limits, Wake-on-LAN and Proxy.
The server's network cards are in a bridge, so virtual machines and apps with an address of their own sit on your network like any other device.
- General: the server's name, the DNS servers, Answer as name.local (the server's name followed by
.localon your network), and Addresses for apps: a range of your network's addresses that apps may take, so their ports never collide. Keep that range out of your router's DHCP range. A server joined to a domain keeps its name: leave the domain (Settings > Directory Services), rename the server, then join again. A server that is a domain's controller (the Domain app) keeps its name while it serves the domain. - Interfaces: an automatic (DHCP) or fixed address for each interface, several network cards, bonds (LACP, active-backup, adaptive load balancing), VLANs, a card with an address of its own or none, and IPv6 (automatic, DHCPv6 or fixed) for each.
- Routes: static routes to other networks.
- Wi-Fi: join a WPA2 or WPA3 network. A network cable, when plugged in, is used first. Wi-Fi's channels and power follow the country of the server's time zone (Settings > Language and Time): change the time zone, and Wi-Fi follows (its connection drops for a moment).
A change that cuts you off is undone. When a change might cut your browser off (a new address, a bond), OSM waits for you to confirm from the new address; with no confirmation within 90 seconds, the server goes back to the old settings by itself, even across a restart. The clock being set meanwhile changes nothing of those 90 seconds.
When the card whose MAC address the bridge wears leaves it (as a card of its own, say), the bridge takes the MAC address of one of its own cards, so no two devices share one. The dialog says so: a router that gives addresses by MAC address may give the server another address.
Speed limits, Wake-on-LAN and a proxy
- Speed Limits: limit the speed of a service (SMB, NFS, FTP, the web desktop, backup and rsync, or the container apps together) or of one account over SMB, at all times or at chosen hours (on the days ticked: at least one, or choose Always). Backup and rsync is rsync on port 873, to the server and from it: OSM's own backup, cloud and replication tasks are not limited by it.
- Wake-on-LAN: whether this server may be woken by a magic packet (the computer's firmware must allow it too). A domain's computers are woken from the Domain app (Wake it up).
- Proxy: when the server may reach the Internet only through a proxy: updates, container images, backups and certificates go through it, from the moment you save it. The names reached without it are host names,
.domains, addresses or networks (10.0.0.0/8), separated by commas. Its password is kept where only the system can read it. Give anhttp://orhttps://proxy: asocks5://one is used for container images (Docker) only, and updates, backups and OSM's own downloads then go without a proxy.
VPN: reaching home from anywhere
Install VPN from the App Catalog: a WireGuard server for your phones and laptops.
- Add a device: a QR code for the WireGuard app on a phone, or a file for a computer. It is shown once only: the device's private key is not kept on the server.
- Choose what the devices reach: This server only, This server and the LAN, or Everything (all their Internet traffic goes through home). The server includes the ports its apps publish (a mail app, a camera's), as from your local network; an app's web page is reached through its gateway, in HTTPS.
- Your router must forward the VPN's UDP port to the server (Settings > Remote access > Router can ask it to), and the devices need an address to connect to: your Dynamic DNS name, or your public address.
The VPN is safer than forwarding the web desktop's port: only the VPN's port faces the Internet, not OSM itself.
VPN client: the server through another VPN
Settings > Network > VPN Client connects the server to a WireGuard or OpenVPN network: for the VPN's own networks only, for the apps you choose, or for everything of the server (your local network stays reachable). A kill switch blocks what would otherwise leave without the VPN while it is down. A profile's own commands never run: a WireGuard file that has them is refused, and an OpenVPN file's are left out (OSM shows which lines). So are an OpenVPN file's routes for everything or for your own networks, and the same routes sent by the VPN's server (a part of your own network too). So are the old options this OpenVPN no longer knows (ncp-disable, key-method): a file that has them connects. A revocation list inside the file (<crl-verify>) is taken; one that names a file of its own is refused, as a certificate in a file of its own is. While an OpenVPN connection does not come up, the page shows OpenVPN's own reason (Last error).
An OpenVPN file must say how this server signs in to the VPN: with its own certificate and private key, with a <pkcs12> file, or with your VPN account's user name and password (type them in when you add the file). A file with none of them is refused, and OSM says what it lacks: ask your provider for the file made for this device.
A file must also check that the VPN server it reaches is your provider's own: without that check, another customer of the same provider could stand in for it. When a file has no such check (remote-cert-tls server, verify-x509-name or peer-fingerprint), OSM adds remote-cert-tls server, and says so when you add the file. Your provider's servers pass it, unless one is an older server whose certificate lacks the server mark: the VPN then does not connect, and Last error says VERIFY KU ERROR or VERIFY EKU ERROR. Then add a line with the server's name to the file, as your provider gives it, for example verify-x509-name vpn.example.com name; remove the profile and add the file again. OSM then checks the server by its name instead, and adds nothing.
After an update of OSM, a connection already made gets the files this version writes, by itself within a few minutes; a profile this version no longer takes is disconnected, and the Administrators are told (remove it and add the provider's file again).
Connecting, and each change while connected, waits for Keep: if this page loses the server, the change is undone after the countdown. A network of the profile that is your own local network (both sides use 192.168.1.0/24, say) is never routed into the VPN, and what comes from the VPN's side reaches only the ports open to everyone, never what is open to the local network only.
OSM Connect: the server from anywhere
Settings > Remote access > OSM Connect gives the server an address of its own on the Internet, like https://n4bq7x2m....eh7ddx5b.osm-relay.com/, through OSM's relay: nothing to open on your router, no address to know. The connection is encrypted from your browser to the server; the relay passes it on without being able to read it. It needs an OSM account with OSM Connect, and two-step sign-in with an authenticator app for your own account (My Account > Security).
Turning it on, on the server's own network:
- Click Turn on.... The first time, the server installs the program for the tunnel (a minute).
- The page shows a pair code. Click Open the OSM account site, sign in to your OSM account and confirm the server with that code. The site also shows the last four characters of the server's ID: check that they are the ones on the page.
- Back on the server, the page asks Is this your OSM account? and shows the account that confirmed the code, with part of its email address hidden. Click Accept if it is yours. If it is not (someone else saw the code), click Not my account...: the server leaves that account and nothing is set up. Until an Administrator answers, the server waits, and the Administrators get a notification.
- The server sets up its address and gets its certificate by itself. This takes a few minutes; you can close the window. When it is done, the page shows On, the address, and Reached from outside: the server opened its own address from the Internet and found itself.
Signing in through OSM Connect is stricter than at home:
- Only Administrators may sign in, unless you choose more under Who may sign in (Administrators and chosen groups, or every account). Each one needs two-step sign-in or a passkey: a password alone never signs in there, and no browser is trusted. When you narrow it, whoever it leaves out is signed out of OSM Connect at once; so is an account taken out of a chosen group, or no longer an Administrator, at its next click. A chosen group stays chosen when it is renamed; a new group given a deleted group's name is not chosen.
- A sign-in ends after 30 minutes without use, and after 12 hours in any case.
- Deleting data, keeping fewer snapshots or backup versions, changes to accounts, passwords, a shared folder's permissions (and a new shared folder that takes over a folder already on the volume) or security, network, file protocol (SMB, NFS, FTP), Media Streaming, virus scan and update settings, the clock, share links, iSCSI targets, replication, a file put back from quarantine, and every change to the domain (Domain) ask for your code again (Confirm it is you). So does showing a saved password or key: an app's password, single sign-on's client secrets, a project's compose file, the addresses of webhooks and ntfy topics (Notifications), the scripts of scheduled tasks, a container's environment (Details) and the password of a shared UPS. Until then they are left out of the page, and Show or Edit asks for your code first.
- 20 failed sign-ins within an hour pause sign-ins through OSM Connect for an hour. The Administrators are told; those signed in already go on, and signing in at home works.
- A sign-in from a new browser or place is told to the Administrators (bell and email) and to the account's email address. If it was not you: an Administrator ends it in Settings > Security > Signed in; a Standard user changes their password in My Account, which signs out every other browser, and tells an Administrator.
- Off unless you turn them on: Terminal (and containers' terminals and virtual machines' screens; a virtual machine's console log stays readable), Shared links, API tokens (a token must also be made with It may also be used through OSM Connect). An API token never gets the server's OSM Connect address, nor its QR code.
- Apps' own pages, password reset by email and the installer are not reachable through OSM Connect. These rules are changed on the server's own network only.
A sign-in at home and one through OSM Connect are separate: each works only at its own address.
While it is on, the page also shows:
- QR code, beside the address: point your phone's camera at it to open the server there.
- Relay: the country of OSM's relay the server goes through, with its flag, and how long a connection to it takes from the server (in ms). OSM has relays in several countries and puts each server on one that is close to it and not too busy; it may move a server at night to a closer or less busy one. After a move, the page says since when and which relay it used before, and the Administrators get a notification. The address stays the same.
- Speed: the most your OSM plan gives through the relay (for example up to 5 Mbit/s). Your plan opens the account site, where a plan with more speed can be chosen.
- Certificate logs: when the server last read the public certificate logs, which tell it whether someone else made a certificate for its address (if so, OSM Connect stops and the Administrators are told). It reads them every day; if it cannot for three days, the Administrators get a notification, and the row says Not checked.
- Self-test and Check now: the server opens its own address from the Internet every 15 minutes. Check now looks at each part of the way at once and shows what it found: OSM's service, the relay's name, the relay itself, the tunnel, the pass, the certificate and the self-test. The first part that does not work is where to look; the server keeps trying by itself.
If the server cannot be reached through OSM Connect for half an hour, the Administrators get a notification (bell and email: the email reaches you only if the server's own Internet works), and another one when it works again.
Keep the address to yourself: it is how the server is found. New address... gives the server another one at once and the old one stops working (bookmarks too). Show this server's address in my OSM account (on unless you turn it off) lists the address on the account site, so you can open the server there with Open; the site keeps it encrypted. Turned off, the account site lists the server without its address.
Turn off stops the tunnel and the address at once; the server stays linked to your OSM account, so turning it on again is quick. Turn off and unlink... also removes the server from your OSM account.
If OSM moves OSM Connect to a new domain, the change comes with an OSM update. The server keeps its address until its new one is ready (the page says OSM Connect moves to a new domain meanwhile), then switches by itself and tells the Administrators. Then:
- open the new address from your OSM account (Open) or from Settings > Remote access, and update your bookmarks;
- install the phone app again from the new address;
- make passkeys for OSM Connect again: until you do, sign in with your authenticator app's code.
The new address can take a few days to come; the old one works until then.
When it stops by itself, the page says why and the Administrators are told: the server was removed from the OSM account, OSM blocked OSM Connect for it, this version of OSM is too old for it (update OSM), or a certificate for its address was made somewhere else (the server watches the public certificate logs every day; contact OSM's support). Click OK, then turn it on again when you are ready.
What OSM's relay sees: which server is visited, from which address, when, and how much; never what you do there.
Reaching the server from the Internet
Settings > Remote access has these tabs too:
- Dynamic DNS: a name that follows your home's public address (DuckDNS, deSEC, No-IP, Dynu, FreeDNS, Cloudflare, or any dyndns2 service), updated when the address changes. It asks for that address, and tells the service, the usual way out even when the VPN Client sends everything of the server through a VPN: the name stays your home's, not the VPN provider's.
- Router: ask your router (UPnP) to forward ports to the server, renewed every half hour. Forward only what you need. A port you take off the list stays off: the renewal tells the router only what is listed then.
- Apps' addresses: below.
- Tailscale: only on a server where an older OSM installed Tailscale. It keeps working there, with its sign-in and its settings, until you click Uninstall. OSM no longer installs it: the App Catalog has Tailscale, and OSM Connect reaches the server from anywhere.
A relay server of your own that an older OSM set up keeps working: its connection is the VPN Client profile named Relay and the relay's address (VPN client).
An address for each app
Settings > Remote access > Apps' addresses gives an app an address of its own, served by the server with its certificate:
- a name:
https://photos.example.com(the name must lead to your server, through your DNS or Dynamic DNS, and be in the server's certificate), or - a path:
https://nas.local/photos.
The apps' addresses are served on a port of their own (HTTPS port for apps, 443 by default), never on the web desktop's, so no app shares the web desktop's origin (and its sign-in).
An app of another computer is chosen as Another address..., by its address (http://192.168.1.30:8080) or by its name (http://books.lan:8080). The server looks a name up each time the app is opened, not when it starts. While your network's DNS does not answer it (the router still starting after a power cut, a device renamed), only that address shows an error page (502 Bad Gateway); the web desktop and the other apps go on, and the app answers again within half a minute of the DNS answering. A name leads wherever your network's DNS says at that moment: for an app whose traffic matters, give its address, or make sure no other device can take its name (a fixed entry in your router). A name is looked up for its IPv4 address; to reach an app over IPv6, give its address in brackets (http://[fd00::10]:8080).
Save asks your network's DNS for a new or changed name once. A name it says does not exist, or one without an IPv4 address, is refused, so a typing mistake shows at once. When the DNS does not answer right then, the address is saved all the same and Save says it could not be checked. A name of one word (http://books:8080) is saved with your network's domain (books.lan), the whole name your network's DNS knows it by; names the server knows itself (its own, localhost) stay as they are. An address saved with a name of one word before this version of OSM gets its whole name by itself after the update (or when it is saved again).
Ports 80 and 443 of the server are OSM's own (Let's Encrypt checks the server's name on 80). An app installed before that holds one of them, such as Nginx Proxy Manager on the server's ports, gets an alert saying how to give it an address of its own; it goes once the app is moved. When the web server cannot take one of its ports because another program holds it, saving says which program, and nothing changes.
An app that signs in With the OSM account (How apps sign in) gets no address here: it believes whoever reaches its own port is signed in, so only its gateway may reach it. Open it from All apps, or choose another way for it to sign in first; an address it had stops working, and the page says why. The same goes for an address typed by hand that leads to such an app (the server itself at the app's port, or the app's own network). A name cannot be checked that way when it is saved, since it leads wherever the DNS says later: if it ever leads to such an app, the server's firewall refuses the connection, and that address shows an error page (502 Bad Gateway).
Certificates
Settings > Security > Certificate:
- Self-signed: made at the first start, for 825 days. Browsers warn about it until you trust it on each device (below). The tab shows the certificate's SHA-256 fingerprint: compare it with the one your browser shows before you trust it. Nothing renews it by itself: a month before it ends the Administrators are told (bell and email), again a week before, and when it has ended; Make a new self-signed certificate makes a new one, and the warning goes. A Let's Encrypt certificate never gets this warning.
- Import... a certificate of your own (with its private key), from a certificate authority or self-signed. OSM cannot renew it: the bell (and your email) tells you 30 and 7 days before it ends, and once it has ended, and Security Check shows a warning in its last month and a problem once it has ended, when browsers refuse the page. Import the new one before then: the warning goes.
- Let's Encrypt: a free, trusted certificate for names of yours on the Internet, renewed by itself a month before it ends. The HTTP challenge needs port 80 forwarded to the server; the DNS challenge works without any open port, with the API of your DNS provider (18 providers are supported), and also gives wildcard certificates (
*.example.com). Switching to the DNS challenge closes port 80 at once. Other names, another e-mail address or another certificate authority (the test service, say) get a new certificate, not a renewal. Turned off, it stays off, even when a renewal was running then. When a renewal fails, the note says when the certificate ends (or that it has ended, and browsers warn about it).
Trust the server's certificate on your devices
A device that trusts the server's self-signed certificate opens the web desktop, and the apps' HTTPS addresses, without a warning. Two places give the certificate to download, its fingerprint, and the steps for each device (the one you are on is shown first):
- Settings > Security > Certificate > Trust it on your devices: Download the certificate and Steps for each device....
- The sign-in page, on the server's own network: Does your browser warn about this server? (not through OSM Connect, whose address has a certificate every device trusts).
The certificate is made for the server's name, its name followed by .local, and the addresses the server had when it was made; the steps list them. Open the server by one of them: at another address (one that changed since), browsers warn even when they trust the certificate. Make a new self-signed certificate makes one for the addresses the server has now; each device then trusts the new one the same way.
Before a device trusts it, compare its SHA-256 fingerprint with the one Settings > Security > Certificate shows on a device that already trusts the server, or through OSM Connect. The same fingerprint: it is the server's own certificate, and nobody is in between.
- A Mac (Safari, Chrome and Edge): open the downloaded file; Keychain Access adds it to the login keychain. Double-click the certificate (it has the server's name): its SHA-256 fingerprint is under Details. Under Trust, set When using this certificate to Always Trust, close the window and type your password. Quit the browser and open it again.
- Windows (Edge and Chrome): open the downloaded file and choose Install Certificate, then Current User and Next; Place all certificates in the following store, Browse..., Trusted Root Certification Authorities, OK, Next and Finish; then Yes. Windows shows a SHA-1 thumbprint there: Edge and Chrome show the SHA-256 fingerprint in the certificate's details, under Not secure in the address bar. Close the browser and open it again.
- An iPhone or iPad: not with the server's own certificate. For websites, an iPhone or iPad trusts only the certificate of a certificate authority (it lists them in Settings > General > About > Certificate Trust Settings), and the server's own is not one: installed, it is not listed there, and Safari still warns. Use the server's OSM Connect address, or a certificate from Let's Encrypt (above); or, on Safari's warning, Show Details, then visit this website (Safari asks again later).
- Android: not with the server's own certificate either. For websites, Android installs only the certificate of a certificate authority (Settings > Security > Encryption & credentials > Install a certificate > CA certificate), and refuses the server's own there. Use OSM Connect's address or Let's Encrypt; or, on Chrome's warning, Advanced, then Proceed to the address (Chrome asks again later).
- Firefox, on any computer: Firefox keeps its own list. On its warning, choose Advanced..., then View Certificate to compare the fingerprint; back on the warning, Accept the Risk and Continue. Firefox remembers it for this address (Settings > Privacy & Security > Certificates lists it under Servers). Its list of authorities (Import...) takes only a certificate authority's certificate.
With a certificate of your own from a certificate authority of your own, each device trusts that authority's certificate instead: on an iPhone or iPad, install it as a profile, then turn on full trust for it in Settings > General > About > Certificate Trust Settings; on Android, Install a certificate > CA certificate; in Firefox, Import... in its list of authorities.
Network Boot: computers that start from the server
Network Boot (from the App Catalog) lets the computers of your network start from the server, without a USB stick: an installer or a live system from a menu, or a disk of their own on the server. Your router keeps giving the computers their addresses; OSM only tells them where to start.
Turn it on in Network Boot > Settings: choose the Network the computers are on, switch it On and choose Save. The server then answers there alone: ports 67, 69 and 4011 (UDP) for the computers' firmware, and port 5069 (TCP) for the menu. Also choose:
- Who gets an answer: every computer that asks, or only the computers on the list (Computers): the others then get no answer at all, and start as if the server were not there.
- Menu wait: how many seconds the menu waits before it starts its default (0: the default at once, no menu).
- Default: what the menu starts when nobody chooses: the computer's own disk, or one of the boot images.
On each computer, before it starts from the network:
- In its firmware (the BIOS or UEFI setup), put the network (PXE, or "network boot") first among the ways it starts. The menu's first entry goes on from the computer's own disk, so nothing changes for it unless someone chooses.
- Turn Secure Boot off: the program that shows OSM's menu (iPXE) is not signed for Secure Boot.
- Make sure nothing else on your network answers it the same way (another PXE server, or a router set to send computers elsewhere).
- A virtual machine with UEFI firmware needs a random number generator device (virtio-rng): without one, recent UEFI firmware offers no network boot at all. Virtual machines of OSM's own have one.
Boot images. In Network Boot > Boot menu, choose Add an ISO... and pick an ISO file from a shared folder. OSM copies it to the volume of the boot images (set in Settings) and takes out what starts it from the network; the job shows how far it is. OSM starts:
- Ubuntu and systems made like it: the whole ISO is loaded into the computer's memory, so it needs more memory than the ISO's size.
- Debian live systems, and Debian's network installer (the
mini.isoof Debian's "netboot" folder). - Fedora live systems and installers, and Red Hat's and related installers (AlmaLinux, Rocky Linux): they read the ISO's own
.treeinfo, which the server gives them. - OSM's own installer.
Windows installers and Debian's installer DVDs do not start from the network yet: use a USB stick for those. Edit... changes an image's name in the menu and what its system takes at its start (like console=ttyS0); the arrows change its place in the menu.
Computers. Network Boot > Computers lists the computers OSM knows, by their network card's address (MAC). Computers that asked lately shows the ones that started from the network: choose Add... to put one on the list. For each computer on the list, choose what it starts: the menu, its own disk, or one boot image.
A disk on the server (install iSCSI Storage first). In the computer's menu (···), Give it a disk on this server... makes it a disk that only this computer may use, with a password of its own (a LUN of iSCSI Storage called nb- and the computer's name; change it here, not in Storage > iSCSI):
- New and empty: the computer then starts the menu with its new disk attached, first in the menu. Choose an installer from the menu and install the system on that disk; from then on the menu starts it by default. On an ext4 volume a disk can be 16383 GB at most (a Btrfs volume takes larger ones).
- A copy of a master: made at once (the master and its copies need a Btrfs volume). With Made new from the master at each start, everything written to it is gone at the computer's next start: it always starts as the master is, which suits classrooms and shared computers.
A disk is never changed while a computer uses it: a computer that restarts waits a few seconds until its last start has let go of its disk. Make its disk new from its master does it at once while the computer is off.
Masters. A master is a frozen copy of a disk, which the computers' disks are copies of. Give one computer a new disk and install and set up its system; shut it down; in Network Boot > Masters choose Publish a master... and pick its disk. Then give the other computers a copy of it. Publish again... takes the disk as it is now: copies made new at each start take it at their next start, the others when they are made new.
What to know about safety. Network Boot trusts your network: a computer is known by its network card's address, which another device on the network can copy, and what the computers' firmware fetches is not encrypted (no firmware can check a certificate of OSM's). OSM sends a disk's password only to the network card it belongs to (a device that only claims that card's address does not get it), never while someone is logged in to that disk, and it gives the disk a new password at every start. But while a computer is running from its disk on the server, anyone with an account on that computer can read the disk's password (the firmware leaves it where the running system can see it) and reach the whole disk over the network. So keep computers whose disks hold something to protect on a network of their own (a separate network or VLAN), and turn Network Boot off when you do not use it: off, the computers' disks are off the network too, each with a new password nobody has. A computer running from its disk then loses it at once, so OSM asks first; turned on again, the disks come back.
On a High Availability pair Network Boot follows the main server: after a failover the other server answers, with the same menu, computers and disks. Keep the boot images and the disks on a mirrored volume, and Network Boot on the network of the pair's address: the computers are then given that address, and one running from its disk on the server keeps it (High Availability).
Other network services
- SSH: Settings > SSH (install SSH server first): the port, and whether passwords are allowed or only keys. Administrators can use sudo; root cannot sign in over SSH. A port another program uses is refused, and if SSH does not start with the new settings, the ones before come back. OSM's settings come before any other SSH settings file on the server; when another file still decides (a password sign-in it allows), saving says which file, and the Security Check names it too.
- The firewall decides who reaches all of this: see Security.