Experiences with OpenVPN-client on ALIX.2D3
OpenVPN client on ALIX.2D3
We needed to connect a RemoteDesktop client (a thinclient) and a SIP-phone to a OpenVPN-network to be able to reach some services.
It was not possible to install openvpn in ether the thinclient or the SIP-phone, so we needed a OpenVPN gateway.
We bought a ALIX.2D3 which would act as gateway for the various clients. (See the ALIX board at http://www.pcengines.ch/alix2d3.htm)
[Upcoming image describing the setup]
Preparing the ALIX
The ALIX-board was shipped with a enclosure and a CF-card.
Prepare CF
Installing_Alpine_on_Compact_Flash has instructions on how to prepare a CF.
Basically we followed this doc (except that we used Alpine-1.8.3 instead of installing Alpine-1.9).
Mounting
The CF-card was mounted in the ALIX-board and the board was mounted in the enclosure.
setup-alpine
setup-webconf
sshd
openvpn
dhcpd
First we install the dhcp-package (the ACF-version)
apk_add acf-dhcp
Next we need to tell dhcpd which nics to listen on
vi /etc/conf.d/dhcpd
Modify the file so it looks like this:
DHCPD_IFACE="eth1 eth2"
Now we copy the sample config file and start editing it.
cp /etc/dhcp/dhcpd.conf.sample /etc/dhcp/dhcpd.conf vi /etc/dhcp/dhcpd.conf
Next we modify our dhcpd-config to look like this:
Upcoming text...