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.

Be your own VPN provider with OpenBSD

264 pointsby fcambusover 10 years ago

20 comments

cfallinover 10 years ago
If anyone&#x27;s ever looking for an even quicker hack, ssh has built-in the ability to act as a SOCKS5 proxy, tunneling your traffic over ssh to whatever remote machine you might have access to:<p>$ ssh -D 1080 myserver.myhost.net<p>Then configure Chrome or Firefox or whatever to use a SOCKS5 proxy on localhost, port 1080. (N.B. that this does <i>not</i> tunnel DNS lookups by default.)<p>The OpenVPN-based route is the way to go for something used regularly, but the above is sometimes super-convenient!
评论 #8872025 未加载
评论 #8872055 未加载
评论 #8872082 未加载
评论 #8871903 未加载
评论 #8871918 未加载
评论 #8872154 未加载
评论 #8872048 未加载
评论 #8871877 未加载
评论 #8872141 未加载
评论 #8872036 未加载
borskiover 10 years ago
We made this really easy, on Ubuntu: <a href="https://www.tinfoilsecurity.com/vpn" rel="nofollow">https:&#x2F;&#x2F;www.tinfoilsecurity.com&#x2F;vpn</a> will generate you a private VPN on your own box with a single click.<p>If you don&#x27;t trust us and prefer to do it on your own, that&#x27;s fine too, it&#x27;s open source: <a href="https://github.com/tinfoil/openvpn_autoconfig/blob/master/bin/openvpn.sh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tinfoil&#x2F;openvpn_autoconfig&#x2F;blob&#x2F;master&#x2F;bi...</a>
评论 #8874549 未加载
gueloover 10 years ago
The disadvantage of this over a shared VPN that doesn&#x27;t keep logs is that there&#x27;s now a unique IP address that can be tied back to you. A cool feature for a VPS would be to have a shared IP address between a bunch of customers.
评论 #8872831 未加载
评论 #8872193 未加载
评论 #8874539 未加载
评论 #8874188 未加载
评论 #8875756 未加载
kgtmover 10 years ago
Another approach: <a href="https://github.com/jlund/streisand" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jlund&#x2F;streisand</a><p>&quot;Streisand sets up a new server running L2TP&#x2F;IPsec, OpenSSH, OpenVPN, Shadowsocks, sslh, Stunnel, and a Tor bridge. It also generates custom configuration instructions for all of these services. At the end of the run you are given an HTML file with instructions that can be shared with friends, family members, and fellow activists.&quot;
unsignedintover 10 years ago
Another solution I&#x27;d recommend is SoftEtherVPN[1].<p>It&#x27;s a bit easier to configure and supports multiple protocols, including OpenVPN.<p>[1] <a href="https://github.com/SoftEtherVPN/SoftEtherVPN/" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;SoftEtherVPN&#x2F;SoftEtherVPN&#x2F;</a>
评论 #8874936 未加载
decisivenessover 10 years ago
Cool guide, makes me want to learn more about BSD and pf. I&#x27;ve been doing this but with a Linux VPS, iptables and EasyRSA3[0][1].<p>[0]<a href="https://github.com/OpenVPN/easy-rsa" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;OpenVPN&#x2F;easy-rsa</a><p>[1]<a href="https://community.openvpn.net/openvpn/wiki/EasyRSA3-OpenVPN-Howto" rel="nofollow">https:&#x2F;&#x2F;community.openvpn.net&#x2F;openvpn&#x2F;wiki&#x2F;EasyRSA3-OpenVPN-...</a>.
hiouover 10 years ago
If you aren&#x27;t partial to OpenBSD, I&#x27;ve had good success with this:<p><a href="https://github.com/Nyr/openvpn-install" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Nyr&#x2F;openvpn-install</a><p>You can turn off logging on the server with<p>&#x2F;etc&#x2F;openvpn&#x2F;server.conf<p><pre><code> log &#x2F;dev&#x2F;null status &#x2F;dev&#x2F;null </code></pre> Remember to restart the openvpn service after that.<p>That said, this wouldn&#x27;t deal with the VPS provider&#x27;s logging etc.
__mpover 10 years ago
I use Debian + UFW + OpenVPN + Digitalocean for my US Netflix needs. I get 10Mbit downstream and 20Mbit upstream from NY3 to my 60&#x2F;60 fiber connection here in Zurich. I could also configure it to use DNS only, but open dns servers are not so welcomed at the moment. Since I do quite a bit of roaming it&#x27;s easiest to just configure OpenVPN.
stephen-mwover 10 years ago
If anyone is interested, here&#x27;s a script that will install openvpn on a raspberry pi in one command[1].<p>I use it along with the openvpn ios app on my phone when I&#x27;m on corporate wifi, or I connect to it with my laptop any time I&#x27;m in a coffee shop. Just note it&#x27;s meant to tunnel traffic to a &quot;safe&quot; network, not anonymize you on the internet.<p>1. <a href="https://github.com/stephen-mw/raspberrypi-openvpn-auto-install" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;stephen-mw&#x2F;raspberrypi-openvpn-auto-insta...</a>
leni536over 10 years ago
Why would you trust a VPS more than a VPN? They still can log or intercept your traffic, can&#x27;t they?
评论 #8873631 未加载
gatehouseover 10 years ago
I&#x27;ve been considering running all my mobile data through a VPN for better security, and saving all of it so I can analyze anything after the fact. Anyone doing anything like this?
评论 #8872002 未加载
brycehamrickover 10 years ago
By far the fastest and easiest setup I&#x27;ve done of a VPN was with Pritunl, an open source and OpenVPN compatible VPN server that has installable packages for the big distros. It has a great web based admin interface for managing the server as well.<p><a href="https://pritunl.com" rel="nofollow">https:&#x2F;&#x2F;pritunl.com</a> <a href="https://medium.com/pritunl-tutorials/pritunl-tutorial-ed50a5d2a4eb" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;pritunl-tutorials&#x2F;pritunl-tutorial-ed50a5...</a>
INTPenisover 10 years ago
These days there&#x27;s a working OpenVPN client for Android but there were times when IPsec[1] VPN was the only good way to connect many different clients like Windows, Mac OS and iPhone to your VPN server.<p>Which is why I had to mention IPsec VPN and link to a good article on how to manage it on OpenBSD.<p>[1] <a href="http://www.kernel-panic.it/openbsd/vpn/vpn3.html" rel="nofollow">http:&#x2F;&#x2F;www.kernel-panic.it&#x2F;openbsd&#x2F;vpn&#x2F;vpn3.html</a>
nsinenkoover 10 years ago
Why go through all those hoops when there are plenty of open source VPNs installed with one line. eg <a href="https://github.com/sockeye44/instavpn" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sockeye44&#x2F;instavpn</a> &lt;- works with mac, ios, android etc
RJIb8RBYxzAMX9uover 10 years ago
Why not just use npppd, which is in the base install, and then use L2TP&#x2F;IPsec?<p><a href="http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man8/npppd.8" rel="nofollow">http:&#x2F;&#x2F;www.openbsd.org&#x2F;cgi-bin&#x2F;man.cgi&#x2F;OpenBSD-current&#x2F;man8&#x2F;...</a>
girvoover 10 years ago
What I really want to do is set up something like the &quot;UnblockUs&quot; proxy servers, where it&#x27;s all done through DNS or something similar. The key reason is for Netflix access here in Australia, through my Apple TV. Ideally it&#x27;d be at my router level, to require no config on the boxes themselves, and be able to have a filter list where certain hosts on that list are proxied and others aren&#x27;t.<p>Last time I checked there were some nascent projects to do this in a FOSS way, but they weren&#x27;t complete and most seemed abandoned. Any ideas?
评论 #8872717 未加载
mobiplayerover 10 years ago
Please everyone keep in mind that if you&#x27;re using a tutorial to set this up you&#x27;re probably not an expert, so in the future you could suffer security issues (inherent to any service) without even knowing.<p>That&#x27;s why I pay for services, not because I can&#x27;t follow a tutorial to set them up :)
stevenspinsover 10 years ago
SSH over socks 5 would be a better option than OpenBSD
评论 #8876025 未加载
评论 #8873244 未加载
blazespinover 10 years ago
Does this work on iOS?
评论 #8874579 未加载
higherpurposeover 10 years ago
Why not use SigmaVPN over OpenVPN? From what I gathered from the CCC talks OpenVPN can fall pretty easily to NSA.<p><a href="http://frozenriver.net/SigmaVPN" rel="nofollow">http:&#x2F;&#x2F;frozenriver.net&#x2F;SigmaVPN</a><p>Last talk on HN about it: <a href="https://news.ycombinator.com/item?id=7599091" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7599091</a><p>There seems to be this similar project as well:<p><a href="https://github.com/zerotier/ZeroTierOne" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zerotier&#x2F;ZeroTierOne</a>