Posts

Showing posts with the label VPN

Home VPN with DNS server

you have some servers at home (e.g. a kubernetes cluster) but you want to work with them at Starbucks or out in the green? Here is how to setup a VPN server in your home network with a DNS server that would resolve anything you want. The DNS Server Even if you don't need the VPN, you can set up a DNS server, that would resolve any host you want. Of course you can just put the hosts in the /etc/hosts file on every device, but that could be tricky if you have a lot of devices/VMs and change/add hosts frequently, or if you need them on a tablet/smart phone. The following shows how to install and configure the DNS server bind9 on a Ubuntu Server. It could be a standalone server or a VM or even a Raspberry Pi. Install bind9 bind9 is the DNS server that I am going to use. Here is how to install it: $ sudo apt update $ sudo apt install bind9 $ sudo apt install dnsutils Add Forwarders Edit the file /etc/bind/named.conf.options and add: forwarders { 8.8.8.8; }; You can use a...

VPN Wi-Fi Hotspot with Raspberry Pi

TL;DR: I explain here how to setup a home Wi-Fi network, which routes all traffic through a VPN, using a Raspberry Pi. No one wants to get tracked or sniffed while browsing. Even those, who "have nothing to hide".  One of the ways to hide your traffic is to use a VPN. But connecting and disconnecting to it can be annoying. So, I want to setup a home Wi-Fi network, and, when connected to it, to browse automatically through the VPN. There are already many VPN providers out there, the goal of this post is not to compare them. We just need one, which supports OpenVPN. Setup This setup is tested on Raspberry Pi 3 Model B+ with a 2GB SD card. Any Raspberry Pi OS will do. I recommend using the Lite version. Some of the values are based on a home network 192.168.0.0/24 OpenVPN Add to  /etc/network/interfaces : auto lo iface lo inet loopback auto eth0 allow-hotplug eth0 iface eth0 inet dhcp up route add -net 192.168 . 0.0 netmask 255.255 . 255.0 ...