Thanks. That's allowed me to reach the subnet, but I'm still struggling with routing all traffic through the client. Basically, right now I can touch anything in the subnet. I need to route all traffic through the client.
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: OpenVPN 2.3.6 x86_64-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Apr 27 2015
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: library versions: OpenSSL 1.0.2d 9 Jul 2015, LZO 2.08
Mon Jul 11 13:40:45 2016 daemon.warn openvpn(BlueBell_server)[23272]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: Diffie-Hellman initialized with 2032 bit key
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: Socket Buffers: R=[212992->131072] S=[212992->131072]
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: TUN/TAP device tun1 opened
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: TUN/TAP TX queue length set to 100
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: /sbin/ifconfig tun1 192.168.2.1 pointopoint 192.168.2.2 mtu 1500
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: /usr/bin/set-promisc tun1 1500 1542 192.168.2.1 192.168.2.2 init
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23180]: SIGTERM[hard,] received, process exiting
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: /sbin/route add -net 0.0.0.0 netmask 0.0.0.0 metric 3 gw 192.168.2.2
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: /sbin/route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.2
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: UDPv4 link local (bound): [undef]
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: UDPv4 link remote: [undef]
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: MULTI: multi_init called, r=256 v=256
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: IFCONFIG POOL: base=192.168.2.4 size=62, ipv6=0
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: IFCONFIG POOL LIST
Mon Jul 11 13:40:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: Initialization Sequence Completed
Mon Jul 11 13:42:41 2016 daemon.notice openvpn(BlueBell_server)[23272]: xx.81.17.116:35219 TLS: Initial packet from [AF_INET]xx.81.17.116:35219, sid=8cf75316 afec99e5
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: xx.81.17.116:35219 VERIFY OK: depth=1, C=US, ST=OR, L=EUGENE, O=Lethe Mnemosyne, emailAddress=xx
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: xx.81.17.116:35219 VERIFY OK: depth=0, C=US, ST=OR, O=Lethe Mnemosyne, CN=BlueBell, emailAddress=xx
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: xx.81.17.116:35219 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: xx.81.17.116:35219 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: xx.81.17.116:35219 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: xx.81.17.116:35219 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: xx.81.17.116:35219 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: xx.81.17.116:35219 [BlueBell] Peer Connection Initiated with [AF_INET]xx.81.17.116:35219
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: BlueBell/xx.81.17.116:35219 OPTIONS IMPORT: reading client specific options from: /etc/openvpn/ccd/BlueBell
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: BlueBell/xx.81.17.116:35219 MULTI: Learn: 192.168.2.9 -> BlueBell/xx.81.17.116:35219
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: BlueBell/xx.81.17.116:35219 MULTI: primary virtual IP for BlueBell/xx.81.17.116:35219: 192.168.2.9
Mon Jul 11 13:42:42 2016 daemon.notice openvpn(BlueBell_server)[23272]: BlueBell/xx.81.17.116:35219 MULTI: internal route 0.0.0.0/0 -> BlueBell/xx.81.17.116:35219
Mon Jul 11 13:42:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: BlueBell/xx.81.17.116:35219 PUSH: Received control message: 'PUSH_REQUEST'
Mon Jul 11 13:42:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: BlueBell/xx.81.17.116:35219 send_push_reply(): safe_cap=940
Mon Jul 11 13:42:45 2016 daemon.notice openvpn(BlueBell_server)[23272]: BlueBell/xx.81.17.116:35219 SENT CONTROL [BlueBell]: 'PUSH_REPLY,route 192.168.4.0 255.255.255.0,route 192.168.2.1,topology net30,ping 10,ping-restart 120,ifconfig 192.168.2.9 192.168.2.10' (status=1)
The client config file:
root@AP1:/etc/openvpn/ccd# cat BlueBell
ifconfig-push 192.168.2.9 192.168.2.10
iroute 0.0.0.0 0.0.0.0 ##### this doesn't work, I can't ping subnet at all
# iroute 192.168.2.0 255.255.255.0 ##### this works, I can ping subnet, but not outside the subnet
and my server config file:
root@AP1:/etc/openvpn/ccd# cat /tmp/etc/open*
persist-key
persist-tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/keys/BlueBell.crt
client-config-dir /etc/openvpn/ccd
comp-lzo yes
dev tun1
dh /etc/openvpn/dh1024.pem
ifconfig-pool-persist /tmp/ipp.txt
keepalive 10 120
key /etc/openvpn/keys/BlueBell.key
port 1195
proto udp
route 0.0.0.0 0.0.0.0 192.168.2.2 3
script-security 2
server 192.168.2.0 255.255.255.0
status /tmp/openvpn-status.log
verb 3
push route 192.168.4.0 255.255.255.0
up /usr/bin/set-promisc