this post was submitted on 29 Sep 2025
32 points (92.1% liked)

Selfhosted

60451 readers
929 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
32
Need help with VPN (lemmy.dbzer0.com)
submitted 9 months ago* (last edited 8 months ago) by imetators@lemmy.dbzer0.com to c/selfhosted@lemmy.world
 

I currenly reside in a country with strict piracy rules but also have access to the internet in a country where piracy is not enforced. I want to setup a VPN and route qBittorrent's traffic through it. The idea is to do something like this:

I am fresh to selfhosting and most of the time have no clue how to achieve what I want. So far I have tried Tailscale but I think it won't work how I want it to. If it helps, I have domain name registered. Can anybody point me to the right direction?

Update (if anyone is seeking answers):

I went with tailscale which I have already set up before on the rpi3. Somehow, no matter what I try, wireguard or pivpn would not work. Maybe I have hands growing out of my ass or something, no idea.

What did work is Dante. I setup socks5 on pi through tailscale0 and it worked wonders. Qbittorent did connect and detected IP of rpi3. The best part is that opposed to wireguard, dedicated port does not have to be open in order for Dante to work. I see it as a win win! Now I'm hyped to go back to my homeland and install pi there.

you are viewing a single comment's thread
view the rest of the comments
[–] MajesticTechie@feddit.uk 1 points 9 months ago

run installer curl -L https://install.pivpn.io/ | bash

  • configure wireguard
  • setup non root user
  • Set a port

Create a user with pivpn add

Example:

root@funhaus:~# pivpn add
Enter a Name for the Client: user.name

The conf file can also be found in /home/user.name/configs

Copy the conf to your machine. Install WireGuard and use that conf.

In qbitorrent you should make sure the application is set to use the VPN network, otherwise it'll use both. Go to Settings > Advanced > Set Wireguard from "Network Interface"