dappnode / DNP_WIREGUARD

GNU General Public License v3.0
1 stars 3 forks source link

Add new endpoint to the API which returns modified config file #9

Closed 3alpha closed 3 years ago

3alpha commented 3 years ago

Since WIreguard configuration files can have only one Endpoint directive and that is an issue if a person is connecting from the local network with NAT loopback problems using public IP, it is convinient to have additional API endpoint which takes row with Enddpoint directive from configuration i.e.

Endpoint = xxxxx.dyndns.dappnode.io:51820

and changes it to

Endpoint = LOCAL_IP:51820
pablomendezroyo commented 3 years ago

Would be possible to just serve two files at the same time to make things simple: one for remote and the other one for local

3alpha commented 3 years ago

Yes and this is how we do it.