Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong MTU in Client's Configuration #361

Open
Gill-Bates opened this issue Sep 14, 2022 · 2 comments
Open

Wrong MTU in Client's Configuration #361

Gill-Bates opened this issue Sep 14, 2022 · 2 comments

Comments

@Gill-Bates
Copy link

Gill-Bates commented Sep 14, 2022

When adding a new Client, the MTU will be replaced by the IPv6 address which will cause in a invalid Wireguard-Configuration.

# https://www.wireguard.com
[Interface]
Address = 10.10.0.3/24,fd00:00:00::3/8
DNS = 10.10.0.1,
ListenPort = 10871
MTU = fd00::1
PrivateKey = ***
[Peer]
AllowedIPs = 25
Endpoint = ***
PersistentKeepalive = 1280
PresharedKey = ***
PublicKey = ***

My wg0.conf:

# 10.10.0.0/24 fd00:00:00::0/8 *** *** 10.10.0.1, fd00::1 1280 25 0.0.0.0/0,::/0
[Interface]
Address = 10.10.0.1/24,fd00:00:00::1/8
ListenPort = 4500
MTU = 1420
PrivateKey = ***
PostUp = sysctl --write net.ipv4.ip_forward=1; sysctl --write net.ipv6.conf.all.forwarding=1; nft add table inet wireguard-wg0; nft add chain inet wireguard-wg0 PREROUTING {type nat hook prerouting priority 0\;}; nft add chain inet wireguard-wg0 POSTROUTING {type nat hook postrouting priority 100\;}; nft add rule inet wireguard-wg0 POSTROUTING ip saddr 10.10.0.0/24 oifname eth0 masquerade; nft add rule inet wireguard-wg0 POSTROUTING ip6 saddr fd00:00:00::0/8 oifname eth0 masquerade
PostDown = sysctl --write net.ipv4.ip_forward=0; sysctl --write net.ipv6.conf.all.forwarding=0; nft delete table inet wireguard-wg0
SaveConfig = false
@Rebelllious
Copy link
Contributor

How can this be reproduced? Can you share the steps? Also, distro and version info would be helpful.
I have several test servers and have not seen anything similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Rebelllious @Gill-Bates and others