Server:
Code: Select all
/ppp profile
set default change-tcp-mss=yes comment="" name=default only-one=default \
use-compression=default use-encryption=default use-vj-compression=default
add change-tcp-mss=default comment="" idle-timeout=30m local-address=\
192.168.4.1 name=OVPN only-one=no rate-limit=20M/20M remote-address=\
ovpn-pool use-compression=default use-encryption=required \
use-vj-compression=default
set default-encryption change-tcp-mss=yes comment="" name=default-encryption \
only-one=default use-compression=default use-encryption=yes \
use-vj-compression=default
/ppp aaa
set accounting=yes interim-update=0s use-radius=no
/ppp secret
add caller-id="" comment="" disabled=no limit-bytes-in=0 limit-bytes-out=0 \
name=xxxxxxx password=xxxxxxx profile=OVPN routes="" service=ovpn
/interface ovpn-server
add comment="" disabled=no name=ovpn-in1 user=xxxxxxx
/interface ovpn-server server
set auth=sha1,md5 certificate=cert1 cipher=blowfish128,aes128,aes192,aes256 \
default-profile=OVPN enabled=yes keepalive-timeout=disabled mac-address=\
FE:B8:0B:2F:47:AE max-mtu=1500 mode=ip netmask=29 port=443 \
require-client-certificate=no
/ip pool
add name=ovpn-pool ranges=192.168.4.2-192.168.4.50
Code: Select all
/interface ovpn-client
add add-default-route=yes auth=md5 certificate=none cipher=blowfish128 comment="" connect-to=xxx.xxx.xxx.26 disabled=no mac-address=0B:FF:96:21:DF:D4 \
max-mtu=1500 mode=ip name=ovpn-out1 password=xxxxxxx port=443 profile=default user=xxxxxxx
/ip dhcp-client
add add-default-route=yes comment="" default-route-distance=2 disabled=no host-name=no.host interface=ether1
The OVPN server needs the CA certificate to be present. I put the CA certificate on the server and the problem seems to be fixed.
Edit 2:
It only stayed up for ~1 hour. It returned back to dying after ~2 minuets after the OVPN client is started.