wireguard only working locally

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

Hello,
This topic might help you… 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

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 ?

guys any update please ?!

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 )