Is it possible to make your own VPN?

I am generally curious if it is even possible, following up on a previous post I made I asked how do I make one and I got most as a response “You can’t” so I am curious, is it even possible to make your own VPN? or make a program which encrypts your IP or does something around that a VPN would do?

Similar question has been asked on Quora: https://www.quora.com/Where-can-I-learn-to-write-my-own-VPN-server-from-scratch

Seems like a difficult task depending on your skill level, but achievable.

One comment on there from Al Klein to note:
“If your country is preventing you from getting to some sites, you want the server located in some other country. Locating a VPN server in your LAN is doing nothing but using storage and CPU cycles.”

Clearly, itt an entire industry.

I had had this up and running in half hour, with also installing pihole on it for when i went on holiday:

https://github.com/Nyr/wireguard-install

It depends on what you mean by making your own. If you mean coding your own VPN software from scratch, that’s going to be almost impossible for anyone but an experienced developer. If you mean setting up your own VPN using pre-made software such as OpenVPN, that’s pretty easy.

Is it possible? Yes.

Will it give you the same service and control and anonymity as paid solutions like NordVPN? No. Not unless you run the VPN software from another country, and/or somehow otherwise route the traffic through that country.

VPN in general is fairly easy to do. SSH is a type of VPN after all, and that is common. But all of the getting around blocks and privacy issues isn’t going to happen from a VPN on your local computer. You’d have to set it up on a server located elsewhere.

“VPN” doesn’t have a trademark or anything, it just became the commonly used word for the connection you’re asking for by virtue of no one doing it better. You can definitely code your own VPN, that’s absolutely possible but i’d advise you to use a known provider because in the end there is so much stuff to consider that even they can’t 100% provide security, so how could you, yourself?

So if it’s a project do it, if it’s actual use go for established ones :slight_smile:

Yes you can. A teacher in my school made on himself he gives to students to connect to his private server.

You can and it’s very simple and cheap. If you’re the only one who will connect to it, look up piVPN. It’s basically a script to setup a whole VPN (encryption included) on a raspberry pi. The thing is, where are you connecting the pi? Because that will be your server, and if you set it up at home, then the only encryption connection you’ll have is from client to server, and beyond the server (to WAN) it will be unencrypted…

I wanna know too cause sometines I wanna Netflix in England but I live in America

I know that proxy is doable (we had this task in university, multithreaded caching proxy on C), but I have no idea how encryption works in VPN and how hard it is to implement.

I got most as a response “You can’t”

No, you didn’t. You got “You don’t” as a response, not “You can’t”. This is because you can set one up using code that others have written and which is guaranteed to work reliably and correctly. Writing your own is a waste of time.

Of course you can write your own. Otherwise, how could other people have written it before? But there’s just no point in doing so.

This ^

I live on the other side of the world and my dad runs an openVPN server on his machine so I can watch native television online from where I live. Works fine.

Yup we use this at work it’s great

How powerful of a PC do you need for this?

OH! I see, thank you for sharing this information :slight_smile:

true, so in other words its possible but difficult?

Same. I got tired of the janky shit we were using and implemented openvpn and never looked back.

My only grumble is lack of official mac support, but there are free options available.

A Pi would be sufficient.