<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unable to Establish Wireguard Connection Over Cell Network]]></title><description><![CDATA[<p dir="auto">Hi I'm trying to setup a simple remote access client VPN using Wireguard. At the moment, I'm struggling to get my mobile iOS device to establish a connection with my home network via a Wireguard tunnel when it's using a cell network.</p>
<p dir="auto">Setup details:<br />
LAN Interface @ 172.25.1.1<br />
Netgate SG 1100 is behind ISP modem connected via WAN port</p>
<p dir="auto">WG_TEST Interface on tun_wg1 network port:<br />
Enabled<br />
Static IPv4<br />
MTU / MSS 1420<br />
IPv4 Address @ 172.26.2.1/24</p>
<p dir="auto">Firewall &gt; NAT &gt; Outbound:<br />
Hybrid Outbound NAT<br />
WAN Interface<br />
IPv4<br />
Source Network: 172.26.2.0/24<br />
Translation: WAN Address</p>
<p dir="auto">Firewall Rules &gt; WAN:<br />
Protocol: IPv4 UDP<br />
Source: *, Port: *<br />
Destination: WAN Address, Port: 51821</p>
<p dir="auto">Firewall Rules &gt; Wireguard:<br />
Protocol: IPv4<br />
Source: *, Port: *<br />
Destination: *, Port: *</p>
<p dir="auto">Firewall Rules &gt; Wireguard:<br />
Protocol: IPv4<br />
Source: *, Port: *<br />
Destination: *, Port: *</p>
<p dir="auto">Firewall Rules &gt; WG_TEST:<br />
Protocol: IPv4<br />
Source: *, Port: *<br />
Destination: *, Port: *</p>
<p dir="auto">VPN Wireguard Tunnels:<br />
tun_wg1<br />
Address / Assignment: WG_TEST<br />
Listen port: 52821</p>
<p dir="auto">Peers:<br />
iPhone Test<br />
Endpoint: 172.26.2.2:52821<br />
Allowed IPs: 0.0.0.0/0</p>
<p dir="auto">iOS App:<br />
[Interface]<br />
pubKey = MY_PUB_KEY (i've confirmed it matches config in pfSense)<br />
Addresses = 172.26.2.2/24<br />
DNS Servers: 9.9.9.9</p>
<p dir="auto">[Peer]<br />
pubKey =  MY_PUB_KEY (i've confirmed it matches config in pfSense)<br />
Endpoint = MY_IP:51821<br />
AllowedIPs = 0.0.0.0/0</p>
<p dir="auto">I'm almost certain the issue is due to my iOS Wireguard App's configuration or some limitation of the iOS Wireguard App I'm unaware of</p>
<p dir="auto">Any help would be greatly appreciated! Thank you</p>
]]></description><link>https://forum.netgate.com/topic/196495/unable-to-establish-wireguard-connection-over-cell-network</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 10:40:58 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/196495.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Feb 2025 20:05:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to Establish Wireguard Connection Over Cell Network on Mon, 24 Feb 2025 02:32:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/emnul">@<bdi>emnul</bdi></a> 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</p>
<p dir="auto">VPN Wireguard Tunnels:<br />
tun_wg1<br />
Address / Assignment: WG_TEST<br />
Listen port: 52821</p>
<p dir="auto">And your peer is:<br />
[Peer]<br />
pubKey = MY_PUB_KEY (i've confirmed it matches config in pfSense)<br />
Endpoint = MY_IP:51821<br />
AllowedIPs = 0.0.0.0/0</p>
<p dir="auto">You MUST have your WG_TEST (tun_wg1) Interface /24 and your Peers as /32.</p>
<p dir="auto">Based on the info you provided on your first post, this is how your WireGuard and Peer SHOULD look like:</p>
<p dir="auto"><strong>Tunnel Setup:</strong></p>
<pre><code>VPN &gt; WireGuard &gt; Tunnels &gt; Edit tun_wg1
Description: WG_TEST
Listen Port: 51821
Interface Keys: [Auto-generated]
</code></pre>
<p dir="auto"><strong>Interface Setup:</strong></p>
<pre><code>Interfaces &gt; WG_TEST
IPv4 Configuration Type: Static IPv4
IPv4 Address: 172.26.2.1/24
MTU: 1420
</code></pre>
<p dir="auto"><strong>WAN Firewall Rules:</strong></p>
<pre><code>Firewall &gt; Rules &gt; WAN 
Action: Pass
Protocol: UDP
Source: Any
Destination: WAN Address
Port: 51821
</code></pre>
<pre><code>Firewall &gt; Rules &gt; WG_TEST
Action: Pass
Protocol: Any
Source: WG_TEST
Destination: Any
</code></pre>
<p dir="auto"><strong>Outbound (Hybrid Mode) Setup:</strong></p>
<pre><code>Firewall &gt; NAT &gt; Outbound
Interface: WAN
Source Network: 172.26.2.0/24
Destination: Any
Translation: WAN Address
</code></pre>
<p dir="auto"><strong>For Peer Config (in WireGuard):</strong></p>
<pre><code>VPN &gt; WireGuard &gt; Peers 
Description: iOS Device
Tunnel: WG_TEST
Allowed IPs: 172.26.2.2/32 
Endpoint: Dynamic
</code></pre>
<p dir="auto"><strong>On your iOS WireGuard App:</strong></p>
<pre><code>[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
</code></pre>
<p dir="auto"><strong>If you are still having an issue:</strong></p>
<p dir="auto">This is the YouTube video I used to setup my WireGuard and it's been working flawlessly for 2+ years.</p>
<p dir="auto"><a href="https://youtu.be/MZf2rOnQ4jc?si=FxTTC4geRiQa3fbO" target="_blank" rel="noopener noreferrer nofollow ugc">How to Install WireGuard on pfSense (Tutorial)</a></p>
<p dir="auto">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.</p>
<p dir="auto">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).</p>
]]></description><link>https://forum.netgate.com/post/1207578</link><guid isPermaLink="true">https://forum.netgate.com/post/1207578</guid><dc:creator><![CDATA[rtorres]]></dc:creator><pubDate>Mon, 24 Feb 2025 02:32:49 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to Establish Wireguard Connection Over Cell Network on Sun, 23 Feb 2025 21:42:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rtorres">@<bdi>rtorres</bdi></a> Here are some of the logs I'm seeing on my end. Tbh it looks like gibberish to me but maybe it makes sense to someone else.</p>
<p dir="auto"><img src="/assets/uploads/files/1740346839406-screenshot-2025-02-23-at-16.27.50.png" alt="Logs" class=" img-fluid img-markdown" /></p>
<p dir="auto">The Default Deny IPv6 (1000000105) is super confusing. System &gt; Advanced &gt; Networking &gt; Allow IPv6 is checked so I have no idea why this rule is enabled nor how to disable since it seems to be an implicit rule</p>
]]></description><link>https://forum.netgate.com/post/1207550</link><guid isPermaLink="true">https://forum.netgate.com/post/1207550</guid><dc:creator><![CDATA[emnul]]></dc:creator><pubDate>Sun, 23 Feb 2025 21:42:01 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to Establish Wireguard Connection Over Cell Network on Sun, 23 Feb 2025 03:38:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/emnul">@<bdi>emnul</bdi></a> maybe I might be doing it a different way than you are but this is how I have WireGuard working for my iOS and Windows Laptop when I'm on the go:</p>
<p dir="auto"><img src="/assets/uploads/files/1740281185554-9f0763c5-ebcc-4f8a-ae92-09dab2672c46-image.png" alt="9f0763c5-ebcc-4f8a-ae92-09dab2672c46-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1740281241092-314e2ee0-e1b5-4fcf-a6eb-e17b2f3623c6-image.png" alt="314e2ee0-e1b5-4fcf-a6eb-e17b2f3623c6-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1740281283406-d1824761-c5cc-4fa1-9b41-12b83c929b64-image.png" alt="d1824761-c5cc-4fa1-9b41-12b83c929b64-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Firewall Rules:<br />
<img src="/assets/uploads/files/1740281318544-1a4c227b-77d2-485f-856d-035cba1b087b-image.png" alt="1a4c227b-77d2-485f-856d-035cba1b087b-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1740281336405-0deab770-4f2a-4a8e-a5e7-f7cfe58e70f9-image.png" alt="0deab770-4f2a-4a8e-a5e7-f7cfe58e70f9-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This is how I have it configured on the WireGuard app on my phone:</p>
<p dir="auto">[Interface]<br />
PrivateKey = -removed-<br />
Address = 100.20.0.5/24<br />
DNS = 172.22.1.11<br />
MTU = 1376</p>
<p dir="auto">[Peer]<br />
PublicKey = -removed-<br />
PresharedKey = -removed-<br />
AllowedIPs = 0.0.0.0/0<br />
Endpoint = myDynamicDNSaddress.org:52836<br />
PersistentKeepalive = 24</p>
<p dir="auto">The 172.22.1.11 IP on the DNS is my pfSense address. I don't know if this is what people usually put here but I only want it to query my pfSense (for pfBlockerNG) and haven't had any issues with either my iPhone nor Windows laptop.</p>
<p dir="auto">I have my own domain and have it to automatically update the Public IP using Dynamic DNS. My ISP sometimes changes the Public IP so this is done so I don't have to continuously keep updating it.</p>
<p dir="auto">Other than that I didn't add any other rules nor changes. I see you added the Outbound rules, I have this set to Automatic which WireGuard automatically adds the rules for me.</p>
]]></description><link>https://forum.netgate.com/post/1207477</link><guid isPermaLink="true">https://forum.netgate.com/post/1207477</guid><dc:creator><![CDATA[rtorres]]></dc:creator><pubDate>Sun, 23 Feb 2025 03:38:50 GMT</pubDate></item></channel></rss>