Create Surfshark WireGuard configuration files on OpenWRT

I found a post about how to create Surfshark WireGuard configuration files on OpenWRT, and I just tried the project on GL-AR750S 3.212, it works. Anyone interested can try it.


Would be great to see someone do this on the Flint AX1800.

I just tested the project on GL-AX1800 Flint, 3.213, it works too. :grinning:
I think the project works on all GL.iNet routers.


Waiting for it…when it available on the mobile app?

I think on June or July will have a beta version. :grinning:

I am using the scripts for the past month and it works. We try not to advertise it to much because surfshark doesn’t give us Wireguard conf files officially

It looks like they’re doing a poll to see if they want to do this feature

The project started by yazdan about six month ago

wireguard client config files for surfshark

It works . Every monday we wimply gen new keys or verify the old ones again

New forks came along by ruralroots and then came


You can use it passively every Monday or dynamically with sswg


Hopefully not too long to wait?

Hey guys,
I am working on integrating the Surfshark WireGuard to GL.iNet app. There still have issue as @anes said, have to verify the old keys every 7 days, otherwise the connection will be invalid. The verify process is to connect router, open app, then go to the Surfshark page, that is it.
If so, would you still want to add Surfshark to the app?


That would be great especially if you can add a cron job that automatically does all the verification and if it fails you start the verification manually

1 Like

Good idea, but this would have to go on the firmware side and it would take longer to get all models to have this feature.

1 Like

Break in two stages first bring the the integration that you planed and then complete with the cron job. Thanks for all the effort

1 Like

The test version is available. Please note it may has bugs. Any feedback would be greatly appreciated


Google Play:

Surfshark’s WireGuard key is valid for 7 days, if the key is invalid, the WireGuard configuration is invaid too, so you need to update it from time to time. You can see the expiration date of the key in the Surfshark Account page of the app. When the expiration date of the key is less than 5 days, it will be updated automatically when you go to the Surfshark page. When the expiration date of the key is less than 24 hours, a notification will be sent to remind you, and you can turn off this notification in the Account page.

Below is the Surfshark account page,

Below is the Surfshark page.

1 Like

After 7 days expired, we need to log in again in order to renewal, right?

Or before 5 days expired, we go to account page of surfshark from the app then its will auto renewal?

Yes. But it will sends you a notification on day 6, and clicking on that notification will renewal it.

Yes. The auto renewal job is doing at the Surfshark page. See image below.

Alright :+1: noted with thanks :blush:

1 Like

So far am notice that the switching location is unable take effect, which mean you need to off the vpn then on back for the location you want.

There does seem to be a bug, thanks for the feedback. I’ll fix it as soon as possible.