L
L
LAA2014-02-26 16:02:28
Mikrotik
LAA, 2014-02-26 16:02:28

How to configure port forwarding rules on Mikrotik with ovpn-server?

Hello.
Mikrotik is an open vpn server.
Only one client connects to openvpn at all times.
It is necessary that every time Mikrotik is loaded, port forwarding rules with the correct interface name are raised. Now, after rebooting, it turns out like this and port forwarding does not work:

/ip firewall natt
add action=dst-nat chain=dstnat in-interface="(unknown)" port=37777 \
  protocol=tcp to-addresses=192.168.49.199 to-ports=37777

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LAA, 2014-02-26
@LAA

I solved the problem myself by statically naming the ovpn connection:

/interface ovpn-server
add name=ovpn1 user=user1

and specifying the interface name ovpn1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question