Thanks Pippin, trying to follow the instructions. Hope this works. Appreciate any guidance.
*
SERVER *
Server (ASUS RT-N66U Router) configuration file at /tmp/etc/openvpn/server1/
# Automatically generated configuration
daemon
topology subnet
server 10.8.0.0 255.255.255.0
proto udp
rcvbuf 0
sndbuf 0
port 1194
dev tun21
cipher AES-256-CBC
comp-lzo adaptive
keepalive 15 60
verb 3
push "route 10.2.200.0 255.255.255.0"
client-config-dir ccd
duplicate-cn
push "dhcp-option DNS 10.2.200.1"
ca ca.crt
dh dh.pem
cert server.crt
key server.key
status-version 2
status status 10
# Custom Configuration
route 172.20.10.0 255.255.255.0"
client configuration file at /tmp/etc/openvpn/server1/ccd
iroute 172.20.10.0 255.255.255.0
BUT client file in ccd is automatically deleted by the ASUS GUI interface.
Router (OpenVPN server) log file:
Feb 24 20:10:13 openvpn[4864]: event_wait : Interrupted system call (code=4)
Feb 24 20:10:13 openvpn[4864]: TITLE,OpenVPN 2.3.8 mipsel-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Dec 24 2015
Feb 24 20:10:13 openvpn[4864]: TIME,Sat Feb 24 20:10:13 2018,1519524613
Feb 24 20:10:13 openvpn[4864]: HEADER,CLIENT_LIST,Common Name,Real Address,Virtual Address,Bytes Received,Bytes Sent,Connected Since,Connected Since (time_t),Username
Feb 24 20:10:13 openvpn[4864]: CLIENT_LIST,client,166.170.221.96:64870,10.8.0.2,6490,6038,Sat Feb 24 20:01:23 2018,1519524083,UNDEF
Feb 24 20:10:13 openvpn[4864]: HEADER,ROUTING_TABLE,Virtual Address,Common Name,Real Address,Last Ref,Last Ref (time_t)
Feb 24 20:10:13 openvpn[4864]: ROUTING_TABLE,10.8.0.2,client,166.170.221.96:64870,Sat Feb 24 20:01:28 2018,1519524088
Feb 24 20:10:13 openvpn[4864]: GLOBAL_STATS,Max bcast/mcast queue length,0
Feb 24 20:10:13 openvpn[4864]: END
Feb 24 20:10:26 rc_service: httpd 262:notify_rc stop_vpnserver1
Feb 24 20:10:26 openvpn[4864]: event_wait : Interrupted system call (code=4)
Feb 24 20:10:26 openvpn[4864]: Closing TUN/TAP interface
Feb 24 20:10:26 openvpn[4864]: /usr/sbin/ip addr del dev tun21 10.8.0.1/24
Feb 24 20:10:26 openvpn[4864]: SIGTERM[hard,] received, process exiting
... not sure where 166.170.221.96 is coming from.
*
CLIENT *
Client configuration file
client
dev tun
proto udp
remote _________.com 1194
ifconfig 10.8.0.2 10.8.0.1
auth-user-pass /etc/openvpn/login
float
cipher AES-256-CBC
comp-lzo adaptive
keepalive 15 60
ns-cert-type server
verb 4
<ca>
XXXXXXXXXXXXXXXXXXXXXXXXXXX
</ca>
<cert>
YYYYYYYYYYYYYYYYYYYYYYYYYY
</cert>
<key>
ZZZZZZZZZZZZZZZZZZZZZZZZZZZ
</key>
resolv-retry infinite
nobind
Client (Pi) log file:
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: SENT CONTROL [RT-N66U]: 'PUSH_REQUEST' (status=1)
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: PUSH: Received control message: 'PUSH_REPLY,route 10.2.200.0 255.255.255.0,dhcp-option DNS 10.2.200.1,route-gateway 10.8.0.1,topology subnet,ping 15,ping-restart 60,ifconfig 10.8.0.2 255.255.255.0'
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: OPTIONS IMPORT: timers and/or timeouts modified
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: OPTIONS IMPORT: --ifconfig/up options modified
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: OPTIONS IMPORT: route options modified
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: OPTIONS IMPORT: route-related options modified
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Feb 24 20:45:04 raspberrypi kernel: [ 99.923086] tun: Universal TUN/TAP device driver, 1.6
Feb 24 20:45:04 raspberrypi kernel: [ 99.923111] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:406 ET:0 EL:3 ]
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: ROUTE_GATEWAY 172.20.10.1/255.255.255.240 IFACE=eth0 HWADDR=b8:27:eb:dd:a5:8a
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: TUN/TAP device tun0 opened
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: TUN/TAP TX queue length set to 100
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: /sbin/ip link set dev tun0 up mtu 1500
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: /sbin/ip addr add dev tun0 10.8.0.2/24 broadcast 10.8.0.255
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: /sbin/ip route add 10.2.200.0/24 via 10.8.0.1
Feb 24 20:45:04 raspberrypi ovpn-pi[282]: Initialization Sequence Completed