naggie / dsnet

FAST command to manage a centralised wireguard VPN. Think wg-quick but quicker: key generation + address allocation.
https://calbryant.uk/blog/how-to-set-up-a-wireguard-vpn-in-minutes-with-dsnet/
MIT License
673 stars 33 forks source link

ListenPort limitation #57

Closed toushin-taishi closed 3 years ago

toushin-taishi commented 3 years ago

Hi. What are the ports that are allowed to be used in dsnetconfig.json? I tried using known UDP ports (53,123,etc) but dnsnet errors out.

Due to some experiences ISP throttling wireguard traffic, there is a need to change the wireguard port to something that will not be throttled by ISP.

Is this limitation in dsnet be considered in the next future releases?

Thanks and kind regards.

naggie commented 3 years ago

What error do you get? There's nothing inherent in dsnet that allows only certain ports.

toushin-taishi commented 3 years ago

Hello @naggie,

Thanks for the reply. The error I get when I tried the ports 53,123 and 500 is:

Key: 'DsnetConfig.ListenPort' Error:Field validation for 'ListenPort' failed on the 'gte' tag

Using other ports such as 4500 or 1194 is fine.

Thanks and kind regards

naggie commented 3 years ago

I've fixed this in master -- the next release will contain the fix; in the mean time you can compile your own executable