How to set up WireGuard as an iOS VPN configuration in order to tunnel all traffic from an iOS or iPadOS device through a Linux server.
While there are many configurations possible, my intentation was to secure the traffic from my iOS device by routing it securely through a Linux server. As such, this HowTo will show you how to set-up an initial working configuration, which you can customize afterward.
Most likely things will be missing, such as how to configure the firewall or the init
scripts on your Linux distribution. As it won't be possible to cover all Linux
flavors this HowTo
will attempt to give you a working WireGuard
configuration, leaving it up to you to fill-in the blanks. Feel free to write a comment to touch upon your specific situation to help others that might stumble upon this HowTo :)
Note: In these configuration examples I use 10.8.0.1/24
and 10.8.0.2/24
. However, as WireGuard IPs may not overlap your other network interfaces