I flashed my LG Optimus V to a Cyanogen7 7.1RC (Gingerbread) ROM, mainly for the OpenVPN client support that is built into this ROM. My OpenVPN server is on my PBX.
Using the mobile network, I could get my server to authenticate the client and assign IP addresses, with the default server.conf configuration for OpenVPN. Then the client (Optimus) immediately refused the connection.
Here are the log entries:
Sep 21 21:30:13 pbx openvpn[20925]: <snip>:36700 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Sep 21 21:30:13 pbx openvpn[20925]: <snip>:36700 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sep 21 21:30:13 pbx openvpn[20925]: <snip>:36700 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Sep 21 21:30:13 pbx openvpn[20925]: <snip>:36700 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sep 21 21:30:13 pbx openvpn[20925]: <snip>:36700 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sep 21 21:30:13 pbx openvpn[20925]: <snip>:36700 [LGPhone] Peer Connection Initiated with <snip>:36700
Sep 21 21:30:13 pbx openvpn[20925]: LGPhone/<snip>:36700 MULTI: Learn: 10.8.0.10 -> LGPhone/<snip>:36700
Sep 21 21:30:13 pbx openvpn[20925]: LGPhone/<snip>:36700 MULTI: primary virtual IP for LGPhone/<snip>:36700: 10.8.0.10
Sep 21 21:30:15 pbx openvpn[20925]: read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
One thing I noticed, that seemed strange: the IP in the logs, is not the IP of my Optimus in Virgin Mobile's network, it seems to try connecting to proxy server on my mobile network.
Has anyone else got CM7 to work with OpenVPN?