Community discussions

MikroTik App
 
Stardoom
just joined
Topic Author
Posts: 2
Joined: Thu Dec 21, 2023 11:56 am
Location: Sweden

Wireguard not start

Thu Jun 06, 2024 10:42 am

Hi!
I can't get Wireguard to start with the config file from my VPN provider "Integrity VPN".
I have tried a variety of settings in my Mikrotik x86 but could not get Wireguard to connect.
The following text is in the config file that I received from the VPN provider.
-------------------------------------------------
[Interface]
PrivateKey = *****secret*****
dns = 2001:9b1:8826::53, 2001:9b0:4:2601::53, 98.128.186.86, 155.4.89.136
Address = 10.0.245.27/24,fdab:1337:1337:245::27/64

[Peer]
PublicKey = *****secret*****
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = wireguard.5july.net:48575
-------------------------------------------------
Please help me!!
rgds
/R
 
erlinden
Forum Guru
Forum Guru
Posts: 2682
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: Wireguard not start

Thu Jun 06, 2024 10:43 am

Can you share this info (just remove the keys and public IP):
/interface/wireguard
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22089
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Wireguard not start

Thu Jun 06, 2024 1:27 pm

Not enough,
/export file=anynameyouwish ( minus router serial number, any public WANIP information, keys etc.)

Plus.
What are the requirements for wireguard traffic, one user, a whole subnet etc......
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1392
Joined: Tue Jun 23, 2015 2:35 pm

Re: Wireguard not start

Thu Jun 06, 2024 2:36 pm

@anav , while we there. (sorry as i didn't open separate topic)

can you please tell me in which cases can i use the option Responder

I need your e.g. dw about wiki.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22089
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Wireguard not start

Thu Jun 06, 2024 10:28 pm

Hi nichky, Sorry does not compute LOL.
I dont recall every writing about "responder" ?
What is the context and what is the requirement?
 
msatter
Forum Guru
Forum Guru
Posts: 2942
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: Wireguard not start

Thu Jun 06, 2024 10:53 pm

To me it is strange to see portnumbers in the DNS line.
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1392
Joined: Tue Jun 23, 2015 2:35 pm

Re: Wireguard not start

Fri Jun 07, 2024 2:55 am

@anav,

do u know what i'm asking about?

Also i've noticed that with BTH , Responder is enabled by default.
 
CGGXANNX
Member Candidate
Member Candidate
Posts: 257
Joined: Thu Dec 21, 2023 6:45 pm

Re: Wireguard not start

Fri Jun 07, 2024 9:50 am

Responder is a new option for peers introduced in 7.15. Turn it on for a peer if the router will not be the one who initiates a WireGuard connection with the peer (router only listens for incoming connections)

https://help.mikrotik.com/docs/display/ ... uard-Peers

is-responder (yes | no; Default: no)

Specifies if peer is intended to be connection initiator or only responder. Should be used on WireGuard devices that are used as "servers" for other devices as clients to connect to. Otherwise router will all repeatedly try to connect "endpoint-address" or "current-endpoint-address" causing unnecessary system logs to be written.
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1392
Joined: Tue Jun 23, 2015 2:35 pm

Re: Wireguard not start

Fri Jun 07, 2024 11:45 am

@CGGXANNX

That is reminding me to IPsec--> passive mode.
But back to WG. How about on the WG_Server if i didn't specify the Endpoint (usually set up), is that the seme thing?

Than what is purpose of Responder?
 
CGGXANNX
Member Candidate
Member Candidate
Posts: 257
Joined: Thu Dec 21, 2023 6:45 pm

Re: Wireguard not start

Fri Jun 07, 2024 12:17 pm

@CGGXANNX

That is reminding me to IPsec--> passive mode.
But back to WG. How about on the WG_Server if i didn't specify the Endpoint (usually set up), is that the seme thing?

Than what is purpose of Responder?

In v7.14 this change was made to WG in RouterOS:

*) wireguard - optimised and improved WireGuard service logging;

That resulted in excessive log messages, as you can read from the 7.14 release thread viewtopic.php?t=205097#p1059453, when RouterOS tries to send handshake packets and the remote peer is no longer available. It did that before 7.14 but the error was not logged so nobody noticed. As you can read from the documentation quote above, you don't have to explicitly specify the endpoint address and port for RouterOS to initiate the handshake. If a connection was previously established, the current-endpoint-address and current-endpoint-port will have non-empty values and will be used for the handshake.

Now in 7.15 you can enable the "Responder" option and handshake will no longer be initiated by the router.

Who is online

Users browsing this forum: CloudRouting, kickstart24, sindy, StuckSomewhere and 42 guests