Complete technical deployment guide

Publish a website from home with Arch Linux

Register a domain, configure No-IP Dynamic DNS, install its Linux update client, forward traffic through an eero router, and serve an HTTPS website with Apache.

Arch LinuxNo-IP DUC 3.xeeroApache httpdLet's Encrypt

← All Technical Guides

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.

Visitorwww.example.com
DNS / No-IPPublic IPv4 updated by DUC
eero → ApacheTCP 80/443 → 192.168.4.100
Examples: registered domain example.com, public site www.example.com, No-IP hostname myhomeserver.ddns.net, server LAN address 192.168.4.100. Replace every placeholder.
CGNAT warning: Ordinary IPv4 forwarding will not work when the ISP places you behind carrier-grade NAT. Compare eero's WAN address with the public IP reported by an external service before proceeding.

02. Register a domain

  1. Choose a registrar (for example Namecheap, Cloudflare Registrar or another reputable provider).
  2. Search for and purchase an available domain. Enable renewal and privacy options where applicable.
  3. Verify the account and locate its DNS records management page.
  4. 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

  1. Create and verify an account at noip.com.
  2. Create an IPv4 Dynamic DNS hostname such as myhomeserver.ddns.net.
  3. At your domain DNS provider, create the following record:
TypeHost/nameTarget/value
CNAMEwwwmyhomeserver.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.org

The 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/noip

Download, 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 --help
Inspect the downloaded archive and source before building; archive layout and releases can change. The build procedure follows the official No-IP source-based Linux approach.

Create 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.env
NOIP_USERNAME=YOUR_DDNS_KEY_USERNAME
NOIP_PASSWORD=YOUR_DDNS_KEY_PASSWORD
NOIP_HOSTNAME=myhomeserver.ddns.net

Create /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.target
Verify the options with noip-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-pager

Check 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 route

Open 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

PurposeProtocolExternalInternalDestination
HTTPTCP8080192.168.4.100
HTTPSTCP443443192.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.org

Compare 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.com

Enable 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/*.conf

Create /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 -S

Syntax 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 verbose
If you already manage nftables, firewalld or iptables rules, use your existing firewall instead of enabling an overlapping policy. Prefer restricting SSH to the local network or VPN, rather than allowing it globally.

08. 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-apache

Ensure 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.so

Do 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.com

Accept 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 certbot

The 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

SymptomLikely causeCheck
Hostname resolves to wrong IPDUC or DNS cachejournalctl -u noip-duc; dig
Local site works, public site failsCGNAT, eero rule, upstream routerCompare WAN/public IP; test on mobile data
Connection refusedApache stopped or wrong forwarding targetss -tlnp; systemctl status httpd
Apache default pageWrong VirtualHosthttpd -S; Host header
Certbot validation failsDNS mismatch or port 80 unreachablePublic HTTP test, eero and firewall
SSL warningWrong hostname or expired certificatecertbot 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 certificates

11. 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

Documentation and provider menus change over time. Check the current official instructions before applying commands to a production server.