openvpn learn-address script to manage a hosts-like file
- intended to allow dnsmasq to resolve openvpn clients
- written for openwrt (busybox), but should work most anywhere
| #!/bin/bash | |
| # | |
| # NAME | |
| # fal - wrapper script to run several concurrent commands and gather their | |
| # output into one log file. fal is an abbreviation for "fork, aggregate, log" | |
| # | |
| # SYNOPSIS | |
| # fal -c count [-l logfile] [-t] [-p pipe] [--] command [command_args] | |
| # | |
| # OPTIONS |
| auto wlan0 | |
| mapping wlan0 | |
| script /usr/local/sbin/wlan-detect.sh | |
| map HomeAP wlan0-home | |
| map OfficeAP wlan0-office | |
| iface wlan0-home inet dhcp | |
| wpa-ssid HomeAP | |
| wpa-psk HomeAccessPointPassphrase | |
| wpa-key-mgmt WPA-PSK |