angristan / wireguard-install

WireGuard VPN installer for Linux servers
https://stanislas.blog/2019/01/how-to-setup-vpn-server-wireguard-nat-ipv6/
MIT License
7.96k stars 1.3k forks source link

setting key "net.ipv4.conf.all.promote_secondaries": Invalid argument #219

Closed Semelovich closed 3 years ago

Semelovich commented 3 years ago

When running the install script I get _setting key "net.ipv4.conf.all.promotesecondaries": Invalid argument error

Here is the install log https://pastebin.com/u5wdQsx4

I checked /usr/lib/sysctl.d/50-default.conf and here is the relevant lines:

Promote secondary addresses when the primary address is removed net.ipv4.conf.default.promote_secondaries = 1 net.ipv4.conf.*.promote_secondaries = 1 -net.ipv4.conf.all.promote_secondaries

Shouldn't this section look like

Promote secondary addresses when the primary address is removed net.ipv4.conf.default.promote_secondaries = 1 net.ipv4.conf.all.promote_secondaries = 1

Regards

angristan commented 3 years ago

That's an issue with your provider, the script does not handle this file:

https://github.com/angristan/wireguard-install/blob/9bce7d6e827ed9fc8c5e02a5e03fcd916f6fd37d/wireguard-install.sh#L190-L194