Using a Pi as a VPN?

I read more and more about people using their pi as a VPN “Tunnel”.

Currently I pay a VPN provider… I would say since 3 years monthly. I can use it on 4 Devices at the Same time.

What exactly can a pi do in terms of vpn?
Can I use it as a Pihole + VPN?
Is IT possible to use a foreign IP Adress just when i need IT and not permanently on All Devices?

Yes, it’s common to use a Pi as a VPN, to give you access to your local network when you are away from home.

It will only give you access to your local network and home IP address. It can’t give you a foreign IP address unless it’s physically located in a foreign place. Your paid VPN service has servers all over the world, that’s how they can give you IP address choices from all over.

Most good routers have a VPN function built in, so you may not need the Pi at all.

You would be using your network as the vpn network. Sooo, I wouldn’t go turning on all your download things with it.

It is good if you travel and want all your traffic to go to your house, in a tunnel, then exit at your house. You can save money on wifi calls from all over the world, that way. Tailscale would be something you may want to look into. Easier setup of the tunnels and easy to make your pi an exit node

A lot of people confuse that they can replace their VPN service provider with Pi VPN. However, these two are different use cases. Pi VPN is usually used to get access to home network and resources from outside, e.g. while traveling. Yes, if you are in Paris and your Pi is in California, you can configure and use it to access internet as well, that will give your device California IP address.
Having a Pi VPN at home and using this VPN to access www from home network has no value. You encrypt network traffic in your own private network only. Point is, using cloud VPN service provider or Pi VPN will depend on your use case, an in most probability, they are not exactly interchangeable unless you deploy 4-5 Pi VPN across different geographic locations all over the world.

For constructive feedback and better engagement, detail your efforts with research, source code, errors, and schematics. Stuck? Dive into our FAQ† or branch out to /r/LinuxQuestions, /r/LearnPython, or other related subs listed in the FAQ. Let’s build knowledge collectively.

† If any links don’t work it’s because you’re using a broken reddit client. Please contact the developer of your reddit client.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

I use a Pi as a VPN server and as a VPN client for different scenarios. My VPN server grants access to my home LAN via Wireguard to my personal mobile and laptop. My VPN client is on a server running qbittorrent to download and seed torrents 24/7, and I use Samba to make the storage for torrents a SMB share where I can upload torrent files and download content (Linux ISOs, for example).

i would consider twingate because its free and works great on a bunch of devices, plus you dont need to use DDNS

This works great for me https://www.pivpn.io/

cheerful mountainous cake repeat punch workable gaze bewildered shy modern

This post was mass deleted and anonymized with Redact

Yes:

Take a look at the Tailscale and enable the Exit node on the Pi.

Ahhhh i thought it would be possible to cancel my subscription and use my Pi for the vpn stuff. But your comment makes sense to me. Thank you.

How can i do that? I m truck driver and i need it a lot. Can we talk about that?

Hey, I tried recently to do exactly what you described for a seedbox and had trouble getting samba up and running. I could share the home folder but couldn’t share the external hard drive.

Do you have a guide that you followed or any tips? Thanks either way!

Dude thank you, I’ve been looking for a guide for this exact type of thing!

[1](https://www.reddit.com/r/SokkaHaikuBot/comments/15kyv9r/what_is_a_sokka_haiku/) ^by ^ycbeta:

Take a look at the

Tailscale and enable the

Exit node on the Pi.


^Remember ^that ^one ^time ^Sokka ^accidentally ^used ^an ^extra ^syllable ^in ^that ^Haiku ^Battle ^in ^Ba ^Sing ^Se? ^That ^was ^a ^Sokka ^Haiku ^and ^you ^just ^made ^one.


  1. Sokka-Haiku ↩︎

You can use your Pi for “vpn stuff”, it’s just that you aren’t using it with cloud vpn hosts, you’re using it with a vpn server on your home LAN. You can vpn into that server from anywhere on the planet and then configure it to let out through your own gateway and onto the internet. So, it’ll look like to anyone on the internet that you’re connecting from home.

A VPN is not just a cloud service, VPN servers came first, then companies sold VPN as a service in the cloud.

If a Pi running VPN on your home lan serves your needs, do it and save the money.

so in my fstab I have my external drive:

UUID=7001-C614 /mnt/ClearDisk exfat defaults,auto,umask=000,users,rw 0 0

And in my smb.conf I have:

[ClearDisk]

comment = ClearDisk

read only = no

path = /mnt/ClearDisk

guest ok = yes

so I can mount my external hdd via ‘net use y: \\192.168.1.100\ClearDisk’ and access my stuff. What kills me is it’s a Pi 3B+, so file transfers are slow, but I can’t justify a Pi 4 for a seedbox.