# OVNEX Node Setup Guide ## Seed Node Kurulumu / Setting Up an OVNEX Node --- ## Overview An OVNEX full node (`ovnexd`) downloads and validates the entire blockchain, relays transactions and blocks to peers, and provides the RPC interface used by wallets and miners. Running a node strengthens the network and is required for solo mining. This guide covers three scenarios: - **Option A:** Windows seed node (local machine, DDNS) - **Option B:** Linux VPS (free-tier cloud — Oracle Cloud / Fly.io / Render) - **Option C:** Raspberry Pi node (low-power, always-on) --- ## Minimum Requirements | Component | Minimum | Recommended | |---|---|---| | CPU | Any dual-core | Quad-core | | RAM | 2 GB | 4 GB | | Disk | 20 GB SSD | 50 GB SSD | | OS | Windows 10 / Ubuntu 20.04+ | Ubuntu 22.04 LTS | | Network | 10 Mbps | 50 Mbps+ | | Uptime | 8+ hours/day | 24/7 | --- ## Option A: Windows Node (Local Machine + DDNS) ### Step 1: Download OVNEX Daemon Download the latest `ovnexd.exe` from the GitHub Releases page: ``` https://github.com/ovnex-protocol/ovnex-core/releases ``` Extract to a folder, e.g., `C:\ovnex-node\`. ### Step 2: Open Firewall Ports OVNEX requires port **28080** (P2P) to be reachable by other nodes. **Windows Firewall (PowerShell — run as Administrator):** ```powershell New-NetFirewallRule -DisplayName "OVNEX P2P" -Direction Inbound -Protocol TCP -LocalPort 28080 -Action Allow New-NetFirewallRule -DisplayName "OVNEX RPC" -Direction Inbound -Protocol TCP -LocalPort 28081 -Action Allow ``` **Router Port Forwarding:** Log into your router admin panel (typically `192.168.1.1`) and forward TCP port 28080 to your local machine's IP address. ### Step 3: Set Up DDNS (Dynamic DNS) If your home internet has a dynamic IP address, use a free DDNS service so other nodes can always find you: **Recommended (Free):** - **DuckDNS:** https://www.duckdns.org — free, no account required, 5 subdomains - **No-IP:** https://www.noip.com — free tier available - **Cloudflare:** Free DNS with auto-update script **DuckDNS setup:** 1. Go to https://www.duckdns.org and sign in with Google/GitHub 2. Create a subdomain (e.g., `ovnex-seed.duckdns.org`) 3. Download the DuckDNS Windows update script 4. Set it to run on startup (Task Scheduler) to keep your IP updated ### Step 4: Start the Node **Basic start (console window):** ```cmd cd C:\ovnex-node ovnexd.exe --log-level 1 ``` **Start as background service (PowerShell):** ```powershell Start-Process -FilePath "C:\ovnex-node\ovnexd.exe" -ArgumentList "--detach --log-file C:\ovnex-node\ovnexd.log" -WindowStyle Hidden ``` **Start on Windows boot (Task Scheduler):** 1. Open Task Scheduler → Create Basic Task 2. Trigger: "When the computer starts" 3. Action: Start `C:\ovnex-node\ovnexd.exe` with argument `--detach` ### Step 5: Verify Node Is Running ```powershell # Check if node is responding Invoke-WebRequest -Uri "http://127.0.0.1:28081/json_rpc" -Method POST -ContentType "application/json" -Body '{"jsonrpc":"2.0","id":"0","method":"get_info"}' ``` You should see a JSON response with `"status": "OK"` and block height information. --- ## Option B: Free-Tier Linux Cloud VPS Several cloud providers offer permanently free Linux instances suitable for running an OVNEX node. ### Oracle Cloud Always Free (Best Option) Oracle offers 2 ARM-based instances with 1 OCPU and 6 GB RAM each — permanently free, no credit card billing after trial. **Setup:** 1. Create account at https://www.oracle.com/cloud/free/ 2. Launch an Ubuntu 22.04 LTS ARM instance (Ampere A1 shape, 1 OCPU / 1 GB RAM minimum) 3. Configure security rules to allow TCP port 28080 (P2P) inbound **Install and run ovnexd (Ubuntu):** ```bash # Download latest Linux binary from GitHub Releases wget https://github.com/ovnex-protocol/ovnex-core/releases/latest/download/ovnex-linux-x64.tar.gz tar -xzf ovnex-linux-x64.tar.gz cd ovnex-linux-x64/ # Start node in background ./ovnexd --detach --log-file ~/ovnexd.log --data-dir ~/.ovnex # Check status ./ovnex-rpc --rpc-bind-port 28081 get_info ``` **Run as systemd service (auto-restart on crash/reboot):** ```bash sudo tee /etc/systemd/system/ovnexd.service << EOF [Unit] Description=OVNEX Blockchain Node After=network.target [Service] User=$USER WorkingDirectory=/home/$USER/ovnex-linux-x64 ExecStart=/home/$USER/ovnex-linux-x64/ovnexd --no-igd --log-level 1 --data-dir /home/$USER/.ovnex Restart=on-failure RestartSec=10 LimitNOFILE=65536 [Install] WantedBy=multi-user.target EOF sudo systemctl daemon-reload sudo systemctl enable ovnexd sudo systemctl start ovnexd sudo systemctl status ovnexd ``` ### Fly.io Free Tier Fly.io offers 3 free shared VMs (256 MB RAM each). RAM is tight for a full node but sufficient for a pruned or remote sync. ```bash # Install flyctl curl -L https://fly.io/install.sh | sh # Deploy node (after creating fly.toml config) fly launch fly deploy ``` --- ## Option C: Raspberry Pi Node A Raspberry Pi 4 (4 GB RAM recommended) makes an energy-efficient, always-on OVNEX node. **Requirements:** - Raspberry Pi 4 (4 GB RAM or 8 GB) - 32 GB+ microSD card (Class 10 / A2) - Raspberry Pi OS (64-bit, Lite recommended) - Stable internet connection **Install:** ```bash # Download ARM Linux binary wget https://github.com/ovnex-protocol/ovnex-core/releases/latest/download/ovnex-linux-arm64.tar.gz tar -xzf ovnex-linux-arm64.tar.gz cd ovnex-linux-arm64/ # Start with limited cache to fit in 4 GB RAM ./ovnexd --max-concurrency 1 --block-sync-size 20 ``` --- ## Seed Node Registration If you are running a publicly accessible node (Option A with DDNS, or Option B), you can register it as a seed node so new OVNEX users can find the network. **To register your node:** Open an issue or pull request at: ``` https://github.com/batikentdurna/ovnex-protocol-ovnex-core- ``` Include your node's public address in the format: ``` seed.yourdomain.duckdns.org:28080 ``` Registered seed nodes will be included in future `cryptonote_config.h` updates. --- ## Node Configuration Options | Flag | Default | Description | |---|---|---| | `--detach` | off | Run as background daemon | | `--log-level` | 0 | Verbosity (0=minimal, 4=debug) | | `--log-file` | none | Write logs to file | | `--data-dir` | `~/.ovnex` | Blockchain data directory | | `--rpc-bind-port` | 28081 | RPC port | | `--p2p-bind-port` | 28080 | P2P port | | `--no-igd` | off | Disable UPnP (use on servers/VPS) | | `--block-sync-size` | 20 | Blocks per sync batch (reduce for low RAM) | | `--max-concurrency` | auto | Thread count (reduce for Raspberry Pi) | | `--add-peer` | none | Manually add a peer: `--add-peer ip:port` | --- ## Monitoring Your Node ### View sync progress ```bash # Linux ./ovnex-rpc --rpc-bind-port 28081 get_info | python3 -m json.tool # Windows PowerShell Invoke-WebRequest -Uri "http://127.0.0.1:28081/json_rpc" -Method POST -ContentType "application/json" -Body '{"jsonrpc":"2.0","id":"0","method":"get_info"}' | Select-Object -ExpandProperty Content ``` The response includes: - `height` — current synced block height - `top_block_hash` — hash of the latest synced block - `incoming_connections_count` — peers connected to you - `outgoing_connections_count` — peers you are connected to - `synchronized` — `true` when fully synced ### View logs (Linux) ```bash tail -f ~/.ovnex/ovnexd.log ``` --- ## Troubleshooting | Problem | Solution | |---|---| | Node not syncing | Check firewall; try `--add-peer` with a known seed node | | High RAM usage | Add `--block-sync-size 10` to reduce memory pressure | | `Error: DB opened with different pruning settings` | Delete `~/.ovnex/lmdb/` and resync (data directory, not config) | | RPC not responding | Check port 28081 is not blocked; verify node is running | | Stuck at same block | Restart node; check if network has peers with higher block height | --- ## Security Best Practices 1. **Never expose RPC port 28081 publicly** without authentication — it allows anyone to query your node and (if wallet RPC) could expose funds. Use `--rpc-bind-ip 127.0.0.1` to bind only to localhost. 2. **P2P port 28080** should be publicly reachable for a good node. Use firewall rules to allow only 28080 inbound. 3. **Keep the daemon updated.** Protocol upgrades (hardforks) require all nodes to update. Subscribe to the GitHub repository for release notifications. 4. **Backup your wallet files** (`*.keys` files) separately from the blockchain data. Blockchain data can be resynced; wallet keys cannot be recovered if lost without the seed phrase. --- *OVNEX Node Setup Guide v1.0 — 2026* *Website: https://ovnex.io/ | Email: info@ovnex.io* *GitHub: https://github.com/batikentdurna/ovnex-protocol-ovnex-core-*