Incognito-Coder / Wiregen

a script for generate wireguard configs from surfshark vpn service,based on mobile API
https://mr-alireza.ir
81 stars 12 forks source link

Wiregen confs need to be regenerated after a few days? #11

Closed Inkapa closed 2 years ago

Inkapa commented 2 years ago

I'm rather new to wireguard, so I don't know if this is normal behavior.

After a seemingly random amount of time (~1-2 weeks), all the .conf files generated by wiregen become unusable, as if they "expired"? Wireguard doesn't seem to throw any errors, but I won't have any internet access. I tried switching servers, but the issue seems to affect all confs. Of course if I disconnect from wireguard, my internet connection comes back.

When it happens, if I regenerate the confs with wiregen, replace them in /etc/wireguard and try to reconnect, it fixes the problem and everything works fine until the confs "expire" again.

I'm not sure if this is an issue with:

But I've got wireguard configured on two different computers both running Manjaro linux KDE. And the issue keeps happening on both computers.

Switching servers, rebooting, reconnecting and so on doesn't seem to fix anything, the only fix I found is to regenerate the confs.

Incognito-Coder commented 2 years ago

this is normal. surfshark and other vpn services reset each user privatekey per a week or sometimes one per a month. everythings on your machine is ok.

Inkapa commented 2 years ago

Ah alright, thanks for the heads up!