PiVPN : How to Run a VPN Server on a $35 Raspberry Pi!
HTML-код
- Опубликовано: 18 июн 2024
- Buy it on Amazon - lon.tv/2vhlg (affiliate link) - Note PiVPN has moved to a new domain. Use "curl -L install.pivpn.dev | bash" to install, everything else should be the same. A $35 Raspberry Pi can work as a very effective VPN server. You'll gain access to your local network resources remotely and have a secure connection to the Internet. See more Raspberry Pi : lon.tv/pi and subscribe! lon.tv/s
LINKS:
PiVPN Project: www.pivpn.io/
OpenVPN Windows Client:
openvpn.net/community-downloads/
Tunnelblick (Mac client):
tunnelblick.net/downloads.html
VIDEO INDEX:
0:00 - Intro
02:08 - Setting up PiVPN
03:55 - Setting up static local IP address
06:37 - Assigning port number
07:58 - Setting up dynamic dns (DDNS)
09:01 - Dynamic DNS services
13:38 - Creating PiVPN users
14:13 - OVPN user configuration file
16:41 - Configuring Windows Client
18:44 - Router port forwarding
20:03 - Connecting to the VPN on Windows
22:20 - Connecting to the VPN on Android
25:11 - Connecting to the VPN on iOS
25:56 - Connecting to the VPN on Mac
27:13 - Overall VPN Performance
29:45 - Managing Users on VPN
30:52 - Final Thoughts
31:49 - PiVPN works on PCs too
Subscribe to my email list to get a weekly digest of upcoming videos! - lon.tv/email
See my second channel for supplementary content : lon.tv/extras
Join the Facebook group to connect with me and other viewers!
lon.tv/facebookgroup
Visit the Lon.TV store to purchase some of my previously reviewed items! lon.tv/store
Read more about my transparency and disclaimers: lon.tv/disclosures
Want to chat with other fans of the channel? Visit our forums! lon.tv/forums
Want to help the channel? Start a Member subscription or give a one time tip!
lon.tv/support
or contribute via Venmo!
lon@lon.tv
Follow me on Facebook!
/ lonreviewstech
Follow me on Twitter!
/ lonseidman
Catch my longer interviews in audio form on my podcast!
lon.tv/itunes
lon.tv/stitcher
or the feed at lon.tv/podcast/feed.xml
Follow me on Google+
lonseidman.com
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites. Наука
I feel like I’m watching a high quality 90’s walkthrough. I love it.
I was about to say the same thing!!
True
I thought the same thing when I saw the installation screen. I miss 1990.
Do i need a public ip to do this?
@@chrisparussin5359 Check the video again :).
Very nice and clear video with good explanation! Thanks Lon!
Best home VPN walkthrough I've seen. Thank you!
This guy is great. Long video but it was thorough and didn't feel like it had any filler. All valid and useful information. And he is so wholesome and happy. Keep it up man.
I really appreciate your video showing all the process from installing the server to configuring the client.this is the most useful video I've seen so far on the topic. Thank you
So fantastic, this helped establish the core of my server project, very clear & concise for a newbie like me.
Thank you for the clear instruction. I always hesitate to set up a vpn server due to its complexity, but your video making this task painless. Thanks again!
I love how articulately he speaks. Clear and straight to the point too.
Excellent job. I appreciate the hard work you put into this. One of the best tutorials I have watched. I was easily able to set this up.
Having tried to setup a VPN on my Pi some years ago, I gave up trying because each time I updated/re-imaged the Pi the setup for a VPN was different. Using this method I had a VPN setup and running in less than half the time it took to watch the video. Thank you for finding this, it has made my very happy.
This video was fantastic. I know it's 3 years old now but man this was detailed and insightful, and you were crystal clear and detailed when describing everything. Thank you for this!
WOW, very well done, from A-Z, setup to expected connection speeds from the outside. You covered it all with excellent explanations, descriptions, and examples. GOT IT!!!
This tutorial was super detail and to the perfect required depth and detail for a novice to pick up and deploy. Excellen. Keep the good the work coming through.
Lon, this gave me the info and confidence to finally get mine running! Works great and I owe that to you! Thanks!
Just got my pi4 and set up a vpn, your video made it so easy. Tested it on all my devices, works great. Thank you so much.
I wanna say thanks for sharing with us the VPN server setup on Pi !! I love it.
Brilliant video, so easy to follow. Thank you Lon. Subscribed.
Lon, you sure fit a plethora of information into a half hour video! I did thoroughly enjoy it though, as I am thinking of doing that for myself. I also have a spare computer that I might just do a Linux install on, and go in that direction. A lot to think about, to be sure, but certainly do-able. Thanks for the video and information.
Nice setup man, I’ll set this up with my nas soon. ❤️
Lon, another fantastic tutorial! Thank you for showing this. This is exactly what I was looking for!
Lon - appreciate lots of your posts, this one is outstanding!!
I watched your video and I have to say: it was brilliant. Some things I need to have another look at , but the video is one of the best I've watched. Well done and keep it up!
Great production values, great teacher, great content, yeah, top notch video!
Very good video, with every step explanation. I've tried to use some other manuals, but on the end I've uninstall all and start from scratch following this video. Everything works like a charm till laptop and mobile client run. Thanks a lot.
I decided to do this with an old Model B+ I had laying around, and went straight to this video. Thanks, Lon. Everything went great!
@1badhorsie about 5 Mb/s download (upstream from my house) which is about what my ISP gives me. It works great to check ip cameras and stuff like that! If I do a speed test, the pi's cpu would go to 100% but for small tasks it works just fine. I imagine a Pi 2 would be miles better.
I really don't often comment on youtube videos, but I had to comment this one. This is literraly what I was searching for, for a very long time. Thank you sir, you made my workflow so much better when I'm on the road. This is perfect!
Internet provider spying on you whatewer you made :)
Love a "step by step" video.. Good job Lon
That show went off the air in the 90's. Lol 😂
What an awesome and extremely detailed tutorial ! We need more of you on RUclips , Sir.
Heres what happened to me:
1. Stumbled upon this channel.
2. Watched the amazing vpn walk through.
3. Subscribed instantly.
Tanx Lon 👍
Great video!
I will use this, as I was looking to use it for a long time.
Tried doing it with my QNAP NAS, but I think this solution is better.
Different things, require separate devices.
Cheers.
AMAHI HAS VPN
I've switched from PiVPN (OpenVPN) to Wireguard recently (Raspberry Pi 3 server too). That was a pretty good decision
Had it up and running in about an hour. Very nice. Thank you!
This is the best explanation of OpenVPN I've seen yet. Thanks so much for posting this!
Best of all the VPN videos . Took me just 35 mins to be on my OWN VPN after watching your video. Out of these 35 mins 20 mins is what it takes to complete the " KEY " step after using 2048 bit .
Did you ever try to compare bandwith of VPN with long and short key? Is it not too slow with your choice? I will use Pi version 2 or one (have both in unused stuff box)...
@@AK-yn4br I am not using the VPN for media so I am ok with the BW and 2038bit strong key.
How did you do the install? curl doesnt works for me...
@@TobiasDettinger Try installing curl. You can just do "sudo apt install curl"
When I'm on public Wi-Fi with my tablet, I'm happy knowing that a Raspberry Pi is at home keeping me safe.
@1Bit Yeah, just for when I'm out on public wifi.
So through public wifi you connect to the pi to connect to the internet through your home connection? Or am I misunderstanding?
correct.
Do i need a public ip to do this?
@@chrisparussin5359 Watch the video 8:00
Thank you this works a treat. I have a raspbx install at home (asterisk pbx for raspberry pi), in fact I’ve put pivpn on this same device, and if I’m away from home with an OpenVPN client I can use a VoIP phone adapter to connect to the home pbx. Works much better than trying to forward sip ports, which is a nightmare.
Excellent detailed walkthrough. P.S. Love the ZX81! Your bookcase is a history of computing !
This is amazingly detailed. Well done!
I run headless raspbian strech on my Pi3 B, thanks for the video, helped me a lot
I just finished configuring my server it worked!!! nice job , this will come in handy when not at home.
Thank you
Thank you Lon for this video. I had a raspberry pi lying around and followed your instructions and setup piVPN and pi hole. I feel so "clean" now. This is probably one of the best privacy oriented practices you can do on your home devices.
Did you run both on one device?
I've also noticed that with Openvpn Compression turned on that wifi on public networks is significantly faster.
Lon! Great video. I would love to hear how this content resonates with your subscribers. I try to explain procedures like this and wonder if my message is lost because of the technical nature. Again, great job. I enjoyed it!
I did it! Awesome feeling when you hit that refresh and your router config screen pops up.
Always great when it feels like magic!
You did very well with this Lon...I follow another channel that is heavy with pi content and he has done the same thing but in a six minute video. Nice that you took your time with it so others can follow in real time.
Which is that channel?
I've been using PiVPN for a few years now. It's great!!!
absolutely great guide, worked perfect, I salute you sir
Funny you make this video right after I setup PiHole and openVPN. I use the VPN aspect to block ads on the go for my phone, it works great.
I must say that was wonderful and only PiVPN video which clears everything. Looks like a official setup and demo video like you made own made product. Good work.
Mate! you just solved just about every question or thought I had about VPN. thanks very much and all this information for free.
Good stuff in every way shape and form!
Otw to get a pi now, im super stoked to configure it. thanks for the vid
Lon thank you sooo much for this video, your explanation is soo easy and simple and I successfully did it due to your help, thank you from the whole world
I THANK YOU IMMENSELY !!! Greetings from Colombia
Hey Lon, great video as always.
i can reccomend wireguard instead of openvpn for a raspberry pi. its alot faster and pretty easy to setup :)
RISCV NEW PLATFORM OTHER THAN X86,ARM,
Very clear explanation! Good work and thanks for this.
Well, there goes my idea to use PiVPN to replace the subbed VPN service I've been using the past few years to bypass domain restrictions on my video streaming services. Just my luck that none of my US relatives are computer savvy enough to keep a Pi online 24/7, and thanks to Covid, I can't visit them often enough to do this myself. But for safely accessing a home network from off-network sites this is the best tutorial I've seen on the subject. Lon takes a complicated subject and walks you through the steps making it seem as easy as Pi.
Hi Lon great vid as always. Have you looked at installing wireguard on a pi to use in the same way as pivpn. If so a video on that would be great. Many thanks from the UK
The latest incarnation of PiVPN has a wireguard option as default in addition to the openVPN solution.
But Lon - you didn't mask your DDNS and it still resolves! Yes it's resolving but not to my IP. I changed it before I posted the video. IMPORTANT: PiVPN has changed their domain - this is the new command for installation: curl -L install.pivpn.dev | bash
and this means what? any separate stuff we need to do?
CryonicCore Gaming no just don’t publish your DDNS address on a popular RUclips channel :)
Those bastards. I tried everything... Why did they do this? Even now in their website they have their own download link wrong... Wow now i know how they do their work - simply not... Thoose idiots...
help!
Great Video Lon, precise, clear and very instructive for a first time user of a Raspberry Pi.
Thanks, Lon. Really informative; I'm using the video as a tutorial to set up my RasPi as a VPN.
OT: The IIgs in the background brought back memories! :-)
After this set up , can you make a nas server with the same raspberry for your external hard disk if you don’t have NAS servers ?
I have been using raspberry pi 3 as NAS and plex media server for a really long time. I think its time now to must have this vpn set up
Theres a RISCV. THAT LOOKS PROMISING .. GIVE IT A TRY $59
Another good video that adds up to better understanding of networks and router functionality.
Its becoming more and more important to know about this these days ... 👍
The only instruction that actually really works! Thank you so much!
Lon, I didn't know that Synology made their own Router? Can you or did you do a review of it? How does these compare to Linksys/Netgear, or the ISP cable modem/routers?
Check it out here! ruclips.net/video/tfEZU115e98/видео.html
I see a apple II GS behind you.
NICE!!!!
And a zx81
Well that's old history!!
I keep the motherboard
Cool video! Thanks) I installed the open vpn server on raspberry a little bit another - via remote ssh access, but except that all other is the same as in video. It works properly!
Worked perfectly! Thank you. I used a ubuntu VM on a windows box for more power
Can you do this exact same video tutorial for the Raspberry pi 4, because now the Raspberry Pi 4 has a better CPU, more ram, and the Wifi is no longer bottlenecked to the USB bus!
Very Educational! :D
The commands are the same :)
Is there a way to have an email sent to you when a user connects? Just as a security measure
You could use Python os module to run terminal commands periodically and email yourself based on that output. You can also, dependending on your internet mobile provider, send text messages for free to create custom alerts.
Btw, thank you for the idea!
This is very good content! I am surprised of all the details. I also like the fact that Lon does not check "remember me" checkbox like 99% of the users.
Thanks for this. So easy to follow! Going to give this a go tonight. Thanks again!
Hi LON, could you please also make a video on using Pihole AND PiVPN together.
I like your thinking. No ads at home OR away then! 👌
Hello Lon
Excellent video and detailed explanation. I got my working after fixing a couple mistakes I made in the process... from another hand, is it possible to have the pi connected to the router via Ethernet port instead of wifi?
Extremely useful and user friendly tutorial. Thanks for the help!
Excellent tutorial. Answers a lot of questions I had!
On my Iphone (Home accessories), I cant reach the Homebridge (running on my Raspberry too), how do I connect/Add accessories while on the VPN?
No-ip is great, I get an email once a month to renew and that’s it. All free! Use this daily.
really? I could have sworn the last email i got them a few months ago saying they are no longer doing this for free.
Phuoc Tong I don’t recall getting any email, and I can confirm firm it’s still working for me and never am even added a cc to my account.
They require you to confirm every month. Use duckdns instead.
vd853 my Verizon router doesn’t have duckdns so I had to go with the options they supported. No-ip was the best in the list
@@MyTechGuyTim Then simply do not use your router to update your dynamic DNS service. When you have a Raspberry Pi running 24/7 you might just use that one for this job
very good education on how to setup your own VPN - even goes beyond the Pi!
I really hope you see this. I want to thank you for this easy guide! I did it and it works perfect!
Boss with a Mac and a PC in the background ;)
and a Sinclair ZX81 ?
Hey just wanted to know if i can run the commands through SSH from my computer ...
Why not ?
SSH is just a remote terminal on your Pi. You will have to restart the SSH session after a reboot of the Pi.
It migh be easier to run the regular "remote desktop" from your Windows10, as then you get the Pi desktop up and running on your Windows 10.
The its just like having the Pi started with its own display desktop.
u can
Excellent video. I am a newbie and found it very easy to follow. Thank you very much.
14.00: As of my install on October 12th 2020; working with my Raspberry Pi 3 (running Raspberry Pi OS - All updates), at the point of inputting the User info, I had to make use of the following command, "pivpn ovpn -a" instead of "pivpn -a" Great tutorial! TY for the intro and help! :D
But, as of just now on the RPi4 with all current updates as of this writing, using "pivpn -a" works, with "pivpn ovpn -a" only listing the switch options list. :)
Would the pi be able to run pivpn and pihole at the same time?
stab244 Yes. If you want your VPN traffic to go through the PiHole too then you will need to put it that DNS server on the setup page for DNS networks.
Will your ISP be able to see the network traffic unencrypted?
After doing some research, yes, they will be. This is not going to work for you if your trying to hide torrent traffic from your isp.
Excellent. You explained what Andres Spiers eluded to in his IOT stack video. Now I can VPN in Node Red Dashboard and manage my Power consumption. ESP32 WROOM, 4 current transformer ADC channels --> MQTTT --> Node Red -- Lovely gauges and charts .. WINNER
Everithing spoken clear ,subscribed!thank you !
would this work on Libreelec with Kodi too? (I'd like to be able to reach my media files from outside)
Yes
Sorry, noob questions here: Does choosing higher encryption slow your internet down? Does this protect you from hackers?
Yeah the higher encryption will take more time to encrypt but will be safer yes.
Great step-by-step, Lon. Very easy to follow.
Best explanation I’ve seen on VPN. Inspired me to use my mothballed PI3 and put to good use..
I signed on with SurfShark VPN. Will this arrangement mimic a paid VPN server?
It'll forward all your internet traffic through to your home internet. If you're doing it to hide from your ISP, no you'll want a service hosted somewhere physically else. If you are traveling to another country, or if you don't want your mobile provider snooping on you but don't mind your ISP this will absolutely be just as good (better because it's free)
Can you run your own VPN Server and Pi-Hole at the same time from a single Raspberry Pi 4B?
Yes. I have this setup myself. And it blocks ads away from the home network. Perfect setup. Just setup PiHole first and during the installation process of PiVPN it’ll ask if u want to use the PiHole for DNS.
@@AlmightyEye That's awsome definitely setting this up
Another great video Lon. Sure beats all the configs we had to put into the corporate Cisco routers.
Fantastic video, Thank you for creating this. It is just what I was looking for it will be so useful
But you're located in a "5 Eyes" country, so the "security" holds very little to others than civilian...
For security , I would change that default port for VPN :)
^
LOL.. ummm nmap?
suda phedz changing the port will make it harder to see what the port is being used for..
What do you change it to?
hatched tundra7 a port you pick
Excellent , extremely detailed and clear. Thank you John
Thank you so much for this very clear and neet tutorial.
GJ, friend !