News for hackers. Stuff that matters.
Re:Wireguard-docs: Setup, usage, configuration, and a full e... by alels on Wednesday May 29, 2019 @04:41AM (#20037971)
I looked a bit into Wireguard.

But it seems it's only really useful with static IPs.

Say my "Server" is behind a DDns Hostname and i want to connect to it from my Phone.

So my problem is. I allow incoming from 0.0.0.0 but on my mobile the DDns Hostname gets compiled to a specific IP.

OpenVpn has no problem with this setup. Is it solvable with Wireguard?

wg-dynamic seems to tackle this but wasn't really ready last time i checked

Re:Wireguard-docs: Setup, usage, configuration, and a full e... by mtmsr on Wednesday May 29, 2019 @05:03AM (#20038097)
Wireguard comes with an example script [1] that does DNS updates for peers, which works well for me in a cron job. Archwiki also has an example for systemd timers [2]. But if your question is specifically about phones, then this might get a bit more complicated to set up.

[1] https://git.zx2c4.com/WireGuard/tree/contrib/examples/rereso...

[2] https://wiki.archlinux.org/index.php/WireGuard#Endpoint_with...

Re:Wireguard-docs: Setup, usage, configuration, and a full e... by syedamer on Wednesday May 29, 2019 @04:55AM (#20038051)
On Android the problem is the same. The Client only resolves the IP once. When the server gets a new ip, no connections can be made, although the client seem to be still connected.
Re:Wireguard-docs: Setup, usage, configuration, and a full e... by nikisweeting on Wednesday May 29, 2019 @03:08PM (#20044113)
I added a section on Dynamic IPs to the docs here:

https://github.com/pirate/wireguard-docs#Dynamic-IP-Allocati...