<?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[How to setup WireGuard on a dedicated OPT&#x2F;ethernet port?]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">Using latest 2.7.2 pfsense on a hardware with 4 ethernet ports<br />
Currently on Interface assignments<br />
Ethernet port1: IF_WAN<br />
Ethernet port2: IF_LAN<br />
virtual port for WireGuard: IF_VPN_WG0</p>
<p dir="auto">I have setup WireGuard successfully following the available documentation but the traffic is going through my LAN ethernet port</p>
<p dir="auto">I want to allocate one of my available ethernet ports e.g. ethernet port 3, on the pfsense just for the VPN so that only hosts connecting via ethernet port 3 have access to the remote VPN LAN for all traffic.<br />
Traffic through LAN port should not have access to the VPN.</p>
<p dir="auto">Can you please refer me to any relevant documentation or any tips?</p>
<pre><code>VPN_HQ
LAN: 10.0.1.0/24
IF_VPN_WG0: 172.16.0.1/24
Gateway: GW_VPN_WG0 Interface: IF_VPN_WG0 Gateway: 172.16.0.2
StaticRoute: Destination network: 10.0.2.0/24 GAteway: GW_VPN_WG0

VPN_HQ Firewall Rules
IF_WAN PASS Protocol:UDP From:SiteB_WAN_IP To:SiteA_WAN_Address port 51820
IF_VPN_WG PASS Protocol:ANY From:ANY To: ANY

##################################
SiteA
LAN: 10.0.2.0/24
IF_VPN_WG0: 172.16.0.2/24
Gateway: GW_VPN_WG0 Interface: IF_VPN_WG0 Gateway: 172.16.0.1
StaticRoute: Destination network: 10.0.1.0/24 GAteway: GW_VPN_WG0

SiteA Firewall Rules
IF_WAN PASS Protocol:UDP From:SiteA_WAN_IP To:SiteB_WAN_Address port 51820
IF_VPN_WG PASS Protocol:ANY From:ANY To: ANY
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1716972509260-02873562-af69-483a-941d-6ffaa0eac379-image.png" alt="02873562-af69-483a-941d-6ffaa0eac379-image.png" class=" img-fluid img-markdown" /><br />
Kind regards<br />
Nikolas</p>
]]></description><link>https://forum.netgate.com/topic/188433/how-to-setup-wireguard-on-a-dedicated-opt-ethernet-port</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 09:06:02 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/188433.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 May 2024 08:48:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to setup WireGuard on a dedicated OPT&#x2F;ethernet port? on Wed, 29 May 2024 13:17:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/java4dev">@<bdi>java4dev</bdi></a> You also need routes and the correct config of Wireguard at Site HQ.<br />
If you don't figure it out, post a lot of screenshots I guess.</p>
]]></description><link>https://forum.netgate.com/post/1171373</link><guid isPermaLink="true">https://forum.netgate.com/post/1171373</guid><dc:creator><![CDATA[Bob.Dig]]></dc:creator><pubDate>Wed, 29 May 2024 13:17:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to setup WireGuard on a dedicated OPT&#x2F;ethernet port? on Wed, 29 May 2024 13:14:35 GMT]]></title><description><![CDATA[<p dir="auto">@Bob-Dig That looked exactly what I was looking for and really thought that would be enough, but still no traffic from LAN_VPN to either HQ_LAN or internet.<br />
I even tried rebooting pfsense but it didnt help</p>
]]></description><link>https://forum.netgate.com/post/1171371</link><guid isPermaLink="true">https://forum.netgate.com/post/1171371</guid><dc:creator><![CDATA[java4dev]]></dc:creator><pubDate>Wed, 29 May 2024 13:14:35 GMT</pubDate></item><item><title><![CDATA[Reply to How to setup WireGuard on a dedicated OPT&#x2F;ethernet port? on Wed, 29 May 2024 12:42:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/java4dev">@<bdi>java4dev</bdi></a> Make a broad rule (Destination any) and set 172.16.0.1. as the gateway in the Advanced Options of this rule on your "port 3" network.<br />
And if you had not til now, you have to add 0.0.0.0/0 as Allowed IPs to the peer HQ on "SiteA".</p>
]]></description><link>https://forum.netgate.com/post/1171366</link><guid isPermaLink="true">https://forum.netgate.com/post/1171366</guid><dc:creator><![CDATA[Bob.Dig]]></dc:creator><pubDate>Wed, 29 May 2024 12:42:43 GMT</pubDate></item><item><title><![CDATA[Reply to How to setup WireGuard on a dedicated OPT&#x2F;ethernet port? on Wed, 29 May 2024 12:29:43 GMT]]></title><description><![CDATA[<p dir="auto">@Bob-Dig I already have a  static route in place<br />
<img src="/assets/uploads/files/1716984898366-bb7923fa-c6b8-423a-9749-59f2ebfa2161-image.png" alt="bb7923fa-c6b8-423a-9749-59f2ebfa2161-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I setup the OPT2 as<br />
<img src="/assets/uploads/files/1716984964383-e7c3c7d4-c7c3-4145-bbb6-e82924446a8a-image.png" alt="e7c3c7d4-c7c3-4145-bbb6-e82924446a8a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>What are the next steps so that ALL traffic (both internet and to HQ_LAN) from IF_LAN_VPN_WG0 goes only via the VPN?</strong><br />
Any host connected on the LAN_VPN should see as WAN the HQ_WAN_IP</p>
<p dir="auto">I have updated the network diagram with comments to clarify the goal<br />
<img src="/assets/uploads/files/1716985750801-db007cd4-aa63-4ec5-abf5-6f379550c4df-image.png" alt="db007cd4-aa63-4ec5-abf5-6f379550c4df-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.netgate.com/post/1171362</link><guid isPermaLink="true">https://forum.netgate.com/post/1171362</guid><dc:creator><![CDATA[java4dev]]></dc:creator><pubDate>Wed, 29 May 2024 12:29:43 GMT</pubDate></item><item><title><![CDATA[Reply to How to setup WireGuard on a dedicated OPT&#x2F;ethernet port? on Wed, 29 May 2024 11:49:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/java4dev">@<bdi>java4dev</bdi></a> Tunnelnetwork is only used for that tunnel, don't create yet another gateway. And don't use 10.0.1.0/24 on both sides, use it on one side (HQ) and use something different on the other side. Then make a route on "site A" for 10.0.1.0/24 to the wireguard gateway 172.16.0.1.</p>
]]></description><link>https://forum.netgate.com/post/1171353</link><guid isPermaLink="true">https://forum.netgate.com/post/1171353</guid><dc:creator><![CDATA[Bob.Dig]]></dc:creator><pubDate>Wed, 29 May 2024 11:49:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to setup WireGuard on a dedicated OPT&#x2F;ethernet port? on Wed, 29 May 2024 11:36:36 GMT]]></title><description><![CDATA[<p dir="auto">@Bob-Dig  I tried to assign OPT2 as IF_VPN_WG01 with IP 172.16.0.3/24 but pfsense complains that<br />
<span style="color:#f10404">IPv4 address 172.16.0.3/24 is being used by or overlaps with: IF_VPN_WG0 (172.16.0.2/24)</span></p>
<p dir="auto">I tried to create a gateway GW2_VPN_WG0 to 172.16.0.1 and I get<br />
<span style="color:#f10404">The gateway IP address "172.16.0.1" already exists.</span></p>
<p dir="auto">So how should I configure OPT2?<br />
and do I need a separate gateway or can I reuse existing one GW_VPN_WG0?</p>
]]></description><link>https://forum.netgate.com/post/1171352</link><guid isPermaLink="true">https://forum.netgate.com/post/1171352</guid><dc:creator><![CDATA[java4dev]]></dc:creator><pubDate>Wed, 29 May 2024 11:36:36 GMT</pubDate></item><item><title><![CDATA[Reply to How to setup WireGuard on a dedicated OPT&#x2F;ethernet port? on Wed, 29 May 2024 11:21:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/java4dev">@<bdi>java4dev</bdi></a> That is not a Wireguard question but a firewall rule question. Just make rules for your destinations and set the gateway accordingly.</p>
]]></description><link>https://forum.netgate.com/post/1171351</link><guid isPermaLink="true">https://forum.netgate.com/post/1171351</guid><dc:creator><![CDATA[Bob.Dig]]></dc:creator><pubDate>Wed, 29 May 2024 11:21:55 GMT</pubDate></item></channel></rss>