01. Overview & prerequisites
This walkthrough assumes a current Arch Linux installation, an account with administrative sudo privileges, an eero gateway, and an ISP that permits incoming web traffic.
example.com, public site www.example.com, No-IP hostname myhomeserver.ddns.net, server LAN address 192.168.4.100. Replace every placeholder.02. Register a domain
- Choose a registrar (for example Namecheap, Cloudflare Registrar or another reputable provider).
- Search for and purchase an available domain. Enable renewal and privacy options where applicable.
- Verify the account and locate its DNS records management page.
- Leave the registrar's nameservers in place if you intend to use the CNAME method below.
The examples below use www.example.com; this is a documentation domain, not a domain you should register.
03. Set up No-IP Dynamic DNS
- Create and verify an account at noip.com.
- Create an IPv4 Dynamic DNS hostname such as
myhomeserver.ddns.net. - At your domain DNS provider, create the following record:
| Type | Host/name | Target/value |
|---|---|---|
| CNAME | www | myhomeserver.ddns.net |
This delegates the www lookup to the dynamic No-IP hostname. For the apex example.com, use your DNS provider's ALIAS/ANAME or flattening capability if available, or redirect the apex to www. A normal CNAME cannot coexist with apex SOA/NS records.
Check DNS
sudo pacman -Syu --needed bind curl
dig myhomeserver.ddns.net +short
dig www.example.com +short
curl -4 https://api.ipify.orgThe resolved public address should match your reachable public IPv4 once the DUC has updated it and caches expire. If you use No-IP managed DNS for a custom domain instead, follow the provider's nameserver instructions for your plan.
04. Install the No-IP Dynamic Update Client on Arch
Arch Linux does not use Debian .deb packages. Build No-IP's official Rust-based Linux DUC source rather than using Ubuntu's apt installation steps.
Install build dependencies
sudo pacman -Syu --needed base-devel rust curl tar ca-certificates
mkdir -p ~/src/noip
cd ~/src/noipDownload, inspect and build
curl -fL https://www.noip.com/download/linux/latest -o noip-duc.tar.gz
tar -tzf noip-duc.tar.gz | head
tar -xzf noip-duc.tar.gz
cd noip-duc_*/
cargo build --release
sudo install -m 0755 target/release/noip-duc /usr/local/bin/noip-duc
noip-duc --helpCreate a DDNS key
In the No-IP dashboard create a DDNS Key for your hostname. Save the key username and password; these may differ from your account login. Test the executable using noip-duc --help and confirm its accepted flags.
Configure systemd startup
Create a root-only environment file with the DDNS key:
sudo install -m 600 /dev/null /etc/noip-duc.env
sudoedit /etc/noip-duc.envNOIP_USERNAME=YOUR_DDNS_KEY_USERNAME
NOIP_PASSWORD=YOUR_DDNS_KEY_PASSWORD
NOIP_HOSTNAME=myhomeserver.ddns.netCreate /etc/systemd/system/noip-duc.service:
[Unit]
Description=No-IP Dynamic Update Client
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
EnvironmentFile=/etc/noip-duc.env
ExecStart=/usr/local/bin/noip-duc -u ${NOIP_USERNAME} -p ${NOIP_PASSWORD} -g ${NOIP_HOSTNAME}
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.targetnoip-duc --help for the version you build. This simple systemd example passes the DDNS key in process arguments; for stricter credential isolation, use a version-supported protected credential mechanism. Keep the environment file at mode 600.sudo chmod 600 /etc/noip-duc.env
sudo systemctl daemon-reload
sudo systemctl enable --now noip-duc.service
sudo systemctl status noip-duc.service
sudo journalctl -u noip-duc.service -n 50 --no-pagerCheck the hostname again with dig. The DUC makes outbound requests and needs no inbound router rule.
05. Reserve the server IP and forward ports on eero
Find the server's LAN address
ip -4 addr show
ip routeOpen the eero app and find Settings → Advanced networking → Reservations & port forwarding (menu labels vary by version). Reserve 192.168.4.100 for the Arch server if that address belongs to your network and is available.
Add forwarding rules
| Purpose | Protocol | External | Internal | Destination |
|---|---|---|---|---|
| HTTP | TCP | 80 | 80 | 192.168.4.100 |
| HTTPS | TCP | 443 | 443 | 192.168.4.100 |
Save both rules. If eero is bridged, forward ports on the upstream gateway. If an ISP router also performs NAT, bridge it where supported or configure both layers. Do not use DMZ or forward SSH or database ports merely to host a website.
Check for CGNAT
curl -4 https://api.ipify.orgCompare this with the WAN address displayed by eero. A WAN address in 100.64.0.0/10 or an RFC1918 private range, differing from your public IP, indicates upstream NAT. Ask your ISP about a public IPv4 address or use a suitable tunnel service.
06. Install and configure Apache httpd
On Arch, Apache is packaged as apache, the service is httpd.service, and its main configuration is /etc/httpd/conf/httpd.conf.
sudo pacman -Syu --needed apache
sudo systemctl enable --now httpd.service
systemctl status httpd.service
curl -I http://127.0.0.1/Create the site directory and test page
sudo mkdir -p /srv/http/example.com/public_html
sudo tee /srv/http/example.com/public_html/index.html >/dev/null <<'HTML'
<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><title>My Arch Website</title></head>
<body><h1>Apache on Arch Linux is working!</h1></body>
</html>
HTML
sudo chmod -R a+rX /srv/http/example.comEnable separate VirtualHost files
Edit /etc/httpd/conf/httpd.conf. Ensure mod_mpm_event (or the distribution's configured MPM), mod_authz_core, and mod_dir remain enabled. Add this line near the end:
IncludeOptional conf/vhosts/*.confCreate /etc/httpd/conf/vhosts/example.com.conf:
sudo mkdir -p /etc/httpd/conf/vhosts
sudoedit /etc/httpd/conf/vhosts/example.com.conf<VirtualHost *:80>
ServerName www.example.com
DocumentRoot "/srv/http/example.com/public_html"
<Directory "/srv/http/example.com/public_html">
Options -Indexes +FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ErrorLog "/var/log/httpd/example.com-error.log"
CustomLog "/var/log/httpd/example.com-access.log" combined
</VirtualHost>Use sudoedit to write the VirtualHost contents above, then test:
sudo httpd -t
sudo systemctl restart httpd.service
curl -I -H 'Host: www.example.com' http://127.0.0.1/
sudo httpd -SSyntax OK and an HTTP response indicate that Apache is loading the configuration. Test from another LAN device at http://192.168.4.100 as well.
07. Configure the host firewall
Arch does not enable Ubuntu's UFW by default. If you choose UFW, install it and explicitly allow needed traffic before enabling it. Preserve SSH access if you administer the server remotely.
sudo pacman -S --needed ufw
sudo ufw allow 22/tcp comment 'SSH - restrict to trusted LAN if possible'
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo systemctl enable --now ufw.service
sudo ufw enable
sudo ufw status verbose08. Enable HTTPS with Let's Encrypt
First confirm that http://www.example.com works from outside your Wi-Fi, e.g. on mobile data. HTTP-01 validation needs inbound TCP port 80.
sudo pacman -Syu --needed certbot certbot-apacheEnsure the following Apache modules are enabled (uncomment the matching LoadModule lines in /etc/httpd/conf/httpd.conf):
LoadModule ssl_module modules/mod_ssl.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule rewrite_module modules/mod_rewrite.soDo not duplicate already-active module lines. Back up Apache's configuration before allowing Certbot to modify it.
sudo cp -a /etc/httpd/conf /etc/httpd/conf.backup-before-certbot
sudo httpd -t
sudo systemctl restart httpd.service
sudo certbot --apache -d www.example.comAccept the terms and choose HTTP-to-HTTPS redirection when offered. Certbot's Apache plugin can create or modify a TLS VirtualHost; inspect the resulting configuration and test it.
curl -I https://www.example.com
sudo httpd -t
sudo certbot renew --dry-run
sudo systemctl enable --now certbot-renew.timer
systemctl list-timers | grep certbotThe Arch certbot package supplies the renewal timer. Ensure renewed certificates cause Apache to reload when required; the Apache plugin commonly handles deployment, but confirm behavior with a dry run and logs.
09. Deployment verification checklist
Tick each item as you verify it. Progress is saved only while this page remains open.
0 of 9 checks complete
10. Troubleshooting
| Symptom | Likely cause | Check |
|---|---|---|
| Hostname resolves to wrong IP | DUC or DNS cache | journalctl -u noip-duc; dig |
| Local site works, public site fails | CGNAT, eero rule, upstream router | Compare WAN/public IP; test on mobile data |
| Connection refused | Apache stopped or wrong forwarding target | ss -tlnp; systemctl status httpd |
| Apache default page | Wrong VirtualHost | httpd -S; Host header |
| Certbot validation fails | DNS mismatch or port 80 unreachable | Public HTTP test, eero and firewall |
| SSL warning | Wrong hostname or expired certificate | certbot certificates |
Useful diagnostics
sudo journalctl -u httpd -n 80 --no-pager
sudo journalctl -u noip-duc -n 80 --no-pager
sudo tail -n 80 /var/log/httpd/example.com-error.log
sudo ss -tlnp | grep -E ':(80|443)\b'
sudo httpd -t
sudo httpd -S
sudo certbot certificates11. Security & maintenance
- Keep Arch updated with
sudo pacman -Syu; review Arch News before major upgrades. - Back up the website, Apache configuration, DNS settings and recovery credentials.
- Do not expose eero management, databases or SSH to the public internet without a specific security design.
- Monitor
journalctl, Apache logs and certificate renewal results. - Use a separate server/VLAN for internet-facing workloads where practical.
- Use a secure deployment workflow rather than giving the web server broad write access to site files.
- Recheck connectivity after ISP router, eero firmware, Arch or No-IP client updates.
12. Official references
- ArchWiki — Apache HTTP Server
- ArchWiki — Certbot
- No-IP — Linux DUC
- No-IP — Linux source build instructions
- eero — Port forwarding
- Certbot
Documentation and provider menus change over time. Check the current official instructions before applying commands to a production server.