howto/wireguard.md
... ...
@@ -98,8 +98,8 @@ An example wg-quick script that incorporates the above two workarounds is below,
98 98
[Interface]
99 99
PrivateKey = <your private key>
100 100
Address = <your link-local address, if any>
101
-PostUp = /sbin/ip addr add dev wg0 <MyIPv4>/32 peer <PeerIPv4>/32
102
-PostUp = /sbin/ip addr add dev wg0 <MyIPv6>/128 peer <PeerIPv6>/128
101
+PostUp = /sbin/ip addr add dev %i <MyIPv4>/32 peer <PeerIPv4>/32
102
+PostUp = /sbin/ip addr add dev %i <MyIPv6>/128 peer <PeerIPv6>/128
103 103
Table = off
104 104
105 105
[Peer]