Main router is running the gateway to the WAN connection through DSL modem, as well as firewall and DHCP server, etc.
The secondary router is running DD-WRT with its WAN connection disabled and the OpenVPN client connecting to the PrivateInternetAccess service. It is configured on the same subnet as the main.
The routing through this setup works fine except
a) I cannot get any traffic routing through the VPN tunnel - what I mean by this is that all traffic bypasses the VPN tunnel
b) The password file I have created in the /tmp/openvpncl directory gets deleted every time the router is rebooted
The command line used in the linux based router to launch the client is as follows:
Code: Select all
/usr/sbin/openvpn --config /tmp/openvpncl/openvpn.conf --route-up /tmp/openvpncl/route-up.sh --down-pre /tmp/openvpncl/route-down.sh --daemon
Code: Select all
ca /tmp/openvpncl/ca.crt
management 127.0.0.1 16
management-log-cache 100
verb 3
mute 3
syslog
writepid /var/run/openvpncl.pid
client
resolv-retry infinite
nobind
persist-key
persist-tun
script-security 2
dev tun1
proto udp
cipher bf-cbc
auth sha1
remote us-midwest.privateinternetaccess.com 1194
comp-lzo yes
tls-client
tun-mtu 1500
mtu-disc yes
fast-io
tun-ipv6
auth-user-pass /tmp/openvpncl/password.txt
persist-key
persist-tun
tls-client
remote-cert-tls server
log /tmp/var/log/log.openvpn
Code: Select all
Serverlog Clientlog 20141216 00:59:01 I OpenVPN 2.3.0 mipsel-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Mar 25 2013
20141216 00:59:01 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:16
20141216 00:59:01 W NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
20141216 00:59:01 Socket Buffers: R=[114688->131072] S=[114688->131072]
20141216 00:59:01 I UDPv4 link local: [undef]
20141216 00:59:01 I UDPv4 link remote: [AF_INET]108.61.101.142:1194
20141216 00:59:01 TLS: Initial packet from [AF_INET]108.61.101.142:1194 sid=ae237020 b3693215
20141216 00:59:01 W WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
20141216 00:59:02 VERIFY OK: depth=1 C=US ST=OH L=Columbus O=Private Internet Access CN=Private Internet Access CA emailAddress=secure@privateinternetaccess.com
20141216 00:59:02 Validating certificate key usage
20141216 00:59:02 ++ Certificate has key usage 00a0 expects 00a0
20141216 00:59:02 NOTE: --mute triggered...
20141216 00:59:05 5 variation(s) on previous 3 message(s) suppressed by --mute
20141216 00:59:05 W WARNING: 'link-mtu' is used inconsistently local='link-mtu 1542' remote='link-mtu 1570'
20141216 00:59:05 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
20141216 00:59:05 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
20141216 00:59:05 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
20141216 00:59:05 NOTE: --mute triggered...
20141216 00:59:05 2 variation(s) on previous 3 message(s) suppressed by --mute
20141216 00:59:05 I [Private Internet Access] Peer Connection Initiated with [AF_INET]108.61.101.142:1194
20141216 00:59:07 SENT CONTROL [Private Internet Access]: 'PUSH_REQUEST' (status=1)
20141216 00:59:07 PUSH: Received control message: 'PUSH_REPLY redirect-gateway def1 dhcp-option DNS 209.222.18.222 dhcp-option DNS 209.222.18.218 ping 10 route 10.166.1.1 topology net30 ifconfig 10.166.1.6 10.166.1.5'
20141216 00:59:07 OPTIONS IMPORT: timers and/or timeouts modified
20141216 00:59:07 NOTE: --mute triggered...
20141216 00:59:07 3 variation(s) on previous 3 message(s) suppressed by --mute
20141216 00:59:07 ROUTE_GATEWAY 192.168.0.1/255.255.255.0 IFACE=br0 HWADDR=58:6d:8f:31:d5:46
20141216 00:59:07 I TUN/TAP device tun1 opened
20141216 00:59:07 TUN/TAP TX queue length set to 100
20141216 00:59:07 I do_ifconfig tt->ipv6=1 tt->did_ifconfig_ipv6_setup=0
20141216 00:59:07 I /sbin/ifconfig tun1 10.166.1.6 pointopoint 10.166.1.5 mtu 1500
20141216 00:59:07 /sbin/route add -net 108.61.101.142 netmask 255.255.255.255 gw 192.168.0.1
20141216 00:59:07 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.166.1.5
20141216 00:59:07 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.166.1.5
20141216 00:59:07 /sbin/route add -net 10.166.1.1 netmask 255.255.255.255 gw 10.166.1.5
20141216 00:59:07 I Initialization Sequence Completed
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
108.61.101.142 192.168.0.1 255.255.255.255 UGH 0 0 0 br0
10.166.1.1 10.166.1.5 255.255.255.255 UGH 0 0 0 tun1
10.166.1.5 * 255.255.255.255 UH 0 0 0 tun1
192.168.0.0 * 255.255.255.0 U 0 0 0 br0
169.254.0.0 * 255.255.0.0 U 0 0 0 br0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.166.1.5 0.0.0.0 UG 0 0 0 tun1
Any assistance in resolving this would be greatly appreciated!
Bill