lisenok425
@lisenok425
Начинающий Ардуинщик.

Микротик клиент не подключаются к Openvpn server как настроить?

Суть такая поднят openvpn server на машине с внешнем ip ubuntu 16. к нему нужно подключить микротик локальной сети, чтоб в любом месте можно было подключится к дому. комп и телефон подключаются к vpn а вот микротик не заставить, в настройках не очень силен и буду очень признателен кто подскажет. как логи снимать особо не знаю но врубаюсь быстро.
На пк и телефоне подключаюсь с помощью файлов конфигурации.

Файл конфигурации с ПК
##############################################
# 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 89.xxx.xxx.xxx 1194
;remote my-server-2 1194

# 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 ca.crt
#cert client.crt
#key client.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

# 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.
# Note that v2.4 client/server will automatically
# negotiate AES-256-GCM in TLS mode.
# See also the ncp-cipher option in the manpage
cipher AES-128-CBC
auth SHA256

# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
#comp-lzo
key-direction 1
# Set log file verbosity.
verb 3

# Silence repeating messages
;mute 20
# script-security 2
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 6 (0x6)
    Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=RU, ST=Moscow, L=Moscow, O=Lis, OU=My, CN=Lis CA/name=server/emailAddress=867ya.ru
        Validity
            Not Before: Oct 12 06:20:47 2019 GMT
            Not After : Oct  9 06:20:47 2029 GMT
        Subject: C=RU, ST=Moscow, L=Moscow, O=Lis, OU=My, CN=client5/name=server/emailAddress=79213027867ya.ru
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:9c:02:10:40:1a:78:c7:ff:2e:4f:be:1e:c4:4c:
                    b6:9d:4a:1b:ab:ab:63:c4:7d:08:a1:35:37:a5:62:
                    dc:65:24:18:d1:fb:1c:da:d2:9b:06:1b:fe:6b:7c:
                    ca:eb:02:50:03:9f:3c:c1:8c:79:11:3c:cb:70:cf:
                    13:a0:3c:e3:d6:0f:ae:42:99:cc:4a:30:73:ed:05:
                                        5e:ec:09:84:c4:3c:89:f4:fb:fc:2e:77:8a:f5:02:
                    0a:04:07:7b:2b:d8:9d:53:57:56:9f:bd:b9:93:ec:
                    b8:40:79:ef:55:7b:f7:d5:32:e6:fe:8d:c6:ca:bb:
                    56:10:28:9f:67:eb:f2:5f:4f:8c:75:7f:9c:56:12:
                    d9:60:b2:21:83:3d:4a:b0:85:73:ba:36:87:6d:73:
                    f0:b2:60:db:2c:ef:49:63:ee:46:fc:6b:cd:0d:4f:
                    10:f3:8e:88:01:2c:7b:53:14:ab:41:6f:c5:af:65:
                    21:0b:ba:77:a1:8d:08:48:0b:ea:03:b8:25:e1:85:
                    1e:71
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Basic Constraints: 
                CA:FALSE
            Netscape Comment: 
                Easy-RSA Generated Certificate
            X509v3 Subject Key Identifier: 
                
            X509v3 Authority Key Identifier: 
                keyid:8B:25:1E:A2:E4:31:xx:B5:3B:xx:77:7A:xx:9D:35:xx:D0:EE:DF:4B
                DirName:/C=RU/ST=Moscow/L=Moscow/O=Lis/OU=My/CN=Lis CA/name=server/emailAddress=867ya.ru
                serial:xx:07:48:xx:EF:49:xx:08

            X509v3 Extended Key Usage: 
                TLS Web Client Authentication
            X509v3 Key Usage: 
                Digital Signature
            X509v3 Subject Alternative Name: 
                DNS:client5
    Signature Algorithm: sha256WithRSAEncryption
         24:58:49:66:ac:b4:c6:3b:3d:60:0b:fe:e4:fb:f6:cc:aa:29:
         8b:8d:6a:8b:80:3a:f6:e9:a5:5b:55:58:ec:8e:e0:9a:9f:00:
                  5f:66:15:53:2b:41:96:13:de:ec:6a:72:73:32:10:45:3c:16:
         4c:2e:a2:fa:50:22:82:58:8b:0a:f9:a6:68:45:94:0c:ef:16:
         ce:f4:a7:1e:ad:9f:ea:5f:b7:30:ca:46:49:88:66:8f:76:74:
         39:90:cc:b8:61:3b:9c:25:8b:34:26:e5:68:30:b7:8e:eb:bb:
         09:c8:ab:1d:ec:fc:a0:6f:46:66:73:90:0c:51:59:98:1f:8d:
         73:6e:af:cb
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-auth>
  • Вопрос задан
  • 1483 просмотра
Пригласить эксперта
Ответы на вопрос 1
akelsey
@akelsey
proto udp
Микротик не умеет OpenVPN по UDP. К сожалению. Либо меняйте на TCP либо никак.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы