Run a ForestVPN bridge for someone else
A friend asked you to set up a ForestVPN bridge. What you run, what your server will see, and how to remove it later. No account needed.
Not yet verified on hardware. The steps match what the app sends, but nobody has yet followed this page start to finish on every kind of computer.
Someone you know asked you to help them reach ForestVPN. You run a small program, a bridge, on a Linux server, a Raspberry Pi or a computer with Docker. It passes their encrypted connection on to ForestVPN. You do not need a ForestVPN account.
- Run the one line you were sent.
- Open two ports if your server has a firewall.
- Tell them the address, so they can check it.
Before you start
- A Linux server or computer that stays on. A small rented server, a Raspberry Pi with a 64-bit system, or any machine with Docker works.
- A public address. The machine needs its own public internet address. A home connection shared between many customers cannot host a bridge.
- The setup code. The message you received has a code that starts with
FVR1-. It works once and for 24 hours. Treat it like a password. - What your server will see. Your server will see the other person's IP address, when they connect, and which ForestVPN servers they use. It never sees what they do, because their traffic is encrypted for ForestVPN.
- What it does not do. Nothing leaves the internet from your server's address. The traffic goes on to ForestVPN's servers.
- Your host's rules. Check that your hosting company allows this and that it is legal where you and the server are.
Steps
-
On the server, open a terminal and paste the line from the message. It looks like this, with their code in place of the dots.
Installs and starts the bridge
curl -fsSL https://routers.fvpn.net/bridge.sh | sudo sh -s -- 'FVR1-...' -
With Docker instead, run this with their code.
The Docker form
docker run -d --name forestvpn-bridge --restart unless-stopped \ -p <udp-port>:<udp-port>/udp -p 443:443/tcp \ -v forestvpn-bridge:/var/lib/forestvpn \ suquant/fvpn:latest bridge serve --join 'FVR1-...' -
If the server has a firewall, open UDP port (the number in the message) and TCP port 443. On Ubuntu with
ufwalready on, the installer does this by itself. At a hosting company's own firewall panel you do it by hand. -
Send the other person the server's public address. They will see it in their app and should check it against what you tell them before they confirm. A wrong address means someone else used the code.
Check it worked
- Run
fv bridge status. It should say the state is ready and list the two open ports. - Their app shows Found your bridge. They confirm, and the setup code stops working.
- If it does not appear, run
fv bridge doctorand follow the line it prints.
To remove it later, see Remove a bridge. The person you helped can also remove it from their app, which makes your server stop working as a bridge.