Hallo to everyone and merry Christmas. I have made some changes to the server config file and now i can ping all the clients but i have no internet access.
The server config file is :
local 10.1.10.4
port 443
proto udp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 10.1.10.4 255.255.255.255"
push "dhcp-option DNS 10.1.10.2"
push "redirect-gateway def1"
#push "dhcp-option servername.ddns.net:443"
client-to-client
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
And the Client config file
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
##############################################
# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client
# Use the same setting as you are using on
# the server.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
;dev tap
dev tun
# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one. On XP SP2,
# you may need to disable the firewall
# for the TAP adapter.
;dev-node MyTap
# Are we connecting to a TCP or
# UDP server? Use the same setting as
# on the server.
;proto tcp
proto udp
# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote servername.ddns.net 443
;remote my-server-2 443
# Choose a random host from the remote
# list for load-balancing. Otherwise
# try hosts in the order specified.
;remote-random
# Keep trying indefinitely to resolve the
# host name of the OpenVPN server. Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite
# Most clients don't need to bind to
# a specific local port number.
nobind
# Downgrade privileges after initialization (non-Windows only)
;user nobody
;group nobody
# Try to preserve some state across restarts.
persist-key
persist-tun
# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here. See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
# Wireless networks often produce a lot
# of duplicate packets. Set this flag
# to silence duplicate packet warnings.
;mute-replay-warnings
# SSL/TLS parms.
# See the server config file for more
# description. It's best to use
# a separate .crt/.key file pair
# for each client. A single ca
# file can be used for all clients.
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\xx-PC.crt"
key "C:\\Program Files\\OpenVPN\\config\\xx-PC.key"
# Verify server certificate by checking
# that the certicate has the nsCertType
# field set to "server". This is an
# important precaution to protect against
# a potential attack discussed here:
# http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the nsCertType
# field set to "server". The build-key-server
# script in the easy-rsa folder will do this.
ns-cert-type server
# If a tls-auth key is used on the server
# then every client must also have the key.
;tls-auth ta.key 1
# Select a cryptographic cipher.
# If the cipher option is used on the server
# then you must also specify it here.
;cipher x
# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
comp-lzo
# Set log file verbosity.
verb 3
# Silence repeating messages
;mute 20
And the log file from the client :
Fri Dec 25 21:29:08 2015 OpenVPN 2.3.9 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Dec 16 2015
Fri Dec 25 21:29:08 2015 library versions: OpenSSL 1.0.1q 3 Dec 2015, LZO 2.09
Enter Management Password:
Fri Dec 25 21:29:08 2015 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Fri Dec 25 21:29:08 2015 Need hold release from management interface, waiting...
Fri Dec 25 21:29:08 2015 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Fri Dec 25 21:29:08 2015 MANAGEMENT: CMD 'state on'
Fri Dec 25 21:29:08 2015 MANAGEMENT: CMD 'log all on'
Fri Dec 25 21:29:08 2015 MANAGEMENT: CMD 'hold off'
Fri Dec 25 21:29:08 2015 MANAGEMENT: CMD 'hold release'
Fri Dec 25 21:29:08 2015 Socket Buffers: R=[65536->65536] S=[65536->65536]
Fri Dec 25 21:29:08 2015 MANAGEMENT: >STATE:1451078948,RESOLVE,,,
Fri Dec 25 21:29:08 2015 UDPv4 link local: [undef]
Fri Dec 25 21:29:08 2015 UDPv4 link remote: [AF_INET]My IP:443
Fri Dec 25 21:29:08 2015 MANAGEMENT: >STATE:1451078948,WAIT,,,
Fri Dec 25 21:29:08 2015 MANAGEMENT: >STATE:1451078948,AUTH,,,
Fri Dec 25 21:29:08 2015 TLS: Initial packet from [AF_INET]My IP:443, sid=5b5c6c65 1861c87b
Fri Dec 25 21:29:08 2015 VERIFY OK: depth=1, C=xx, ST=xxx, L=xxxxx, O=xxxxx, OU=xxxxxx-CA, CN=xxxxxxx, emailAddress=email@ICLOUD.COM
Fri Dec 25 21:29:08 2015 VERIFY OK: nsCertType=SERVER
Fri Dec 25 21:29:08 2015 VERIFY OK: depth=0, C=xx, ST=xxx, O=xxxxx, OU=xxxx-CA, CN=SERVER, emailAddress=email@ICLOUD.COM
Fri Dec 25 21:29:08 2015 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Dec 25 21:29:08 2015 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Dec 25 21:29:08 2015 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Dec 25 21:29:08 2015 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Dec 25 21:29:08 2015 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-GCM-SHA384, 1024 bit RSA
Fri Dec 25 21:29:08 2015 [SERVER] Peer Connection Initiated with [AF_INET] myip:443
Fri Dec 25 21:29:09 2015 MANAGEMENT: >STATE:1451078949,GET_CONFIG,,,
Fri Dec 25 21:29:10 2015 SENT CONTROL [SERVER]: 'PUSH_REQUEST' (status=1)
Fri Dec 25 21:29:10 2015 PUSH: Received control message: 'PUSH_REPLY,route 10.8.0.1 255.255.255.255,route 10.8.0.0 255.255.255.0,route 10.1.10.4 255.255.255.255,dhcp-option DNS 10.1.10.2,redirect-gateway def1,route 10.8.0.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Fri Dec 25 21:29:10 2015 OPTIONS IMPORT: timers and/or timeouts modified
Fri Dec 25 21:29:10 2015 OPTIONS IMPORT: --ifconfig/up options modified
Fri Dec 25 21:29:10 2015 OPTIONS IMPORT: route options modified
Fri Dec 25 21:29:10 2015 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Fri Dec 25 21:29:10 2015 ROUTE_GATEWAY 10.1.10.1/255.0.0.0 I=4 HWADDR=d0:50:99:5a:f6:e4
Fri Dec 25 21:29:10 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Fri Dec 25 21:29:10 2015 MANAGEMENT: >STATE:1451078950,ASSIGN_IP,,10.8.0.6,
Fri Dec 25 21:29:10 2015 open_tun, tt->ipv6=0
Fri Dec 25 21:29:10 2015 TAP-WIN32 device [Ethernet 2] opened: \\.\Global\{CDFCF8B3-1E9C-4685-9478-86102A447F35}.tap
Fri Dec 25 21:29:10 2015 TAP-Windows Driver Version 9.21
Fri Dec 25 21:29:10 2015 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {CDFCF8B3-1E9C-4685-9478-86102A447F35} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Fri Dec 25 21:29:10 2015 Successful ARP Flush on interface [8] {CDFCF8B3-1E9C-4685-9478-86102A447F35}
On the router i have added inbound and outbound service on port 443 and at the server firewall i have added the port 443 open to UDP.
IPhone, Ipad and PC windows 10 connecting successfully but i have internet connection
Any suggestions ?