TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Poor man's VPN (pay for only what you need)

219 pointsby benpiperover 3 years ago

22 comments

gibs0nsover 3 years ago
I&#x27;ve generally considered an SSH tunnel as a poor man&#x27;s VPN. If you&#x27;re going to the effort to spinup a machine, and use SSH anyway, i find it much easier to use `ssh user@server.com -D 4444` then I can set my browser&#x27;s proxy settings to use localhost:4444 as a SOCKS5 proxy. For those apps that don&#x27;t have native proxy support, I use proxychains to force them over a proxy connection.<p>Ofcourse this is only useful for a single user, and for devices that can use ssh and proxies.
评论 #29919138 未加载
评论 #29917964 未加载
评论 #29916295 未加载
评论 #29916372 未加载
评论 #29917855 未加载
评论 #29919280 未加载
评论 #29916280 未加载
评论 #29916288 未加载
评论 #29919947 未加载
jmercourisover 3 years ago
Or you could just use sshuttle with far less steps: <a href="https:&#x2F;&#x2F;github.com&#x2F;sshuttle&#x2F;sshuttle" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sshuttle&#x2F;sshuttle</a>
评论 #29915061 未加载
评论 #29915276 未加载
j1eloover 3 years ago
Since basically always, I&#x27;m still using PiVPN <a href="https:&#x2F;&#x2F;www.pivpn.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.pivpn.io&#x2F;</a><p>Is that out of favor nowadays, given new technologies like Wireguard have become mainstream? Would I be better off using this, or the Algo scripts that another commenter mentioned? (<a href="https:&#x2F;&#x2F;github.com&#x2F;trailofbits&#x2F;algo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;trailofbits&#x2F;algo</a>)
评论 #29915735 未加载
评论 #29916070 未加载
mainwater0803over 3 years ago
How does this compare to Algo[1]?<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;trailofbits&#x2F;algo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;trailofbits&#x2F;algo</a>
评论 #29915108 未加载
shepherdjerredover 3 years ago
Nothing will ever beat Tailscale (it is by far my favorite piece of software in this space)
评论 #29917113 未加载
评论 #29918882 未加载
评论 #29919449 未加载
评论 #29920100 未加载
dghughesover 3 years ago
I followed a guide and made my own using OpenVPN on AWS Lightsail not (Digital Ocean). But once my AWS Lightsail trial was over the cost crept up and was quickly getting out of hand. I had to stop it and even delete everything since I was still being charged for a powered off VM!<p>It is an interesting project and it looks good on your resume if you&#x27;re just starting out in IT.
bccdeeover 3 years ago
`ssh -qND localhost:8080 user@ip` sets up a SOCKS proxy at localhost:8080. In your browser connection settings (at least in Firefox) you can set it up to route your traffic through the connection. It&#x27;s not as good as a proper VPN for prolonged use, but for a quick one-off, it&#x27;ll do the job.
julienb_seaover 3 years ago
My cyberghost vpn is under 3$&#x2F;mo and has unlimited usage. It&#x27;s hard to imagine any pay-as-you-go scheme coming even close from a cost perspective.
评论 #29915716 未加载
评论 #29917221 未加载
评论 #29916427 未加载
评论 #29919087 未加载
评论 #29919456 未加载
0xbadcafebeeover 3 years ago
If you&#x27;re spending $5 on a VPS, aren&#x27;t there actual VPN services that cost $5 or less that you don&#x27;t have to manually set up and destroy?<p>If you&#x27;re just doing it for fun (kinda like &quot;hosting your own mail&quot;) I recommend setting up an IKEv2 IPSec VPN. It might be the hardest VPN to set up? But you learn a good deal about VPNs and networking. Most OSes ship with a native IPSec VPN implementation, and most &quot;enterprise&quot; VPNs are some variation of IPSec. Mobile devices, internal firewalls, internet gateways, enterprise AWS tunnels, etc. You can keep getting fancier by adding VLANs, GRE, BGP, certificates, RADIUS.
KronisLVover 3 years ago
Heh, right now i use WireGuard for exposing some of my homelab servers to the internet and to work around my ISPs NAT setup, WireGuard is really pleasant to use and simple to set up!<p>I recall using OpenVPN a few years ago for a similar use case in my university dorm, it was comparatively way worse - the configuration parameters were unclear, some of the documentation was out of date and even when using the faster (but less secure) methods of encryption, i found myself having a VPS that was overwhelmed and had almost 100% CPU usage (on its single core, since VPSes are generally expensive) whereas the client couldn&#x27;t get much past 10 - 20 Mbps when the connection speed itself was closer to 100 Mbps.<p>Nowadays, for a VPN, i just use Time4VPS <a href="https:&#x2F;&#x2F;www.time4vps.com&#x2F;virtual-private-network&#x2F;?affid=5294" rel="nofollow">https:&#x2F;&#x2F;www.time4vps.com&#x2F;virtual-private-network&#x2F;?affid=5294</a> (affiliate link so i get discounts for signups, i also use them for most of my VPS hosting) because they&#x27;re affordable and have more locations than i can get VPSes in those locations for comparable amounts of money. It seems like their offering is OpenVPN based which is surprising, since it works pretty well - makes me think that either i royally screwed up my own config back in the day (though default config should never hit 100% CPU usage like that, which happened to me), something was wrong with the system packages, or they just have beefier servers behind it, despite many users.
评论 #29919994 未加载
darkryderover 3 years ago
While it does not yet exist as an end to end solution, BlindTLS[0] is a technique which perfectly fits the description of a &quot;poor man&#x27;s vpn&quot;. You pay the vpn provider for a tiny fraction of the traffic, and you can safely route the rest directly through your own ISP. This should work around most censorship techniques or geographic blocking. It doesn&#x27;t promise privacy though.<p>[0] <a href="https:&#x2F;&#x2F;dl.acm.org&#x2F;doi&#x2F;abs&#x2F;10.1145&#x2F;3473604.3474564" rel="nofollow">https:&#x2F;&#x2F;dl.acm.org&#x2F;doi&#x2F;abs&#x2F;10.1145&#x2F;3473604.3474564</a>
评论 #29919797 未加载
linuxandrewover 3 years ago
OP mentions DigitalOcean as a compute provider. Is there much info on which compute providers will ban you for, say, P2P or BitTorrent activity? Presumably this is against the ToS for most providers.
StopHammoTimeover 3 years ago
I&#x27;m suprised no one has mentioned Outline (<a href="https:&#x2F;&#x2F;getoutline.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;getoutline.org&#x2F;</a>) which provides full capability to setup a VPN easily on any major cloud providers with 1-click. It also provides mobile apps to use as well.<p>A great experience, and I&#x27;d say it just works.
framecowbirdover 3 years ago
What&#x27;s the cheapest and easiest way to set up a VPN that authenticates with G-Suite OAuth? Asking for a friend...
aizattoover 3 years ago
Another cool tool to easily launch a VPN of your choice (WireGuard, OpenVPN, SSH) in a cloud provider.<p>I tried it out before just to test it out, it&#x27;s pretty cool.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;StreisandEffect&#x2F;streisand" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;StreisandEffect&#x2F;streisand</a>
评论 #29915493 未加载
评论 #29915507 未加载
henningover 3 years ago
Could this be turned into a bash script without loss of functionality? I&#x27;m not trying to denigrate the work or Ansible as a tool in more complex scenarios.
12ian34over 3 years ago
The author&#x27;s use for this is to circumvent geographical jurisdictional restrictions. If that is the aim (rather than privacy), then I don&#x27;t understand how a $5 (per month) VPS along with all of the config and steps required (read: non-negligble time cost) is the &quot;Poor man&#x27;s&quot; solution. Surely using any of the free forever unlimited VPNs would do the job at near zero cost?
jijjiover 3 years ago
it depends what your use case is, but if you are trying to mask you public IP, I&#x27;d been using Squid Proxy [0] for decades and even have production networks using it for scraping activity in a load balanced way<p>[0] <a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Squid_(software)" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Squid_(software)</a>
codethiefover 3 years ago
&gt; Make sure you can ssh into the machine […]<p>This is the tricky part. SSH gets blocked in some LANs, so then you would have no way to spontaneously deploy your VPN server. So better deploy it ahead of time.
mihcsabover 3 years ago
you can get a 4 core 24gb ram arm64 for free on oracle free tier(not a trial), install wireguard, it&#x27;s really fast too.
nvr219over 3 years ago
Use Algo!!! Extremely easy to set up with dummy-proof instructions.
azalemethover 3 years ago
&gt; Motivation: Lately due to GDPR many websites are blocking access in the EU. For me, I cannot order medicines back home via netmeds.com<p>Blaming GDPR for this is a bit like blaming a lead mine for getting shot. Yes, it&#x27;s involved but it&#x27;s not the reason. It only seems to be certain large US websites that carte-blanch refuse to serve EU visitors over GDPR, mostly those with large, tendril-filled advertising networks that have no &quot;easy opt-out&quot;. Some sites (healthcare ones that tended to be SEO&#x27;d to the max when I searched for drug names as well as more mainstream ones like, iirc, the Washington Post) carte-blanch refuse to let you browse them without accepting unnecessary cookies; this <i>is</i> a direct breach of the legislation and yet they still want your traffic.<p>If someone won&#x27;t sell you something because of GDPR -- legislation that protects your privacy, and in particular considers medical information as especially sensitive -- then you perhaps have to think rather carefully about if you wish to do business with them.<p>(For what it&#x27;s worth, from a Danish IP, the site listed in the github repo works perfectly on my home network which admittedly contains a pihole-provided dns-level adblocking. It blocks tor and I don&#x27;t have an easy way of testing it otherwise).
评论 #29915203 未加载
评论 #29915397 未加载
评论 #29915067 未加载
评论 #29915822 未加载
评论 #29915219 未加载
评论 #29915046 未加载
评论 #29917898 未加载