News for hackers. Stuff that matters.
Re:Full WireGuard Support in ProtonVPN for Android by icelancer on Monday October 11, 2021 @06:40PM (#28833898)
cat /proc/sys/net/ipv4/ip_forward shows '1', I set it via sysctl -w net.ipv4.ip_forward=1 in the past I think based on instructions.
Re:Full WireGuard Support in ProtonVPN for Android by j3th9n on Monday October 11, 2021 @06:52PM (#28834025)
Then maybe you need to add the following to the [Interface] section of your wg0.conf on your server or else I don't know ;-) :

PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

Re:Full WireGuard Support in ProtonVPN for Android by icelancer on Monday October 11, 2021 @06:56PM (#28834053)
Already reads as such, though I've tried that code snippet too:

PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; iptables -A FORWARD -o %i -j ACCEPT

PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE; iptables -D FORWARD -o %i -j ACCEPT

Like I said, everyone keeps saying Wireguard is dead simple to set up, but the comments are full of editing configuration files, priv/pub key pairs, etc. I've helped administer OpenVPN servers for a decade now (and take no pride in it), and yet all these errors that keep coming up in Wireguard configuration for me on a main Linux distro + Windows 10 client seem pretty odd for something that's supposedly so easy to use.

Someone just come out with a wizard/package installer that actually works reasonably well (like OpenVPN has already) and then it might be "easy" to install. For OpenVPN I run an apt install command, run a wizard, SFTP into the box, transfer out the .ovpn file, import it into whatever client devices I need, and it works. Wireguard is at least 10 times tougher than that, even if it worked, which it currently does not.

Re:Full WireGuard Support in ProtonVPN for Android by j3th9n on Monday October 11, 2021 @07:55PM (#28834441)
Well, hit me up if you want a VPS installed with WireGuard with maybe some nice web interface like https://github.com/EmbarkStudios/wg-ui
Re:Full WireGuard Support in ProtonVPN for Android by ciupicri on Monday October 11, 2021 @06:46PM (#28833969)
There is also a per interface setting, e.g. net.ipv4.conf.virbr0.forwarding
Re:Full WireGuard Support in ProtonVPN for Android by icelancer on Monday October 11, 2021 @06:51PM (#28834010)
apt purge'd it, reinstalled and updated my Windows client, now getting this entry in the Wireguard log:

2021-10-11 15:18:30.313: [MGR] Failed to connect to adapter interface \\?\SWD#WireGuard[REDACTED]: The system cannot find the file specified. (Code 0x00000002)

So, again, I'd like to use it but... dead simple it ain't. Googling that error shows 5 month old reddit posts and not much else.

https://www.reddit.com/r/WireGuard/comments/n6yocf/unable_to...

Re:Full WireGuard Support in ProtonVPN for Android by therein on Monday October 11, 2021 @08:05PM (#28834515)
Silly I know but do you have the wireguard module loaded?