Community discussions

MikroTik App
 
olivier56
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Wed Aug 15, 2018 8:26 pm

opnvpn client

Sun Nov 27, 2022 5:24 pm

i would like for testing try to connect openvpn client mikrotik to openvpn server stormshield

i create open vpn client on my own mikrotik but i don t know how to connect to server

something to do for connect , click or any think else

br
 
User avatar
MickeyT
Member Candidate
Member Candidate
Posts: 125
Joined: Tue Feb 18, 2020 7:06 am
Location: Australia

Re: opnvpn client

Mon Nov 28, 2022 8:36 am

What version of RouterOS are you using? Also, can you, please attach your current configuration (see my signature for instructions) so we can see what you've done.

Now, having said that, bring up a terminal connection to your MikroTik and run the following command:
/interface ovpn-client print
Does it show your OpenVPN configuration and, more importantly, what status does it show for the configuration?

The example in the old MikroTik Wiki is (The example from the new Wiki is here):
[admin@bumba] /interface ovpn-client> add connect-to=10.1.101.1 user=test password=123 disabled=no 
[admin@bumba] /interface ovpn-client> print 
Flags: X - disabled, R - running 
 0    name="ovpn-out1" mac-address=FE:7B:9C:F9:59:D0 max-mtu=1500 connect-to=10.1.101.1 
      port=1194 mode=ip user="test" password="123" profile=default certificate=none auth=sha1 
      cipher=blowfish128 add-default-route=no 
 
olivier56
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Wed Aug 15, 2018 8:26 pm

Re: opnvpn client

Mon Nov 28, 2022 7:29 pm

configuration

name="ovpn-out1" mac-address=02:3F:76:47:82:12 max-mtu=1500
connect-to=95.178.96.137 port=1194 mode=ip protocol=tcp user="tutu"
password="12345" profile=default certificate=none
verify-server-certificate=no tls-version=any auth=sha1 cipher=blowfish128
use-peer-dns=yes add-default-route=yes
 
User avatar
MickeyT
Member Candidate
Member Candidate
Posts: 125
Joined: Tue Feb 18, 2020 7:06 am
Location: Australia

Re: opnvpn client

Tue Nov 29, 2022 10:33 am

Thank you for the information but that isn't quite what I'm after. I did a test setup on RouterOS CHR 7.6 and it gave me the following when I ran the command
/interface ovpn-client print

The R at the beginning (by the 0) shows that the connection is running.

[admin@MikroTik] /interface/ovpn-client> /interface ovpn-client print
Flags: X - disabled; R - running; H - hw-crypto
 0  R  name="ovpn-out1" mac-address=FE:7B:9C:F9:59:D0 max-mtu=1500
       connect-to=93.184.216.34 port=1194 mode=ip protocol=tcp user="test"
       password="12345" profile=default certificate=MyCert
       verify-server-certificate=yes tls-version=only-1.2 auth=sha1 cipher=blowfish128
       use-peer-dns=yes add-default-route=yes 

What do you see when you run the command. Also, what do you see in the log? During my testing I go a lot of entries showing that the system was trying to connect but failing. Once I got it working it showed the connection being made and running.
 
olivier56
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Wed Aug 15, 2018 8:26 pm

Re: opnvpn client

Mon Dec 05, 2022 12:55 pm

hi

know i can connect but link up and down every 15 s.

and i can t ping server.
may be mikrotik and stormshield don t want speak :)
 
User avatar
MickeyT
Member Candidate
Member Candidate
Posts: 125
Joined: Tue Feb 18, 2020 7:06 am
Location: Australia

Re: opnvpn client

Wed Dec 07, 2022 11:54 am

MikroTik RouterOS doesn't support all of the settings or features of the OpenVPN spec so it might not work with StormShield (I've never used StormShield so I don't know what it supports or needs).

Who is online

Users browsing this forum: DeltaCreek, Fasder, stevencameron16, TeWe and 88 guests