How to start the client Nodes including Setup for Nodes
To provision the nodes, we provide a pure Bash provisioning script. The hard manual way is documented here.
Compatibility: currently only Ubuntu 26.04 is supported by the provisioning script.
We also keep a cloud-init.yml template in this directory, but the recommended setup flow is the Bash script below.
Use rudl-provision-maschine.sh to provision the machine directly on the server without running cloud-init.
1) Login as root to your new server.
2) Go to /root and run:
apt-get update
apt-get install -y curl vim lsb-release
export RUDL_DOWNLOAD_URL=https://raw.githubusercontent.com/rudl-project/rudl.infracamp.org/refs/heads/main/docs/setup/provision/script/
Problem with vim on new Ubuntu 26.04:
Copy n paste issue with mouse support. Disable mouse support for vim:
update-alternatives --config editor ## Set Editor to vim.basic
echo "set mouse=" > ~/.vimrc ## Disable mouse support for vim
3) Create the server.env file with the required variables.
Download the template:
curl -fsSL ${RUDL_DOWNLOAD_URL}server.env.txt -o server.env
Important variables:
# Firewall
PROTECTED_PORTS_TCP="22"
PROTECTED_SOURCE_IPS="*" ## Add ipv4 or ipv6 adresses - komma separated list. Leave * for all sources.
OPEN_PORTS_TCP="80,443"
OPEN_PORTS_UDP=""
# DNS
DISABLE_SYSTEMD_RESOLVED_STUB="false"
Notes:
PROTECTED_PORTS_TCP contains TCP ports that are only accessible from PROTECTED_SOURCE_IPS. The template puts SSH port 22 here.PROTECTED_SOURCE_IPS="*" (the default) allows all IPv4 and IPv6 sources. To restrict access, use one address or a comma-separated list. IPv4 and IPv6 can be mixed:
PROTECTED_SOURCE_IPS="203.0.113.10"
PROTECTED_SOURCE_IPS="203.0.113.10,198.51.100.7"
PROTECTED_SOURCE_IPS="2001:db8::10"
PROTECTED_SOURCE_IPS="203.0.113.10,2001:db8::10,2001:db8::20"
203.0.113.0/24 and 2001:db8::/64 are also accepted.Client Config: With a fixed VPN IPv4, use ssh -4 user@host or force IPv4 for the domain in ~/.ssh/config:
Host *.mydomain.xy
AddressFamily inet
PROTECTED_PORTS_TCP, OPEN_PORTS_TCP, or OPEN_PORTS_UDP empty ("") if no ports should be opened by that setting.dport { ... } rule is not written.OPEN_PORTS_TCP and OPEN_PORTS_UDP are reachable from every source address.53 for both TCP and UDP.DISABLE_SYSTEMD_RESOLVED_STUB="true", you must provide working nameservers in your netplan configuration, otherwise DNS resolution may stop working.4) Download the provisioning script and run it:
curl -fsSL ${RUDL_DOWNLOAD_URL}rudl-provision-maschine.sh -o rudl-provision-maschine.sh
chmod +x rudl-provision-maschine.sh
./rudl-provision-maschine.sh ./server.env
For debugging:
./rudl-provision-maschine.sh ./server.env --debug
What the script does:
The script does not edit netplan. If you disable the stub listener, configure nameservers manually in your netplan config first.