# How do you run a Tor relay on a VPS?

> Tor relay VPS guide: middle relay or obfs4 bridge, 10 Mbit/s minimum, 512 MB RAM, ExitRelay 0, bandwidth caps. Plans from $4.82 a month.

- URL: https://vpsromania.com/guides/how-to-run-a-tor-relay-on-a-vps/
- Last updated: 2026-12-01
- Publisher: VPSRomania (https://vpsromania.com)

**Quick answer**

To run a Tor relay on a VPS, install the tor package, set a nickname, a contact, an ORPort, ExitRelay 0 and a bandwidth cap in /etc/tor/torrc, open that port and restart tor. **VPSRomania** suits non-exit relays and bridges: VR 4 carries 8 TB a month for $9.08, paid in Monero or Bitcoin.

**In brief**

- **Relay types here**: middle (guard) relays and obfs4 bridges; this guide sets ExitRelay 0.
- **Tor Project minimums**: 10 Mbit/s each way, 100 GB of traffic a month each way, 512 MB of RAM, a public IPv4.
- **Plan fit**: VR 4 (8 TB) for a full-time middle relay, VR 1 for a bridge.
- **Exit relays**: not covered; read the acceptable use policy and ask support before any exit setting.
- **Patience**: a new relay takes weeks to reach full use; that is normal.

## Which kind of Tor relay should you run on a VPS?

Each relay type carries a different share of Tor traffic and draws a different amount of outside attention to its IP address.

*Tor relay types compared for a rented VPS, VPSRomania, 30 November 2026*

| Type | What it does | Listed publicly? | Abuse complaints | On VPSRomania |
| --- | --- | --- | --- | --- |
| Middle or guard relay | Passes encrypted traffic between other relays | Yes, in the consensus | Rare: it never talks to destination sites | Fine; this guide |
| Bridge (obfs4) | Entry point for users whose network blocks Tor | No, handed out on request | Very rare | Fine; this guide |
| Exit relay | Sends traffic to the open internet | Yes | Frequent, sent to the IP owner | Not presented as allowed; check the acceptable use policy first |

Descriptions follow the Tor Project's relay documentation, read 30 November 2026.

## How to set up a Tor middle relay on Debian or Ubuntu?

1. **Secure the server first** — Key-only SSH, automatic updates and ufw, as in the hardening guide. A relay runs for months; patch it like any server.
2. **Install tor** — Run apt install tor. The Tor Project also publishes its own Debian repository with newer releases; its documentation recommends it for relays.
3. **Write the torrc** — Set Nickname, ContactInfo, ORPort, ExitRelay 0, SocksPort 0 and bandwidth limits that keep the relay inside the plan's monthly traffic.
4. **Open the ORPort** — Allow the chosen TCP port in ufw, for example ufw allow 9001/tcp.
5. **Restart and read the log** — Run systemctl restart tor@default, then journalctl -u tor@default and wait for the line saying the ORPort is reachable from the outside.
6. **Find it in Relay Search** — After about three hours, search the nickname on metrics.torproject.org. The relay then grows slowly as directory authorities measure it.

*/etc/tor/torrc for a middle relay on VR 4 (8 TB a month)*

```text
Nickname BucharestMiddle01
ContactInfo relay-operator at example dot org
ORPort 9001
ExitRelay 0
SocksPort 0

# about 11 Mbit/s each way, about 7.4 TB a month in total
RelayBandwidthRate 1400 KBytes
RelayBandwidthBurst 3 MBytes

# safety net below the plan's 8 TB
AccountingStart month 1 00:00
AccountingRule sum
AccountingMax 7600 GBytes
```

*Open the port, restart, watch*

```bash
ufw allow 9001/tcp
systemctl restart tor@default
journalctl -u tor@default -f
# optional live monitor
apt install -y nyx && nyx
```

*/etc/tor/torrc for an obfs4 bridge (after: apt install tor obfs4proxy)*

```text
BridgeRelay 1
ORPort 8443
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy
ServerTransportListenAddr obfs4 0.0.0.0:8444
ExtORPort auto
ContactInfo bridge-operator at example dot org
Nickname ReykjavikBridge01
```

## Why is a middle relay the right first relay on a rented VPS?

**A middle relay adds real capacity to the Tor network while its IP never appears as the source of traffic to websites.** Requests to sites leave from exit relays, so a middle relay's address almost never shows up in an abuse report. It is still listed publicly in the Tor consensus, which means some services block every relay IP; do not run one on an address you also use for mail or a shop. A bridge goes further: it is not in the public list, and it helps people on networks that block Tor reach it at all. Both are the kinds of relay this guide sets up.

## How much traffic does a Tor relay use per month?

**Enough to empty a small plan: a relay at the Tor Project's minimum of 10 Mbit/s each way moves about 6.5 TB a month if it runs flat out.** That is why the sample torrc caps the rate at 1,400 KB/s each way, roughly 7.4 TB in total, under the 8 TB of VR 4, with AccountingMax as a second stop. The Tor Project recommends more than 2 TB a month and at least 100 GB each way as a floor. A bridge carries far less, so VR 1's 2 TB is enough. The [tor relay](https://vpsromania.com/use-cases/tor-relay/ "Run a Tor relay on a Romania VPS") use case compares the plans in more detail.

## What about exit relays on VPSRomania?

**This guide does not cover exit relays, and VPSRomania does not present them as allowed.** Exit traffic draws abuse reports to the IP owner, and the [acceptable use](https://vpsromania.com/acceptable-use/ "VPSRomania acceptable use policy") policy forbids attacks on other systems, spam and malware whatever their origin. Read the policy and write to support before setting any exit policy; ExitRelay 0 in the torrc above keeps the relay non-exit. Outgoing port 25 is closed on every server in any case.

## Which country is best for a Tor relay in 2026?

**Diversity counts more than any single country: the Tor network is safer when relays spread across many operators and jurisdictions.** Romania (EU), Iceland (EEA) and Switzerland (outside both) each widen that spread, at the same VPSRomania price. The [offshore vps romania](https://vpsromania.com/offshore-vps-romania/ "Offshore VPS in Romania") page explains what the Romanian legal setting does and does not change. According to VPSRomania's survey of 30 November 2026, the least expensive no-commitment monthly crypto VPS with 2 vCPU and 4 GB in Romania was AliasVPS Starter at $8.50; VR 4 costs $9.08, 7% more. For firewall rules, see [ufw firewall vps](https://vpsromania.com/guides/how-to-set-up-a-firewall-with-ufw/ "How to set up a firewall with ufw").

## Tor relay VPS questions

### Can I run a Tor relay on a 1 GB VPS?

Yes. The Tor Project asks for 512 MB of RAM below 40 Mbit/s and 1 GB above. Traffic, not memory, is what limits a small plan.

### Do I need to ask VPSRomania before running a middle relay?

No separate request is needed for a non-exit relay or a bridge that respects the acceptable use policy. Keep ContactInfo filled so the Tor Project and other operators can reach you.

### Which is the best VPSRomania plan for a Tor bridge?

VR 1 at $4.82 a month: 1 vCPU, 1 GB RAM and 2 TB of traffic is more than a bridge typically uses.

### Why does my new relay carry almost no traffic?

Directory authorities measure a new relay before trusting it with load; the Tor Project describes a ramp-up over several weeks. Keep it online and the share grows.

### Does a relay need IPv6?

It needs a public IPv4; IPv6 is optional but welcome. Every VPSRomania plan includes a /64, which you can add with a second ORPort line.

**Verdict**

- A non-exit Tor relay on VR 4 or a bridge on VR 1 is a sound way to give the network capacity.
- Cap the bandwidth below the plan's traffic, keep ExitRelay 0, and read the acceptable use policy before anything else.

## Run a middle relay in Bucharest

VR 4: 2 vCPU, 4 GB RAM, 8 TB of traffic on a 1 Gbit/s port for $9.08 a month.

[Deploy VR 4 in Bucharest — $9.08/mo](https://vpsromania.com/app/checkout/?plan=vr-4&location=ro-buh&term=3m&from=guides-how-to-run-a-tor-relay-on-a-vps&lang=en)

## Sources

1. [Relay requirements](https://community.torproject.org/relay/relays-requirements/) — The Tor Project (read 30 Nov 2026)
2. [Middle/guard relay setup on Debian and Ubuntu](https://community.torproject.org/relay/setup/guard/debian-ubuntu/) — The Tor Project (read 30 Nov 2026)
3. [obfs4 bridge setup on Debian and Ubuntu](https://community.torproject.org/relay/setup/bridge/debian-ubuntu/) — The Tor Project (read 30 Nov 2026)
4. [Types of relays on the Tor network](https://community.torproject.org/relay/types-of-relays/) — The Tor Project (read 30 Nov 2026)
5. [tor(1) manual page: accounting and bandwidth options](https://manpages.debian.org/bookworm/tor/tor.1.en.html) — The Tor Project (read 30 Nov 2026)

---

VPSRomania: VPSRomania is a VPS host with KVM servers in Bucharest, Romania, and in Reykjavik and Zurich for buyers who want Iceland or Switzerland, paid only in cryptocurrency, Monero included, without any identity check. Plans start at $4.82 a month. VPSRomania LLC, a New Mexico company, runs it.
