My created a ubuntu LTS 14.04 on windows azure.
installed a open VPN service refer to document
https://help.ubuntu.com/14.04/serverguide/openvpn.html
of course, I opened related port on server, such as TCP 22, 443, 943 and UDP 1194.
then I installed open VPN on my windows 7 machine, open VPN GUI showed to me that it connected successfully, but when I opened any website, it showed
"Gateway Timeout"
I used Putty to log on the server, and start the service,
NOTE: there is no [ OK ] at the end of line when I start openvpn service.
azureuser@alexvpnsvr:/$ sudo service openvpn stop
* Stopping virtual private network daemon(s)... * Stopping VPN 'server' [ OK ]
azureuser@alexvpnsvr:/$ sudo service openvpn start
* Starting virtual private network daemon(s)... * Autostarting VPN 'server'
azureuser@alexvpnsvr:/$ sudo service openvpn status
* VPN 'server' is running
server.conf
port 1194
proto udp
dev tun
ca ca.crt
cert alexvpnsvr.crt
key alexvpnsvr.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
client.ovpn
NOTE: if I use dns name of server such as alexvpnsvr.cloudapp.net, client failed to connect to server. I have to change it to server IP address.
client
dev tun
proto udp
remote alexvpnsvr.cloudapp.net 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
comp-lzo
verb 3
the following is the log file of openVPN GUI.
Mon Dec 01 16:41:51 2014 OpenVPN 2.3.5 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Nov 7 2014
Mon Dec 01 16:41:51 2014 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.05
Enter Management Password:
Mon Dec 01 16:41:51 2014 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Mon Dec 01 16:41:51 2014 Need hold release from management interface, waiting...
Mon Dec 01 16:41:51 2014 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Mon Dec 01 16:41:51 2014 MANAGEMENT: CMD 'state on'
Mon Dec 01 16:41:51 2014 MANAGEMENT: CMD 'log all on'
Mon Dec 01 16:41:51 2014 MANAGEMENT: CMD 'hold off'
Mon Dec 01 16:41:51 2014 MANAGEMENT: CMD 'hold release'
Mon Dec 01 16:41:51 2014 Socket Buffers: R=[8192->8192] S=[8192->8192]
Mon Dec 01 16:41:51 2014 UDPv4 link local: [undef]
Mon Dec 01 16:41:51 2014 UDPv4 link remote: [AF_INET]138.92.192.91:1194
Mon Dec 01 16:41:51 2014 MANAGEMENT: >STATE:1417423311,WAIT,,,
Mon Dec 01 16:41:52 2014 MANAGEMENT: >STATE:1417423312,AUTH,,,
Mon Dec 01 16:41:52 2014 TLS: Initial packet from [AF_INET]138.92.192.91:1194, sid=abc008c0 7e0791fb
Mon Dec 01 16:41:53 2014 VERIFY OK: depth=1, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=windowsazure, CN=alexvpnsvr, name=alexvpnsvr, emailAddress=me@cloudapp.net
Mon Dec 01 16:41:53 2014 VERIFY OK: nsCertType=SERVER
Mon Dec 01 16:41:53 2014 VERIFY OK: depth=0, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=windowsazure, CN=alexvpnsvr, name=alexvpnsvr, emailAddress=me@cloudapp.net
Mon Dec 01 16:42:01 2014 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Dec 01 16:42:01 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Dec 01 16:42:01 2014 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Dec 01 16:42:01 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Dec 01 16:42:01 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Mon Dec 01 16:42:01 2014 [alexvpnsvr] Peer Connection Initiated with [AF_INET]138.92.192.91:1194
Mon Dec 01 16:42:02 2014 MANAGEMENT: >STATE:1417423322,GET_CONFIG,,,
Mon Dec 01 16:42:03 2014 SENT CONTROL [alexvpnsvr]: 'PUSH_REQUEST' (status=1)
Mon Dec 01 16:42:03 2014 PUSH: Received control message: 'PUSH_REPLY,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Mon Dec 01 16:42:03 2014 OPTIONS IMPORT: timers and/or timeouts modified
Mon Dec 01 16:42:03 2014 OPTIONS IMPORT: --ifconfig/up options modified
Mon Dec 01 16:42:03 2014 OPTIONS IMPORT: route options modified
Mon Dec 01 16:42:03 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Mon Dec 01 16:42:03 2014 MANAGEMENT: >STATE:1417423323,ASSIGN_IP,,10.8.0.6,
Mon Dec 01 16:42:03 2014 open_tun, tt->ipv6=0
Mon Dec 01 16:42:03 2014 TAP-WIN32 device [Local Area Connection 2] opened: \\.\Global\{6B59BD96-1443-41A6-AED0-7EB0E33A3B94}.tap
Mon Dec 01 16:42:03 2014 TAP-Windows Driver Version 9.21
Mon Dec 01 16:42:03 2014 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {6B59BD96-1443-41A6-AED0-7EB0E33A3B94} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Mon Dec 01 16:42:03 2014 Successful ARP Flush on interface [18] {6B59BD96-1443-41A6-AED0-7EB0E33A3B94}
Mon Dec 01 16:42:08 2014 TEST ROUTES: 1/1 succeeded len=1 ret=1 a=0 u/d=up
Mon Dec 01 16:42:08 2014 MANAGEMENT: >STATE:1417423328,ADD_ROUTES,,,
Mon Dec 01 16:42:08 2014 C:\Windows\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Mon Dec 01 16:42:08 2014 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=20 and dwForwardType=4
Mon Dec 01 16:42:08 2014 Route addition via IPAPI succeeded [adaptive]
Mon Dec 01 16:42:08 2014 Initialization Sequence Completed
Mon Dec 01 16:42:08 2014 MANAGEMENT: >STATE:1417423328,CONNECTED,SUCCESS,10.8.0.6,138.92.192.91
Furthermore, I installed a openVPN access server on the same machine, and I can use openVPN connect to connect to it and access any website such as twitter.com successfully.
Any help will be much appreciated. thx a lot.
p.s.
I am not good ad linux as I always worked on windows. if you need me run some commands to trouble shooting, please tell me the full command name and parameters. thx.