haha, thanks) I guess that was expected... I actually looked at
Static Key Mini-HOWTO before posting my question, unfortunately it's a bit over my head as I'm unfamiliar with OpenVPN to level where it'd make sense(
to recap what I've tried so far...
server:
root@linode2:~# grep -v ^# /etc/openvpn/linode2.conf
dev tun
ifconfig 10.40.74.1 10.40.74.2
secret static.key
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
root@linode2:~# openvpn --config /etc/openvpn/linode2.conf --secret /etc/openvpn/static.key
Thu May 4 14:39:37 2017 OpenVPN 2.3.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Nov 12 2015
Thu May 4 14:39:37 2017 library versions: OpenSSL 1.0.1t 3 May 2016, LZO 2.08
Thu May 4 14:39:37 2017 TUN/TAP device tun0 opened
Thu May 4 14:39:37 2017 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu May 4 14:39:37 2017 /sbin/ip link set dev tun0 up mtu 1500
Thu May 4 14:39:37 2017 /sbin/ip addr add dev tun0 local 10.40.74.1 peer 10.40.74.2
Thu May 4 14:39:37 2017 UDPv4 link local (bound): [undef]
Thu May 4 14:39:37 2017 UDPv4 link remote: [undef]
client:
root@linode1:~# grep -v ^# /etc/openvpn/linode1.conf
remote linode2
dev tun
ifconfig 10.40.74.2 10.40.74.1
secret static.key
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
root@linode1:~# openvpn --config /etc/openvpn/linode1.conf --secret /etc/openvpn/static.key
Thu May 4 14:40:09 2017 OpenVPN 2.3.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Nov 12 2015
Thu May 4 14:40:09 2017 library versions: OpenSSL 1.0.1t 3 May 2016, LZO 2.08
Thu May 4 14:40:09 2017 TCP/UDP: Socket bind failed on local address [undef]: Address already in use
Thu May 4 14:40:09 2017 Exiting due to fatal error
root@linode1:~#
client output suggests that it couldn't bind as address already in use... (I run another OpenVPN server, on linode1), but why is it trying to bind to port if it's acting like a client?