Hello My friends..!
so to put my proplem in simple yet easy to understand.
the short story:
in this scenario the Mikrotik router represent the WG server and my Windows machine represent the WG client.
now here is the story:
i have a LAN network with IP range as : 192.168.42.1/24 the gateway for this LAN is ether5 on my MT -(mikrotik)- router. the gateway is 192.168.42.1.
this MT router is the the DHCP in this network so he is the DHCP server.
this MT router get the internet access from a dlink router connected to it through ether1 and it has a Public ip address -(this is the public ip that i used to setup my wireguard tunnel)-
now in the same network i connect a dlink router with no dhcp but the ip for it is 192.168.42.254. so notice now that i have two gateway..! i have a PBX device that have the IP 192.168.42.170 and the Gateway for it is 192.168.42.254 well you may now my problem..actually i can'r access this PBX device from my WG tunnel yet i try alot.
the long story
well before i tell you it i am waiting from you friends if you have any suggestion that related to such issue.
so what i try to do:
1- i try to create to create a route rule in it i put the Dist add as the PBX ip and the Gateway as 192.168.42.254 but that's didn't work
2-i try to create to create a route rule in it i put the Dist add as the PBX ip and the Gateway as the wireguard interface but that's also didn't work