Site Router
A site router is a role of a node. An Owner or Admin of your organization turns the role on for one Linux or OpenWrt node at a site: an office, a home, a plant. The agent on that node then routes for the organization at that site. The other nodes of the organization at the site attach through it, and the traffic between them stays on the LAN.
There is no separate program to install, and no code to register. You install the noBGP agent on a machine at the site, and then you turn the role on.
This page tells you when to use a site router, how to turn it on and off, what the network needs, and what happens when a part fails.
The site router is available from router 0.4.223 and agent 0.4.195. Router 0.4.225 adds why a role cannot start, and router 0.4.224 what each site router carried.
What a site router does
Without a site router, noBGP relays each connection between two nodes through the noBGP router on the internet. This is why noBGP works through any NAT or firewall. But two nodes on the same LAN then also send their traffic to the internet and back.
With a site router at the site:
- Traffic between two nodes at the site stays on the LAN. It does not use the internet link of the site.
- The site continues to work when its internet link is down. The nodes of the site can still start connections to each other. See When the uplink is down.
- There is nothing to configure on the other nodes. Each node of the organization finds the site router and moves to it when it is faster. See How a node finds the site router.
One measurement
These numbers come from one test on one home router: a GL.iNet GL-MT6000 with OpenWrt, at a site with a Starlink internet link. They are not a promise. Your results depend on your LAN, your machines and your internet link.
| Between two nodes on the same LAN | Without a site router | With a site router on the GL-MT6000 |
|---|---|---|
| Ping | 131 ms to 141 ms | 3.0 ms to 3.4 ms |
| Transfer speed | 7.5 Mbit/s | 172 Mbit/s |
In the same test, the site router process alone used about 32 MB of memory. In that test the site router ran alone, without the agent. On a node, the role is a second process beside the agent's own process. When the internet link was cut, the site router went into local mode after about 20 seconds.
What a site router does not do
- It does not replace the noBGP router. Sign-in, the list of your nodes, commands, files, the shared drive, published services and MCP calls still go through noBGP. The site router sends them to the noBGP router.
- It cannot read the traffic between your nodes. That traffic stays encrypted from one node to the other. See Security.
- It does not carry published services. A request to a published service still enters at the noBGP router.
- It does not carry agent upgrades. A node downloads its upgrades directly from
downloads.nobgp.com. - It serves only its own organization. Nodes of other organizations never use it.
How a node finds the site router
- The noBGP router sends each node of the organization the list of its site routers.
- The node tests each site router in the list. It measures the round-trip time of each site router and of its current router, not the time to set up a connection. So a node with a slow CPU, for example a NanoKVM or a Raspberry Pi Zero, also moves to the site router on its own LAN (from agent 0.4.196).
- The node moves only when the site router answers in 70 % or less of the time of its current router, and at least 5 ms sooner. When more than one site router is faster, the node uses one on its own subnet.
- The node saves the site router, and connects to it first after a restart.
- When a node stays on its current router, it continues to measure that router. If the path to it becomes slower for some minutes, and a site router that the node tested before is now faster by the rule of step 3, the node tests the site routers again, at most one time in 10 minutes (from agent 0.4.196). A connection that carries much traffic gives no new measurement, so the node then uses the lowest time since the connection opened.
There is nothing to configure on a node. There is no setting that keeps only one node off the site routers. A node that reaches no site router stays on the noBGP router.
These nodes never use a site router, and stay on the noBGP router:
- A node with
transport: wss. - A node with an HTTP proxy for the noBGP router.
- A node whose QUIC endpoint or pin is set by hand (
quic-router,NOBGP_QUIC_CERT_PIN). - A node of another organization.
Requirements
The node that takes the role:
- Linux or OpenWrt. No other platform has the role.
- The agent runs as a service. The role runs only under the agent's process manager (
nobgp service run). An agent that you start in the foreground withnobgp agentcannot run the role. In a container, runnobgp service run, and start the container withdocker run --init. - A node that you installed, not a provisioned node. A provisioned node runs in a cloud, not at your site. It cannot have the role.
- One role for each machine. Do not turn the role on for two profiles of one machine.
- The account
nobgp. The role runs as a system accountnobgpwith no login shell, never as root. The agent makes this account when you turn the role on. On OpenWrt, the agent's package makes it at install. See The accountnobgp. - Room for the agent. On OpenWrt the arm64 binary of the agent is not compressed, and uses about 29 MB of flash.
The person who turns it on:
- An Owner or Admin of the organization that owns the node. A Member cannot turn the role on, even on a node that the Member owns. See Roles.
- Signed in as a person, in the app. An AI client cannot turn the role on. See The tool behind the switch.
The site:
- The port of the site router, from the LAN. See The network side.
- An agent on each other node that finds site routers. A node with an older agent stays on the noBGP router and works as before.
Agent 0.4.195 is the first agent that finds site routers, and the first agent that can have the role.
Turn it on
In the app
- Install the agent on a Linux or OpenWrt machine at the site, as a service. See Agent installation.
- In the app, open the Account tab. In the Organizations row, select the router icon (its tooltip is "Site routers"). The Site routers window opens.
- Select Choose a node. The Choose a node dialog offers the nodes of the organization that can take the role: Linux nodes that are online, not provisioned, and not a site router already. Select the node, and then Next. Cancel closes the dialog.
- The dialog Make <node> a site router? lists the people who hold root on that node. Each of these people gets the power of the site router over every node that attaches through it. See Root on a site router node.
- Select the checkbox "I understand that these people can read the traffic of the nodes that connect through this node.", and then Turn on.
You can also open the page of the node. In the Site router section, turn on the switch This node is a site router.
A person who is not an Owner or Admin sees the state of the role on the node page, and no switch. If you do not use the app, read The tool behind the switch and See that it works.
The tool behind the switch
The app turns the role on and off with the tool node_site_router_set. These are its arguments:
{"node": "office-gw", "enabled": true, "dry_run": true}
dry_run: truechanges nothing. The answer givesroot_holders: the people who hold root on the node. The app shows them before you confirm.- Only a person's own sign-in can call it. Use the app. The token of an AI client, a node's local MCP server and a session of noBGP staff that acts for you are refused with
forbidden. This rule stops an AI client from adding a trusted router to your organization after it reads instructions in a web page or a file. - The answer has
notes. For example: the node is offline and the role starts when it connects, or the agent of the node is older than the role.
What the node does
When the role is on, the agent of the node:
- Makes the account
nobgpif it is missing. - Makes the key of the role, and registers it at the noBGP router with the node's own token.
- Writes the state of the role to a directory that only the account
nobgpcan read. - Starts the role as a second process, as the account
nobgp.
The node then connects to its own role. The node that is a site router always uses its own role when the role answers.
See that it works
In the list of site routers. site_router_list shows the role of the node, with the node's name and node_id. While the role starts, its row is in one of these states:
| The row shows | Meaning |
|---|---|
waiting_for_key: true | The role is on, and the agent of the node has not registered the role's key yet. The node is offline, its agent is older than the role, or the node refuses the role |
Neither waiting_for_key nor online | The key is registered, and the role is not connected to the noBGP router |
online: true | The role is connected to the noBGP router |
The row also has these fields:
| Field | Meaning |
|---|---|
listed: true | The noBGP router tells the nodes of the organization about it |
nodes | How many nodes are attached through it now |
uplink | quic or wss: how the role connects to the noBGP router. See A site that blocks UDP |
On the node that is the site router, nobgp status has a site_router block. It shows the state of the role, its port, the state of its health page, its uplink to the noBGP router, and how many nodes are attached through it on each transport. When the node cannot run the role, the block says why. See nobgp status for the fields.
sudo nobgp status
On another node, the router block of nobgp status shows site_router: true when the node is attached through the site router that it selected. nobgp show adds site router at the end of its quic-endpoint line, for example (learned, site router).
Which node is on which site router. node_list and network_directory show site_router for each node that is attached through one now: {id, name, node_id}. node_id is the node that is the site router. A node that is offline, or that connects directly to the noBGP router, does not have the field. You can ask your AI assistant:
Which of my nodes use a site router?
In the app, the Site routers window has one row for each site router. The row shows its state: Registering, Starting, Online, No address, Public address only, or Offline. It also says how the site router reaches noBGP: "Connects to noBGP over QUIC (UDP)", or "Connects to noBGP over a WebSocket (TCP), because the site blocks UDP". The graph and the map show the site router node with a router mark, and a line from each node that is attached through it. In the Site router section of a node's page, a person who has no switch reads "Routes for <organization>" on the site router node, or "Attached through <node>" on a node that uses it.
How long it takes
- The role is listed about one minute after it connects to the noBGP router. A site router whose connection ended 3 times in the last 30 minutes is listed only after it is connected for 10 minutes. This keeps nodes away from a site router that restarts many times.
- Then each node tests the site router, after a random wait of up to 3 seconds, and moves to it when it is faster. In the test on the GL-MT6000, two nodes moved about 5 seconds after the site router was listed.
- A node that moved to a site router stays on it for 10 minutes before it compares again.
The network side
The port
The role uses one port number: 4433, on UDP (QUIC) and on TCP (HTTPS, for the shared drive).
| Direction | Protocol and port | Purpose |
|---|---|---|
| In, from the nodes of the site | UDP 4433 and TCP 4433 | The connection of each node, and its shared drive |
| In, from the site routers of your other sites | UDP 4433 | The links between sites |
| Out, to the noBGP router | UDP 443, or TCP 443 when UDP is blocked | The uplink of the role. See A site that blocks UDP |
| Out, to the site routers of your other sites | UDP on their port | The links between sites |
Open nothing from the internet. The nodes connect from the LAN, and the role connects out to the noBGP router.
To use another port, set site-router-port on the node. The other nodes learn the port from noBGP.
The nodes of the site still need their own way to noBGP. A node connects directly to the noBGP router for its first registration and when no site router answers. It downloads its upgrades from downloads.nobgp.com. See Network Requirements.
OpenWrt
-
Nodes on the LAN: the
lanzone of OpenWrt accepts the traffic by default. No rule is necessary. The agent changes no firewall rule. -
Nodes in another zone (a guest network, an IoT network): accept UDP and TCP on the port from that zone. Replace
guestwith the name of the zone:uci set firewall.nobgp_site_router=ruleuci set firewall.nobgp_site_router.name='Allow-noBGP-site-router'uci set firewall.nobgp_site_router.src='guest'uci set firewall.nobgp_site_router.proto='tcp udp'uci set firewall.nobgp_site_router.dest_port='4433'uci set firewall.nobgp_site_router.target='ACCEPT'uci commit firewall/etc/init.d/firewall reload -
A site router of another site that arrives through a VPN zone or the
wanzone: accept UDP on the port from that zone, and give the address of the other site router, so that the port is not open to all:uci set firewall.nobgp_site_link=ruleuci set firewall.nobgp_site_link.name='Allow-noBGP-site-link'uci set firewall.nobgp_site_link.src='wan'uci set firewall.nobgp_site_link.src_ip='10.20.0.1'uci set firewall.nobgp_site_link.proto='udp'uci set firewall.nobgp_site_link.dest_port='4433'uci set firewall.nobgp_site_link.target='ACCEPT'uci commit firewall/etc/init.d/firewall reloadThe other site router needs the same rule for this one.
Each rule is a section with a name (nobgp_site_router, nobgp_site_link). When you change the port, set dest_port of the same section again. To remove a rule, use its name, not an index. An index changes when a rule is added or removed, and a wrong index removes another rule of the router:
uci delete firewall.nobgp_site_link
uci commit firewall
/etc/init.d/firewall reload
A Linux host firewall
The agent opens no port in a host firewall. If the Linux machine has a firewall, accept UDP and TCP on the port from the LAN. For example, with ufw and a LAN of 192.168.1.0/24:
sudo ufw allow from 192.168.1.0/24 to any port 4433 proto udp
sudo ufw allow from 192.168.1.0/24 to any port 4433 proto tcp
For a link from the site router of another site, accept UDP on the port from the address of that site router. For example, when it is 10.20.0.1:
sudo ufw allow from 10.20.0.1 to any port 4433 proto udp
The address that nodes connect to
The role tells noBGP the address that the other nodes connect to.
- On a Linux machine on a LAN, the default is its LAN address: the role takes the local address that the machine uses to reach the noBGP router.
- On an OpenWrt router, the default is the address of the router's
laninterface (network.lan.ipaddr). Whenlangets its address from DHCP, the role takes the address that the interface has now. - Set
site-router-advertisewhen the machine has more than one address and the default is not the LAN address. You can give more than one address, with commas or spaces between them. - On a Linux gateway that is not OpenWrt, that rule gives the WAN address. Set
site-router-advertisethere to the address at which the other nodes reach the machine. - These addresses cannot be advertised: a loopback address, a link-local address, an address in
100.64.0.0/10, and an IPv6 address that is not global. With such an address the role does not start: it waits and tries again.nobgp statuson the machine says why, in thesite_routerblock, and from router 0.4.225site_router_listshows the same reason ascannot_start. - No restart is needed after a change. The agent sees a change of the role's keys in the profile file in about five seconds, and starts the role again with the new values. When the address of the machine changes, the role sees it and chooses its address again.
- In practice the nodes reach a site router at its IPv4 address. The role does not advertise an IPv6 address that is not global.
Keep the traffic between your nodes off the internet
The organization setting allow_internet_traffic says: may the traffic between the organization's nodes go over the internet, through the noBGP router. The default is true. In the app, it is the setting "Allow traffic between nodes to go over the internet". An Owner or Admin changes it with org_update.
When it is false:
- A node of the organization that connects directly to the noBGP router stays connected, but it has no overlay. It cannot reach other nodes, and other nodes cannot reach it, until it attaches through a site router. The tools still reach it, so you can repair it. This starts at the node's next registration.
node_listandnetwork_directoryshow such a node withheld: "internet_traffic_not_allowed". - A connection between nodes at two sites with no link is refused.
- A site router is used only at a private address. The nodes get only the private addresses of each site router: IPv4
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16, and IPv6fc00::/7. In practice a node reaches a site router at its private IPv4 address, because a site router does not advertise an IPv6 address that is not global. A site router with no private address is not listed. The site router also refuses a node that does not connect from a private address. A Tailscale address (100.64.0.0/10) is not private, and a connection through the public address of the site is not private either. - You cannot provision a node. A provisioned node runs in noBGP's cloud and cannot reach your site router.
The setting is about traffic between nodes. Commands, files, MCP calls and published services that a person uses still go through the noBGP router, with true and with false.
- Each node that reaches no site router leaves the overlay at its next registration: a node away from the site, a cloud machine, a node with
transport: wss, a node with an agent that is too old. The answer oforg_updatelists the nodes that are connected directly now (direct_nodes). - When no site router of the organization answers, every node is held.
- When you set it back to
true, each held node gets its overlay back with no action. The noBGP router closes its connection one time, and the node registers again. A command or a file transfer that runs on that node at that moment stops.
Two or more sites
An organization can have more than one site router. Each node uses one at a time.
Two site routers of one organization link directly when there is a route between them. You supply that route: a VPN between the sites, or a private line. noBGP does not open a path through NAT between two site routers.
- Each site router connects to the address of the other one over UDP, on the port of the other one. The firewall at each site must accept that traffic.
- With a link, the traffic between a node at one site and a node at the other site uses your route.
- ⚠ With no link, and
allow_internet_traffictrue, that traffic goes through the noBGP router. It stays encrypted from node to node, and it counts as bandwidth. Withallow_internet_trafficfalse, the connection is refused. site_router_listnames each pair of site routers with no link inunlinked. On the app's graph and map, the line between two site routers is dotted when their link is not up.
When the uplink is down: local mode
A site router that loses its connection to the noBGP router goes into local mode. It finds the loss in at most about 20 seconds. In local mode it answers its nodes from a copy of your organization's data that noBGP keeps current while the uplink is up: the nodes, their keys and their networks. The copy is on disk, so local mode also works after a restart of the site router or of a node.
What continues:
- Connections between two nodes on this site router continue, and new ones start. The two nodes must share a network, as always.
- Connections to a node at a linked site start too, when the link between the two site routers is up.
- The site router node keeps its role.
What stops, until the uplink is back:
- Commands, the file tools, the shared drive, published services, events and MCP calls for the nodes of the site. The app and the tools show these nodes as offline.
- A name that needs a new lookup at noBGP is not found. A node that connects again during the outage does not see names that joined after it last attached through the site router.
- A node that was never attached through this site router cannot start in local mode.
What a node sees. A node does not know that its site router is in local mode. Its connections to the other nodes of the site continue. When allow_internet_traffic is true, a node whose own path to the noBGP router works moves to the noBGP router after about 5 to 7 minutes. When it is false, the nodes stay on the site router.
⚠ The site router does not learn your changes during the outage. If you remove a node from a network, or remove a node, during the outage, the site router can still start a connection for it. The traffic stays encrypted between the two real nodes.
Local mode lasts up to 7 days. The certificate of the site router is good for 7 days, and noBGP renews it while the uplink is up. When it ends, the site router closes the connections of its nodes, and the nodes try the noBGP router.
When the uplink is back, each node attaches again through the site router one time, and gets current data. Connections between nodes stop for a few seconds. In a test on November 27, 2026, a session between two nodes on the LAN sent its next packet 2.5 seconds after the site router closed the connections of the nodes. In an earlier test on the GL-MT6000, the nodes were online again about 23 seconds after the noBGP router was back. After the uplink comes back, the noBGP router can wait up to 10 minutes before it lists the site router again. See How long it takes.
A site that blocks UDP
The role connects to the noBGP router as the agent does: QUIC on UDP 443 first, and a WebSocket on TCP 443 when UDP does not pass. There is nothing to configure.
- At start, with UDP blocked, the role connects over the WebSocket after about 5 seconds.
- When UDP stops while the role is up, the role goes into local mode for some seconds, and connects again over the WebSocket. Each node of the site connects again one time.
- The role tries QUIC again after 5 minutes, and then at longer intervals, up to one hour. When QUIC works again, it moves back with no node dropped.
uplinkinsite_router_listshowsquicorwssfor each site router.
The role follows the settings of its node:
transport:auto(the default) tries both.quicuses the WebSocket only when QUIC fails.wssuses the WebSocket only.- A proxy: when the service of the node has a proxy variable for the noBGP router (
HTTPS_PROXY,HTTP_PROXY), the role uses the WebSocket.
What does not change:
- The nodes of the site still connect to the site router over QUIC, on the LAN. The LAN must pass UDP to the port.
- The links between sites use UDP. A site that blocks UDP to the internet has no link to your other sites. Connections between the sites then go through the noBGP router, or are refused when
allow_internet_trafficisfalse. - The noBGP router shows the nodes behind such a site router with the transport
wss.
The node owner's control
The owner of the machine has the last word on the machine. These settings are in the configuration file of the node's profile (/etc/nobgp/default.yml for the default profile). See Configuration File.
site-router has a flag, and the change applies within seconds:
# Refuse the role on this machine
sudo nobgp config --site-router=off
# Allow it again (the default)
sudo nobgp config --site-router=on
site-router-port and site-router-advertise have no flag. Edit the configuration file, and then restart the service. The role reads them only when it starts again:
sudo nobgp service restart
site-router: on # off: the role never runs on this machine
site-router-port: 4433 # UDP for QUIC and TCP for HTTPS
# site-router-advertise: 192.168.1.1 # the LAN address; set it on an OpenWrt router
| Key | Default | What it does |
|---|---|---|
site-router | on | on allows the role. off refuses it on this machine: the agent does not start the role and deletes nothing. It writes one warning each time noBGP says that the role is on |
site-router-port | 4433 | The port of the role, UDP and TCP. A port below 1024 is allowed |
site-router-advertise | The address on the route to the noBGP router. See The address that nodes connect to | The addresses that the other nodes and the other site routers connect to, with commas or spaces between them |
- These keys are set on the machine and only there.
node_config_setrefuses them: a person who controls the node from a distance must not move the LAN listener of a trusted router. node_config_getshows the owner's choice invetoes:site-router: off, orsite-router: unavailablewhen the owner allows the role and the node cannot run it.node_site_router_setrefuses an online node withsite-router: off, withfailed_precondition. An offline node gets the role, and the role does not start when the node comes back.
The role's port is closed to overlay peers. Other nodes reach the site router at its LAN address, not through the overlay. The role's port (UDP and TCP, on every address) and the role's health page (127.0.0.1:9469) are closed to overlay peers, to published services and to fetch_url. This starts when the agent makes the role's directory. It ends when the agent deletes that directory. It also applies while the role is stopped, and while site-router: off holds.
⚠ So on a site router node, a service of yours on the role's port is not reachable from overlay peers or as a published service.
Root on a site router node
The role sees the tokens, commands and file bytes of every node that attaches through it. So a person who holds root on the site router node has that power over every node of the site.
root_holdersin the answer ofnode_site_router_setnames these people: the owner of the node, therootentries of its access list, each root terminal and the people named on it, and each share that gives root (also one that is not accepted yet). The app shows this list before you confirm.- The root entries and root terminals that exist when you turn the role on stay. Remove the ones you do not want.
- While the role is on, only an Owner or Admin adds root on that node: a
rootentry, a root terminal, a person named on a root terminal, a share that gives root, and the node's local MCP server. A Member who owns the node can still adduseentries and remove entries. - The node's local MCP server runs nothing as root while the role is on.
usestays. - A transfer of the node to another owner turns the role off. An Owner or Admin turns it on again. In the app, the transfer dialog says that the transfer turns the site router off for the organization.
Security
A site router is a trusted router, as the noBGP router is. Turn the role on only for a machine that your organization controls, with the same care as a domain controller.
What a site router cannot do:
- It cannot read the traffic between your nodes, even in local mode. That traffic is encrypted from one node to the other. noBGP signs the public key of each node, and a node accepts only a key with that signature.
- It cannot install a program on a node. A node downloads its upgrades from noBGP only.
- It cannot act on a node that is not attached through it, and it serves only the nodes of its own organization.
- Another device on the LAN cannot take its place. A node connects only to the addresses that noBGP gave it, and checks the key of the site router.
What a site router can see and do, for the nodes that attach through it:
- It sees their commands with their input and output, the bytes of file calls and of the shared drive, MCP calls and events. The noBGP router sees the same.
- It sees which nodes are online, which nodes talk to each other, and how much.
- It sees the tokens of these nodes.
So a person who has root on the site router node can read that traffic, copy the token of a node, and run on each connected node the commands that noBGP could run. The settings of each node still apply: a node with allow-root: false refuses root commands, even from a site router.
How the role is protected on its own machine:
- The role runs as the account
nobgp, never as root, with no login shell. - The role never reads the node's token.
- The agent trusts no file that the role writes.
What to do:
- Turn the role on only for a machine that you know. Read
root_holdersfirst. - Turn the role off when the machine is lost or is no longer yours.
site_router_listshows each site router of the organization, and each change is in the audit log. - In local mode, the site router acts on data that can be up to 7 days old.
Turn it off
In the app, turn off the switch This node is a site router on the page of the node. Or, in the Site routers window, select the power icon of the row (its tooltip is "Turn off"). The dialog Turn off the site router on <node>? opens: select Turn off. The app calls node_site_router_set with enabled: false. The same rule applies: an Owner or Admin, from a person's own sign-in.
What happens:
- The noBGP router closes the connections of the role. Within about one minute, the nodes that were attached through it move to another site router of the organization that they reach, or to the noBGP router.
- When the noBGP router tells the node, the agent stops the role and deletes the role's state directory: its key, its copy of your organization's data and its saved data. A node that is offline does this when it connects again.
- The organization's nodes get the list without it.
The account nobgp and the site-router keys stay on the machine.
With allow_internet_traffic false, a node that reaches no other site router is then held.
The role cannot be turned on again with the same identity. When you turn it on again, the node makes a new key, and the role gets a new id.
The role also turns off by itself when the node is removed or revoked, moves to another organization, is transferred to another owner, or gets another key, when another machine registers under the node's name and takes its identity.
Troubleshooting
The role is refused
node_site_router_set answers failed_precondition with a text that says why:
| Refusal | Why | What to do |
|---|---|---|
| The node is not a Linux node | The role runs only on Linux and OpenWrt | Choose a Linux or OpenWrt node |
| The node has an open provisioning task | A provisioned node is in a cloud, not at your site | Choose a node that you installed at the site |
The owner of the machine set site-router: off | The owner's setting refuses the role | The owner of the machine sets site-router: on, or choose another node |
The node cannot run the role (site-router: unavailable) | The agent does not run as a service, or the node cannot use or make the account nobgp | Run the agent as a service (sudo nobgp service install, or nobgp service run in a container). See The account nobgp |
| The node is revoked | — | Choose another node |
forbidden means that you are not an Owner or Admin of the node's organization, or that the call did not come from a person's own sign-in.
The account nobgp
The role runs as the account nobgp. The agent uses an account nobgp that exists only when all of these are true:
- It is a line of
/etc/passwd. - Its uid and its gid are not 0.
- Its shell is
/sbin/nologin,/usr/sbin/nologin,/bin/falseor/usr/bin/false. An empty shell is/bin/sh, so it is refused. - It is not the account that the node runs commands without root as (the
usersetting, orNOBGP_USER).
If an account nobgp exists and is a login account, the node cannot have the role. The node reports site-router: unavailable from its first connection, and nobgp status gives the reason. This is always the case on a provisioned node: its account nobgp is the account that commands without root run as.
If the agent cannot make the account (for example, /etc is read-only, or the system manages its users in another way), make a system account nobgp with no login shell yourself.
The role does not start
- The port is used by another program. The role does not start, and the agent starts it again and again. Its log names the port. Stop the other program, or set
site-router-portto a free port and restart the service. - The advertised address is refused. The role does not start, and its log says why. See The address that nodes connect to.
- On an OpenWrt router, no node attaches. By default the role advertises the WAN address, which the nodes on the LAN do not use. Set
site-router-advertiseto the LAN address of the router, and restart the service. See The address that nodes connect to. waiting_for_keystaystrue. The node is offline, its agent is older than the role, or the node refuses the role. Readvetoesinnode_config_get, andnobgp statuson the node.- The agent logs a conflict (
409) for the role's key. The role's record at noBGP holds another key. An Owner or Admin turns the role off and on again. listedstays absent whileonlineistrue. The site router is in its first minute, or it restarted 3 times in 30 minutes (then it waits 10 minutes). Withallow_internet_trafficfalse, a site router with no private address is never listed.nobgp statussays that the health page does not answer. Read the log of the agent.
Logs
The role writes to the same log as the agent. See Service Logs. For example:
# Linux with systemd
sudo journalctl -u nobgp.service -f
# OpenWrt
logread -e nobgp
Billing
- Traffic that a site router carries between its nodes is not billed. It does not count toward your bandwidth allowance, and it is not throttled. The same is true for traffic over a link between two site routers.
- Traffic that goes through the noBGP router is billed as before: a connection with a node that is not on a site router, a connection between two sites with no link, published services, and file storage. See Bandwidth.
- Every plan can have a site router.
Limits
- Linux and OpenWrt only. One role for each machine.
- A node with
transport: wss, or with an HTTP proxy for the noBGP router, does not use a site router. - Agent upgrades download directly from
downloads.nobgp.com, not through the site router. Thenobgpcommands that a person runs (nobgp register,nobgp login,nobgp upgrade) also connect directly. - Published services enter at the noBGP router.
- Two site routers link only over a route that you supply. noBGP does not open a path through NAT between them.
- "Private" means the standard ranges only (
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,fc00::/7). You cannot declare other prefixes as private. In practice a site router is reached at its private IPv4 address: it does not advertise an IPv6 address that is not global. - A node and its site router close their connection after 13 seconds with no packet, and the node then connects again. Because of this, a node finds a lost site router quickly. Across the internet, a path outage of more than 13 seconds closes the connection, and the node connects again.