Well, I still have some problems establishing a working OpenVPN Connection. So first, Iam running a main OpenWRT-Router with a working OpenVPN configuration. My Windows-Machine connects pretty well all the time to my main OpenVPN-Server (Router). I made anonther Key for the new project: Connect the mobile GL.iNet X750 with OpenVPN with my main router at home.
Both Routers connect and a working, a green VPN-connection is shown. But connect by wifi with any device to the X750 there is no WWW-connection. Even with the X750 I can ping all my local network devices at home as aspected (using SSH). But with a wifi-connected device I have no connection to the local devices at the main router at home.
My configuration:
##############################################
# 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
pull
# 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 dafosy.aaadnsaaaa.com 1194
redirect-gateway def1
# 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 nogroup
# 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>
-----BEGIN CERTIFICATE-----
S68u8V
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 6 (0x6)
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=DE, ST=SN, L=
Validity
Not Before: Feb 19 22:59:06 2009 GMT
Not After : Feb 16 22:59:06 2034 GMT
Subject: C=DE, ST=SN, L=
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (2048 bit)
Modulus:
36:xx:xx:bd:32:cd
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
Easy-RSA Generated Certificate
X509v3 Subject Key Identifier:
56:XX:XX:91
X509v3 Authority Key Identifier:
keyid:18:xx:xx:9A
DirName:/C=DE/ST=SN/L=xxxx
serial:3A:XX:XX:A5
X509v3 Extended Key Usage:
TLS Web Client Authentication
X509v3 Key Usage:
Digital Signature
X509v3 Subject Alternative Name:
DNS:client5
Signature Algorithm: sha256WithRSAEncryption
b7:69:xx:xx:81
-----BEGIN CERTIFICATE-----
gAxxxxUJh
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
9Vyxxxxkpc=
-----END PRIVATE KEY-----
</key>
# Verify server certificate by checking that the
# certicate has the correct key usage set.
# 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 keyUsage set to
# digitalSignature, keyEncipherment
# and the extendedKeyUsage to
# serverAuth
# EasyRSA can do this for you.
remote-cert-tls server
key-direction 1
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
53c0axxxx2913
-----END OpenVPN Static key V1-----
</tls-auth>
auth SHA256
# 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
#show-valid-subnets
#Neu nach Verbindungsschwierigkeiten
reneg-sec 0
;ifconfig 10.21.173.2 10.21.173.1
cipher AES-256-CBC
;auth-user-pass
# Silence repeating messages
;mute 20
on the Server I made a clientspecific config file in /etc/openvpn/dir with the content “push “redirect-gateway””, the same as client-specific for my windows-connection.
Do there anybody having ideas to solve?
Regards
dafosy