@emnul I don’t know if this was a typing mistake but I see form your post that your WG_TEST tunnel is listening to port 52821 and your iOS device is trying to connect to 51821. These should match for both Tunnel and Peer
VPN Wireguard Tunnels:
tun_wg1
Address / Assignment: WG_TEST
Listen port: 52821
And your peer is:
[Peer]
pubKey = MY_PUB_KEY (i've confirmed it matches config in pfSense)
Endpoint = MY_IP:51821
AllowedIPs = 0.0.0.0/0
You MUST have your WG_TEST (tun_wg1) Interface /24 and your Peers as /32.
Based on the info you provided on your first post, this is how your WireGuard and Peer SHOULD look like:
Tunnel Setup:
VPN > WireGuard > Tunnels > Edit tun_wg1
Description: WG_TEST
Listen Port: 51821
Interface Keys: [Auto-generated]
Interface Setup:
Interfaces > WG_TEST
IPv4 Configuration Type: Static IPv4
IPv4 Address: 172.26.2.1/24
MTU: 1420
WAN Firewall Rules:
Firewall > Rules > WAN
Action: Pass
Protocol: UDP
Source: Any
Destination: WAN Address
Port: 51821
Firewall > Rules > WG_TEST
Action: Pass
Protocol: Any
Source: WG_TEST
Destination: Any
Outbound (Hybrid Mode) Setup:
Firewall > NAT > Outbound
Interface: WAN
Source Network: 172.26.2.0/24
Destination: Any
Translation: WAN Address
For Peer Config (in WireGuard):
VPN > WireGuard > Peers
Description: iOS Device
Tunnel: WG_TEST
Allowed IPs: 172.26.2.2/32
Endpoint: Dynamic
On your iOS WireGuard App:
[Interface]
PrivateKey = [Auto Generated]
Address = 172.26.2.2/24
DNS = 9.9.9.9
MTU = 1420
[Peer]
PublicKey = [Auto Generated]
PresharedKey = [Auto Generated]
AllowedIPs = 0.0.0.0/0
Endpoint = WAN IP:51821
If you are still having an issue:
This is the YouTube video I used to setup my WireGuard and it's been working flawlessly for 2+ years.
How to Install WireGuard on pfSense (Tutorial)
Follow it from start to finish in its entirety and set up as in the video. Made the mistake of cutting the video short thinking I was done but my WG was refusing to connect.
I suggest you configuring all of the IPs as in the video to get an undertsanding and a working config, then modify as you like (with your desired 172.26.2.0/24 IPs).