Skip to content

Instantly share code, notes, and snippets.

@hardyscc
hardyscc / raspbian-openvpn.txt
Last active May 12, 2022 07:33
openvpn setup on raspbain
# Raspbian PiVPN
## load os image
install & start "Raspberry Pi Imager"
> Operating System > RASPBERRY PI OS LITE (32-BIT)
> Storage > Your SD Card
> Setting - Set hostname vpn.local
> Setting - Enable SSH
> Setting - Set username and password
#!/bin/sh
# openvpn learn-address script to manage a hosts-like file
# - intended to allow dnsmasq to resolve openvpn clients
# addn-hosts=/etc/hosts.openvpn-clients
# - written for openwrt (busybox), but should work most anywhere
#
# Taken from http://openvpn.net/archive/openvpn-users/2006-10/msg00119.html
#
# Changelog
# 2006-10-13 BDL original