PfSense. OpenVPN. Клиент для Mikrotik OpenVPN server

Материал из Wiki
Перейти к навигации Перейти к поиску

Конфигурация OpenVPN сервера микротика

На микротике должен быть сертификат CA

Выгружаем его в файл cert_export_CA.crt

/certificate export-certificate CA type=pem

Конфигурация OpenVPN сервера

/interface ovpn-server server

set auth=sha1 certificate=OVPN-SERVER cipher=blowfish128,aes256 default-profile=default-encryption enabled=yes port=1101

Пользователь

/ppp secret

add local-address=172.23.199.1 name=user01 password=1234 profile=default-encryption remote-address=172.23.199.236

Конфигурация pfsense OpenVPN клиента

Импортируем публичный сертификат CA из микротика

  • System - Certificate Manager - CAs
    • Add
      • Descriptive name: mikrotik_CA
      • Method: Import existing CA
      • Type: X.509 (PEM)
      • Certificate data: <INSERT_CONTENTS_OF_cert_export_CA.crt_FROM_MIKROTIK>
  • VPN - OpenVPN - Clients
    • Add
      • Description: alf_ovpn_client
      • Server mode: Peer to Peer (SSL/TLS)
      • Device mode : tun
      • Protocol: TCP on IPv4 only
      • Interface: WAN1
      • Server host or address: <MIKROTIK_OVPN_SERVE_HOST>
      • Server port: 1196
      • Username: user01
      • Password: <USER01_PASS>
      • TLS Configuration: -
      • TLS keydir direction: Use default direction
      • Peer Certificate Authority: mikrotik_CA
      • Client Certificate: None
      • Data Encryption Negotiation: V
      • Data Encryption Algorithms: aes256,aes128
      • Fallback Data Encryption Algorithm: aes-256-cbc
      • Auth digest algorithm: sha1
      • Gateway creation: IPv4
  • Interfaces - Interface Assignments
    • Add new ovpn interface
      • Enable: V
      • Description: alf_ovpn_client
  • Status - Interfaces
    • Здесь должен быть интерфейс овпн клиента с полученным адресом
  • Status OpenVPN
    • Смотрим статус, возможно потребуется перезапустить здесь службу (иконка с круглой стрелочкой)