ngoduykhanh / wireguard-ui

Wireguard web interface
MIT License
3.77k stars 464 forks source link

Allow new clients to write ListenPort and different MTU #591

Open jearton opened 2 weeks ago

jearton commented 2 weeks ago
[Interface]
Address = 10.10.8.3/32
PrivateKey = *****
ListenPort = 32884
MTU = 1300

[Peer]
PublicKey = XSOxHjIDcTCRe4SbO18eD4mjiqD/9upUaq4s7kej9ig=
PresharedKey = *****
AllowedIPs = 10.10.8.0/24
Endpoint = ******:51820
PersistentKeepalive = 25

It's one of clients config downloaded on the ui, the ListenPort and MTU was manually added by myself. Because I used udp2raw server which the remote points to the 127.0.0.1:${ListenPort}, so I need a fixed ListenPort. And wireguard server MTU is 1420, I need to reduce MTU in the client configuration because of the faketcp used by udp2raw.