# Route Internet traffic MT via WireGuard tunnel through MT WG peer

**URL:** <https://forum.mikrotik.com/t/route-internet-traffic-mt-via-wireguard-tunnel-through-mt-wg-peer/154825>\
**Category:** General\
**Created:** [January 9, 2022, 7:07am UTC](https://forum.mikrotik.com/t/route-internet-traffic-mt-via-wireguard-tunnel-through-mt-wg-peer/154825 "2022-01-09T07:07:49Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![own3r1138](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/own3r1138/32/2754_2.png) [@own3r1138](https://forum.mikrotik.com/u/own3r1138)\
**Post date:** [May 11, 2022, 1:44am UTC](https://forum.mikrotik.com/t/route-internet-traffic-mt-via-wireguard-tunnel-through-mt-wg-peer/154825/21 "2022-05-11T01:44:36Z")

</div>

> [@](#):
>
> @emilk

> Wanted to thank you for taking your time to reply.

Sure.

> leave IP/DHCP Server DNS setting active but blank,

of course, that’s not gonna work. 😃

> ALso added fasttrack

Good, check the “connection-mark” you have to use “no-mark”

```plaintext
/ip firewall filter
add action=fasttrack-connection chain=forward comment=FastTrack connection-mark=no-mark connection-state=established,related hw-offload=yes

```

> Still didn’t get to Wireguard configuration

change the subnet and you should be good to go.  
You said it does work on your smartphone, which DNS server did you use in the WG client?

---

<div class="post-metadata">

**Author:** ![emilk](https://forum.mikrotik.com/letter_avatar/emilk/32/6_449c533f586939b6e5f246632a46421f.png) [@emilk](https://forum.mikrotik.com/u/emilk)\
**Post date:** [May 11, 2022, 2:53am UTC](https://forum.mikrotik.com/t/route-internet-traffic-mt-via-wireguard-tunnel-through-mt-wg-peer/154825/22 "2022-05-11T02:53:02Z")

</div>

> [@](#):
>
> > ALso added fasttrack
> 
> Good, check the “connection-mark” you have to use “no-mark”
> 
> ```plaintext
> /ip firewall filter
> add action=fasttrack-connection chain=forward comment=FastTrack connection-mark=no-mark connection-state=established,related hw-offload=yes
> 
> ```
> 
> I did not have “connection-mark=no-mark connection-state=established,related hw-offload=yes” set. So, i added “connection-mark=no-mark”, but cannot find “hw-offload=yes”. I’m lookin gin WinBox, maybe only through terminal?
> 
> > Still didn’t get to Wireguard configuration
> 
> change the subnet and you should be good to go.  
> You said it does work on your smartphone, which DNS server did you use in the WG client?

Wireguard WireHole script actually uses Unbound DNS. So, DNS is assigned in config, it filters everything.  
But i have not added it in MT WireGuard settings, didn’t even see a field for it.

---

<div class="post-metadata">

**Author:** ![own3r1138](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/own3r1138/32/2754_2.png) [@own3r1138](https://forum.mikrotik.com/u/own3r1138)\
**Post date:** [May 11, 2022, 3:41am UTC](https://forum.mikrotik.com/t/route-internet-traffic-mt-via-wireguard-tunnel-through-mt-wg-peer/154825/23 "2022-05-11T03:41:28Z")

</div>

@emilk

> maybe only through terminal?

Check it

```plaintext
ip firewall filter print from=[find comment=FastTrack]

```

> Wireguard WireHole script actually uses Unbound DNS. So, DNS is assigned in the config, it filters everything.  
> But I have not added it in MT WireGuard settings, didn’t even see a field for it.

What I meant was what did you set as a DNS server in your laptop or smartphone Wireguad client? there is no DNS in MT for WG you have to use mangle and DST-NAT as I did in my config.  
The local VDS DNS server.  
Public DNS  
None

```plaintext
[Interface]
PrivateKey = base64 key
Address = 10.0.6.3/32
DNS = 10.0.6.1
or
DNS = 1.1.1.1
or no DNS

[Peer]
PublicKey = base64 key
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = vpn.domain.com:port

```

[Previous page](https://forum.mikrotik.com/t/route-internet-traffic-mt-via-wireguard-tunnel-through-mt-wg-peer/154825.md?page=1)
