# wireguard only working locally

**URL:** <https://forum.mikrotik.com/t/wireguard-only-working-locally/173522>\
**Category:** General\
**Created:** [February 10, 2024, 7:27am UTC](https://forum.mikrotik.com/t/wireguard-only-working-locally/173522 "2024-02-10T07:27:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TarekH](https://forum.mikrotik.com/letter_avatar/tarekh/32/6_449c533f586939b6e5f246632a46421f.png) [@TarekH](https://forum.mikrotik.com/u/TarekH)\
**Post date:** [February 10, 2024, 7:27am UTC](https://forum.mikrotik.com/t/wireguard-only-working-locally/173522/1 "2024-02-10T07:27:36Z")

</div>

Hello  
I am trying to setup wireguard on my CCR2116 router , wireguard activate with any internet connection but pings works solely when im using the same internet as the router ( example wifi running on same public ip )  
I have 2 public ips going to a sophos firewall -\>vlan for one public ip -\>Mikrotik router (i can access the mikrotik from this public ip )  
how can i make sure the wireguard vpn server is working on this specific ip per example ?!  
thank you

---

<div class="post-metadata">

**Author:** ![johnson73](https://forum.mikrotik.com/letter_avatar/johnson73/32/6_449c533f586939b6e5f246632a46421f.png) [@johnson73](https://forum.mikrotik.com/u/johnson73)\
**Post date:** [February 11, 2024, 9:08am UTC](https://forum.mikrotik.com/t/wireguard-only-working-locally/173522/2 "2024-02-11T09:08:28Z")

</div>

Hello,  
This topic might help you… [http://forum.mikrotik.com/t/basic-wireguard-setup/168763/1](http://forum.mikrotik.com/t/basic-wireguard-setup/168763/1)  
Maybe something from the firewall configuration itself is also useful. Everything is nicely described there

---

<div class="post-metadata">

**Author:** ![TarekH](https://forum.mikrotik.com/letter_avatar/tarekh/32/6_449c533f586939b6e5f246632a46421f.png) [@TarekH](https://forum.mikrotik.com/u/TarekH)\
**Post date:** [February 12, 2024, 7:12am UTC](https://forum.mikrotik.com/t/wireguard-only-working-locally/173522/3 "2024-02-12T07:12:02Z")

</div>

hello  
I have only 1 firewall rule : acceot chain=input dst-port=13231 (port of wireguard server) and protocol udp  
public ip is on vlan35 and 0.0.0.0/0 route to the sophos device (which has a different ip)  
maybe i should route the wireguard interface to the vlan35 ?

---

<div class="post-metadata">

**Author:** ![TarekH](https://forum.mikrotik.com/letter_avatar/tarekh/32/6_449c533f586939b6e5f246632a46421f.png) [@TarekH](https://forum.mikrotik.com/u/TarekH)\
**Post date:** [February 22, 2024, 12:03pm UTC](https://forum.mikrotik.com/t/wireguard-only-working-locally/173522/4 "2024-02-22T12:03:40Z")

</div>

guys any update please ?!

---

<div class="post-metadata">

**Author:** ![Mesquite](https://forum.mikrotik.com/letter_avatar/mesquite/32/6_449c533f586939b6e5f246632a46421f.png) [@Mesquite](https://forum.mikrotik.com/u/Mesquite)\
**Post date:** [February 22, 2024, 12:34pm UTC](https://forum.mikrotik.com/t/wireguard-only-working-locally/173522/5 "2024-02-22T12:34:16Z")

</div>

Dont understand your network, **provide a diagram**  
Cannot comment on the MT without seeing the config. **Post the config** ( minus router serial number, public WANIP information, keys )
