Hello my friends..! So i setup my wireguard on my router normaly and also on my Windows machine,
However. When i establish a connection the connection work fine and i can ping my router and all devises on my network. Yet i dont have Internet access in my pc that running windows. So what may cause such this issue…?
this isy config on my router
Wireguard interface
Name:wireguard
MTU:1420
Listen port 47111
Private key:…
Public key:… buj0jwhgs… Etc
Wireguard peer
Interface:Wireguard
Public key:TRJ+zGkjsj.. Etc
Allowed address:172.22.0.2/32
Also i created an ip address for wireguard as below
Ip-address-172.22.0.1/24 interface=wireguard
I dont have any firwall rule now
on my windows machine
Interface =wg0
Public key=TRJ+zGkj… Etc
Address=172.22.0.2
Dns server:1.1.1.1
Peer
Public key:buj0…
Allowed IPs:0.0.0.0/0
Endpoint:my public ip address on my router
Persistent keepalive:25
Two thoughts,
a. try dns server as the IP address of the wireguard address on the router (as per the MT wireguard youtube video).
b. What are your IP routes on the mikrotik router.
hello again my friends ..! so i solved the internet connection problem, i just change the allow address to contain only my wireguard and local LAN ip address -like the picture below-. and in this case i get internet connection and access to my local network through wireguard.however, when i try to connect to my remote desktop, i put the local ip address of my remote pc on the menu then i put the login credential normal and enter to my remote pc but with no view . so the screen is black, so is this related to a bandwidth limit that the wiregurad allow to use ..?. or may some other problem again..?
anyone encounter such a behavior before..?
Okay so you have a private IP on the mikrotik.
Im assuming you have an ISP modem router of some sort before the mIKROTIK and you are forwarding the wireguard port to 192.168.2.2 (the likely wan IP of the mikrotik)
Post the entire mikrotik config for further assistance.
/export ( minus serial number of mt )
YOu will not have access to the internet through the MT from your windows unless you use 0.0.0.0/0 as an allowed IP address on the windows device for allowed addresses.
Do you not understand how wireguard works??
The most important I could find on the latest config is your wireguard initial connection on the MT router would not be possible if this rule is disabled.
Also did you ever confirm that your ISP router, the one before the MT device, has port forwarding selected to the wanip of the MT router.