Ethereum Full Node: Tu Chay Geth Tren VPS
Chay Ethereum full node rieng la cach toi uu de tuong tac voi blockchain Ethereum ma khong phai phu thuoc vao Infura, Alchemy hay QuickNode - cac dich vu co the rate limit, censor giao dich hoac thu thap metadata su dung. AnubizHost cung cap VPS Iceland voi dia NVMe lon va bang thong cao phu hop chay Ethereum mainnet full node. Bai viet nay huong dan cai dat geth + lighthouse, dong bo blockchain, va trien khai MEV-Boost hoac validator voi bao mat manh me.
Need this done for your project?
We implement, you ship. Async, documented, done in days.
Tai Sao Tu Chay Ethereum Node
Infura va Alchemy cung cap RPC tien loi nhung doi hoi tao tai khoan, co rate limit va co the cong cap quyen truy cap khi bi yeu cau phap ly. Tu chay Ethereum full node co 5 loi the:
- Quyen rieng tu giao dich: Khi gui transaction qua RPC public, dia chi va y dinh giao dich ro ri ra cong cu MEV. Voi node rieng, transaction di thang vao mempool ma khong bi quan sat.
- Censorship-resistance: Infura tung bi cao buoc kiem duyet giao dich theo yeu cau OFAC. Node rieng khong bi loc.
- Khong rate limit: Voi DApp co luong query cao, RPC public se gioi han. Node rieng chi gioi han boi nang luc phan cung.
- Decentralization: Moi node rieng la mot vote cho mang phi tap trung Ethereum. Cang nhieu node, mang cang an toan.
- Validator hoac MEV-Boost: Cac role active can node rieng. Validator earn 4-5% APR, MEV-Boost relay co the earn them.
Ethereum mainnet full node hien chiem khoang 1.2TB dia. VPS AnubizHost goi Storage hoac Pro+ voi 1.5TB+ NVMe phu hop. Bang thong khoang 8-10 TB/thang du de duy tri sync va serve peer.
Cai Dat Geth + Lighthouse Cho Full Node
Ethereum sau The Merge can ca execution client (geth) va consensus client (lighthouse hoac prysm). Cai dat tren Ubuntu 22.04:
add-apt-repository -y ppa:ethereum/ethereum
apt update && apt install -y ethereum
# Cai Lighthouse
curl -LO https://github.com/sigp/lighthouse/releases/latest/download/lighthouse-x86_64-unknown-linux-gnu.tar.gz
tar -xvf lighthouse-x86_64-unknown-linux-gnu.tar.gz
mv lighthouse /usr/local/bin/
Tao thu muc va JWT secret de geth va lighthouse giao tiep:
mkdir -p /var/lib/ethereum /var/lib/lighthouse
openssl rand -hex 32 | tr -d "\n" > /var/lib/ethereum/jwtsecret
chmod 600 /var/lib/ethereum/jwtsecret
Tao systemd unit cho geth:
# /etc/systemd/system/geth.service
[Service]
ExecStart=/usr/bin/geth \
--datadir /var/lib/ethereum \
--authrpc.jwtsecret /var/lib/ethereum/jwtsecret \
--authrpc.addr 127.0.0.1 --authrpc.port 8551 \
--http --http.addr 127.0.0.1 --http.port 8545 \
--syncmode snap
Restart=always
User=ethereum
Tao systemd unit cho lighthouse beacon:
# /etc/systemd/system/lighthouse-bn.service
[Service]
ExecStart=/usr/local/bin/lighthouse bn \
--network mainnet \
--datadir /var/lib/lighthouse \
--execution-endpoint http://127.0.0.1:8551 \
--execution-jwt /var/lib/ethereum/jwtsecret \
--checkpoint-sync-url https://mainnet.checkpoint.sigp.io
Restart=always
User=lighthouse
Khoi dong ca hai, geth se sync 5-7 ngay tren NVMe nhanh. Lighthouse sync chi vai gio nho checkpoint sync.
Bao Mat Va Mo Rong Cho Validator/MEV-Boost
Sau khi node sync xong, ban co the tan dung theo nhieu cach.
Bao mat RPC endpoint: KHONG mo cong 8545 ra Internet. Su dung nginx reverse proxy voi authentication hoac chi truy cap qua WireGuard VPN. Neu can expose cho DApp public, them rate limit va API key:
location /rpc {
if ($http_x_api_key != "SECRET_KEY") { return 401; }
limit_req zone=eth_rpc burst=20 nodelay;
proxy_pass http://127.0.0.1:8545;
}
Validator setup: Voi 32 ETH (~$100k tai gia hien tai), ban co the chay validator. Su dung lighthouse vc tach biet voi beacon node de bao mat. Validator key luu encrypted, password truy van qua TPM hoac yubikey - KHONG luu plaintext.
lighthouse vc \
--network mainnet \
--beacon-nodes http://127.0.0.1:5052 \
--suggested-fee-recipient 0xYOUR_ADDRESS
MEV-Boost relay: De maximize earning, chay MEV-Boost tu mhgreen, agnostic, ultra sound money etc. MEV-Boost lay block tu relayer va dua cho validator chon - thuong tang earning 30-50%.
Monitoring: Cai prometheus + grafana de theo doi sync status, peer count, attestation success rate. Alert Telegram khi co van de. Ket noi alert qua VPN noi bo, khong qua Internet public.
Voi VPS Iceland AnubizHost, ban co Ethereum full node bao mat, rieng tu va co the kiem MRR thu dong neu chon validator path - tat ca trong jurisdiction bao ve quyen rieng tu manh me.
Related Services
Why Anubiz Host
Ready to get started?
Skip the research. Tell us what you need, and we'll scope it, implement it, and hand it back — fully documented and production-ready.