Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
1. Can I install this on another Cloud service provider the same one cllick6way given the Github?
2. How will DO or any other VPC provider charge me? Fixed monthly charges or based on data transfer? For example: does it matter if I transfer 10GB or 100GB or will it only consider the OpenVPN and Pi-Hole hosting?
3. Why am I not able to access OpenVPN via multiple devices at the same time? One disconnects when other connects.
4. How can I access OpenVPN admin panel via UI like Pi-Hole has?
5. For my Windows machine, Automatic DNS works fine and detects Pi-Hole DNS. Do I have to manually point my machine's DNS to Pi-Hole? If yes, then when I disconnect the VPN, internet does not work and to fix that I had to give Google DNS as Alternative DNS.
6. How can I configure this on my router to have network wide VPN access without individual client having to setup the client and profile?
7. Mostly important, I see a minute drop in internet speed. I am in India and server is in Frankfurt. Does internet speed gets affected?
8. Will continuous usage of VPN on phone/machine drain the battery?
9. Can I setup a domain/subdomain to access the console and admin portals from anywhere without IPs or logging into my DO account always?
@F1973 2. They will charge you monthly based on your usage - it's a fixed date where you get charged monthly but it's only for the amount that the VM was actually created (so that you aren't charged, for example, 10+50 for the past month if you had a Droplet for 10$ running the whole billing period and only started up a 50$ droplet just a week before the billing date but instead will be charged something like 10+8).
When it comes to bandwith, each droplet has a fixed bandwith which is free of charge (included in the plan) limit specified somewhere in the description on plans. For every GB over that you get charged some amount per GB. It's 0.10$/GB according to this https://digitalocean.com/pricing/
@F1973 8. Yes (it does on my devices as I have seen), even more if the VPN client keeps running (it's an option in the OpenVPN client on Android) in the background, note - if it doesn't it would result all the traffic going over unencrypted network to the default DNS outside your VPN when the phone is locked.
@theKarlisK thanks. While I understand the concept of Bandwidth, I will try to understand the difference between Bandwidth and Transfer.
The BD is 1GB and Transfer is 1TB. So if I watch or download a movie of 6GB, then that'll impact transfer or bandwidth? Will I be notified if I am being billed or crossing the limits?
Thanks for your other answers. Make sense.
@electrineer thanks. I think what you said makes sense.
@F1973 Usually hosting service providers (or at least they used to) just slap a vague "bandwith limit" to imply that both Download and Upload traffic amount was not limited to a certain amount in GB or TB. In case of Digital Ocean the Upload is not officially limited/capped but they will raise their eyebrow and reach out to you if you start pumping up something in very large quantities of many TB. Meanwhile the download, as mentioned basically means all the outgoing traffic (in this case everything that is sent from your OpenVPN server to all the clients), so yes - downloading a 6GB movie through your VPN would consume the outbound transfer amount (which, as I remember is tallied somewhere in the DO Dashboard statistics). As for avoiding amassing any big bills you could set up alerting whenever Droplet costs are reaching high costs (you might get a warning for reaching the transfer cap but you will definetly get email alerts if costs have reached a limit you've set).
1. If it's a shell script and you run it on a Linux system, most probably, yes.
2. Depends on the provider. Usually you can see this at their pricings/product page. I chose Contabo and OneProvider because I fucking hate bandwidth limits.
3. Because it's setup to only work with one profile per connection probably. Just create more profiles for more devices! (or configuration files or however you call them)
4. Is there actually a working openvpn admin gui...? No clue 😅
5. You can choose any dns provider really. I personally use OpenDNS a lot but switching to BlahDNS soon!
6. Depends on the router/os it's running. Just ddg it or search through other search engines, all routers/systems have documentation on this if it exists on that device/os.
7. What do you mean with a minute drop?
8. On your phone, probably yes. I'm using a VPN full-time and it affects my battery a lot. But, for me, the drain is worth the gain.
9. As long as the interfaces are on a port or something, sure! Hmu if you need more info, I do stuff like this a lot with NGINX as webserver.
1. Need to check if it is a Shell script. If yes, then I move asap.
2. No limits? While I read it last time you guys shared them, but thought it must be with terms and conditions. Wonder how can they afford unlimited bandwidth and data transfer. Another reason to migrate.
3. Alright, will read the documentation or something to set that up.
4. Lol yeah. I Googled and found some images of admin panel. I think it must be under paid plan as per your latest comment.
5. In that case, I'd prefer to keep it dynamic so as that system picks it up automatically without manual hassle and constant switching in case I connect to a network outside VPN (which I'll rarely do once I setup the infra)
6. Yeah need to check. I have 1 main and other as AP so will have to configure it.
7. IDK man. I have 25Mbps plan and after multiple speed tests it showed me a fluctuation between 18Mbps to 23Mbps. Never touched 25. Maybe due to geography.
9. I didn't get this but let me set it up
@F1973 Indeed, as @linuxxx pointed it out - the software itself is FOSS but they offer a paid service for those who don't want to set up and administer their own VPN server, this was more feasible about 5 years ago when the internet wasn't littered with install/deploy scripts that allowed you to have everything ready in under 10min.
Also the free FOSS OpenVPN version does not come with any Admin GUIs - this must be some 3rd party solution or maybe I've missed /haven't heard of these changes.
As for compression - no... it's not the same kind of compression like with jpeg images, the process works on lower levels that some googling or better informed people than me could shed light into. The one thing it does is increase CPU usage compared to default config. Tho, I'm guessing that just about every config example out there uses the lowest setting to give you something like 10-15% transferred data reduction.
@F1973 if you have full redirect on (all client data is sent through VPN server) speed fluctuations could be because of the connection quality between you and the DO server (geography as you mentioned). It could also be because of the server load (network transfer speeds still have to battle HW limits and I'd like to point out this is a shared not dedicated/isolated VM host and noisy neighbours could be at fault).
@theKarlisK fair points on latency. Lol noisy neighbours.
Oh so some advanced level compression. Sounds interesting. LMC.
What's full redirect though?
@linuxxx FUP is better than complete limit. Until the limit is crossed one can utilise the resources and then on lower speed but be completely mind free of the worry.
Thanks bro for checking out, very kind of you.
I thought the Github was linked in the post but then I checked, it was the market place link which leads to Github.
Here you go: https://github.com/digitalocean/...
2. Usually monthly, depends
3. You cannot reuse profiles, make one for each client
4. Paid feature, see https://askubuntu.com/questions/... and https://openvpn.net/vpn-software-pa...
5. VPN server can push DNS servers
6. A VPN client can act as a gateway, look into IP masquerading (iptables) and enable packet forwarding (sysctl).
7. For latency a closer server is better, for bandwidth it doesn't matter much
8. Yes but it's not significant IME
9. Yes but it requires additional setup
And congrats! :)
1, 2: Awesome
3. Will read about it. Thanks.
4. So will have to learn terminal management.
5. Then I'll set to dynamic. Life is easier.
6. Thanks. This'll help me read about terminology and fix it.
7. Agreed but then that server it be affected on how it interacts with servers on internet to fetch content. I don't think we can relocate the server but yeah I get it.
8. Yeah. I need a new phone anyway. Lol
9. I'll love to do that. Let me first setup the basics and then we can figure out next.
Thanks bro. Kudos to you, Linuxxx, Karlisk, and everyone here :)
@F1973 full redirect is when the connected VPN client sends all the traffic through the VPN ... if you have this parameter in your server config and the client .ovpn file it's safe to assume that it's a full redirect: 'redirect-gateway def1'.
Opposite of a full redirect would be to connect to the VPN only to be able to access other connected resources in the VPN network (say, you had a VPN to your server but wanted to only access the PiHole DNS without sending everything through your VPN server). This would mean barely any data transfer usage would be accumulated for the Droplet because only DNS lookups would be made but the actual connection would happen to the corresponding resources over the network as usual without VPN.
Think of the first option as plugging into a virtual router while the second only provides the network resources residing on the virtual network (tho more advanced/conplicated configurations can reach out to other resources on this network too).
@condor @linuxxx @theKarlisk
I managed to create multiple user profiles and connect my devices to server and enjoy the ad free life.
I found the command via Get started section: https://cloud.digitalocean.com/mark...
However, the same section says, I will have to recreate my droplet every 90 days/3 months because certs won't be valid after that.
Now is this some kind of manual hassle? If yes, then I would love to figure out backup mechanism because there are some override changes I have done.
Also, as per this link (https://openvpn.net/vpn-server-reso...), they show that even on self hosted OpenVPN, one can access admin panel. Just that I am not able to find the IP to connect.
@F1973 certificate expiry could have been done by design since recreating the Droplet would often give you a brand new IP as well as delete any and all logs - probably a feature for more network privacy concerned people.
It could mean that server certificate, tls certificate and client certificates have been generated with expiry dates and a certificate revocation list configured to invalidate all client certs after the 3 months. The simplest solution to bypass this would be to regenerate all the certificates by looking up any how-to guides for OpenVPN setup from scratch and doing everything related just to certificates and then updating the client ovpn configs to include the new certs.
Wisecrack443123dmedium is raoidly becoming the news and more reliable stackoverflow.
@Condor I am planning to go with Hetzner. The basic level 1 web hosting plan with work, right?
Also, the DO droplet allows 1TB of transfer. I don't think I will ever reach that but then Hetzner looks cheaper.
I somehow fear that using OpenVPN, someone is spying on me or te VPN is configured to leak my data.
Lol am I being paranoid or can I trust the setup 100%? I think this might be because I used a that marketplace script but then since it's on market place it would be trusted.
I think I shall go with Hetzner and install OpenVPN first and then configure Pi-Hole because the certificate thing will anyway make me redo everything after 3 months.
What would you suggest?
I plan to use this script recommended by @Linuxxx
I hope these script don't configure shady stuff which leak my data.
@theKarlisK Ah yes!!! Since I am new to this, I got confused. Now I know that I have to look under cloud.
Comparing DO and Hetzner, I think Hetzner is giving 20TB transfer which is literally unlimited. Only downside I see is 5GB less storage but then I don't need more than 1GB to host both those apps.
I think I will go with this one. Thanks homie :)
Condor3457723d@F1973 on the quarterly Droplet regeneration, very weird... Why would that be?
On Hetzner you'd need to go with a VPS, I don't think that web hosting would allow much more than FTP upload for some web pages. The small ones are €2.79/m, billed by the hour but capped at the aforementioned price. For 2 instances it comes out at roughly €6/m for me. The small VPS instances have 2GB RAM, 1 CPU core and 20TB monthly traffic, with a shared 5Gbps internet connection.
F1973962822d@Condor Yes, I think those are fair rates and generous resources for someone like me.
BTW I got the OpenVPN GUI up and running.
I followed the documentation, ran the commands again and it gave me the IP I was looking for and now I have a UI but I cannot see the profiles I created earlier.
One last thing, I can setup the OpenVPN and Pi-Hole on server now as after few attempts, help, and reading docs. I just want to know one thing, do I have to manually configure the VPN to point to Pi-Hole DNS? If yes, then how would that work?
I think apart from that I have my dream project 95% completed. I will soon configure my spare router for the VPN to have network wise access :)
Condor3457721d@F1973 in the server.conf you can add these options to push a DNS server to use.
push "dhcp-option DNS 18.104.22.168"
The DNS server address in this case would be Cloudflare, it can be any DNS service / address that the client can reach. For multiple DNS servers, you can add that option multiple times.
@Condor @linuxxx @theKarlisK
Okay guys, an update:
1. Hetzner deleted my account due to lack of verification even when I submitted my passport. Tried reaching their support twice but no success.
2. That said, I will be forced to continue on DO. Which else could I go for? I saw the others you folks recommended but still confused for anything below €3.
3. If anyone of you use DO, do you also sign in every time you log in to the portal? Somehow they are not saving my credentials and I am forced to sign in. Weird bug.
theKarlisK782414d@F1973 yes, DO asks me to log in frequently as well, doesn't often ask me for verification tho.
As for alternatives, there's also upcloud, vultr and linode. Personally, I've settled on Linode because they allowed me to get the VPS set up and tweak just how I like it. I really hate when VPS hosting providers peddle "customized" RHEL/CentOS and similar RHEL-based distros with SE Linux and FirewallD disabled and/or removed altogether as if it's Debian and I spend days "untweaking" their BS and fixing errors spewing out left and right (cause is usually the said "tweaks") only to end up throwing everything out and switching to a different hosting provider.
And I'm not even going to rant about the providers that don't allow Docker.
@theKarlisK I tried the approach and Googled even more on how to do it.
Somehow all the profiles have been created in root directory and easy-rsa directory is not found.
I tried reinstalling easy-rsa but didn't work.
I failed and unable to proceed. Maybe I can setup another droplet and experiment there since I have some credits to burn on DO and proceed with a clean installation.
@theKarlisK the mess is, I used this one-click script to set it up.
I want to migrate to a clean stand alone installation so that I can manage everything via Admin UI.
The said script expires everything after 90 days.
So yeah I created a new droplet and tried installing OpenVPN from scratch for Ubuntu via this link: https://openvpn.net/vpn-software-pa...
but no success.
@theKarlisK well yes, I agree there might be many more scripts to do that. I am just yet to find those. Haha
No, I am yet to reach the first 90 day expiry and hence did not get any chance to regenerate. However, is regeneration same as creation or is there some other command?
I am sorry that I ask way too many lay questions for my lack of prior knowledge. If you think I am annoying you in anyway, feel free to pass this.
I am already thankful to you and every other friend here who went out of their way to help a noob. You guys are just awesome :D
@F1973 Looked at the scripts. My directions might get a bit vague (been a while since I had to configure a standalone OpenVPN server).
As per: https://github.com/digitalocean/...
EasyRSA is located: /etc/openvpn/server/easy-rsa/
Certificate Revocation List (CRL) is located: /etc/openvpn/server/crl.pem
You could try running the following to check everything is fine:
I think you should be fine if you ran:
After that you should check the contents of /etc/openvpn/server/crl.pem and merge or replace with the contents of the new crl.pem that got generated somewhere under /etc/openvpn/server/easy-rsa (quite possibly under secrets somewhere).
@F1973 after creating the CRL and reloading the OpenVPN server to apply the changes, you don't have to worry about the OVPN config you briefly handed out - the client can no longer connect to the server without providing a valid Client Certificate. If the you need to renew the access you have to generate a new client certificate/key (or as a dirty workaround - just disable checking CRL in the OpenVPN server config).
@F1973 because according to the OpenRSA it generates the CRL within it's own directory (/etc/openvpn/easyrsa/), while the OpenVPN server has been configured to look for the file in the root directory (/etc/openvpn/) - there for if you generate a new CRL it won't necessarily be loaded into the server config.
Reason why I mentioned about checking the existing CRL file - in case there already are entries in it you can merge that new file into the old one by simply appending the CRL file contents at the end of the old file. However, I didn't look up if it's actually a symlink from easyrsa directory to where OpenVPN looks for the CRL file (might be that no action is actually needed).