I use mangle as I need to compare with ip address list.
That tells me nothing concrete.
There is nothing in your config that does any comparing!!!
What are the traffic flow requirements for wireguard.
a. do you have external users coming in?
OR
b. do you have only some users that need to go to the internet at the other end?
c. do you have users that need to reach devices at the other end?
++++++++++++++++++++++++++++++++++++++++++++++++++++
If I had to guess you are pushing all users on your single subnet out internet at a different device… The different device is a VPS (server in the cloud).
Looking at the other thread.
RB760iGS connected to Internet thru pppoe, 100\100 mbit, mtu=1492.
Vps connected to internet 200\200 mbit.
This tells me the fasted one should expect is around 95 up or down which is the limit of the throughput on the home ppppoe connection???
That is for non-encrypted traffic, expect losses when using VPNs.yes
++++++++++++++++++++++++++++++++++++++++++++++++++++
As for your setup, you dont need mangling,
(1) Remove current mangling.
(2**) Keep**
/routing table
add disabled=no fib name=g_wg
(3) Keep
_/ip route
add dst-address=0.0.0.0/0 gateway=wireguard1 routing-table=g_wg _
(4) ADD Routing Rule
/routing rule add src-address=192.168.0.0/24 action=lookup table=g_wg
Try that and see what the speeds are.
++++++++++++++++++++++++++++++++++++++
Then add this as a mangle rule just to see if it makes any difference ( keep all mtu’s as default )
/ip firewall mangle
add action=change-mss chain=forward comment=“Clamp MSS to PMTU for Outgoing packets” new-mss=clamp-to-pmtu out-interface=g_wg passthrough=yes protocol=tcp tcp-flags=syn
+++++++++++++++++++++++++++++++++++++
As for sourcenat, remove the second rule (orange), its a duplicate of the first one!
/ip firewall nat
add action=masquerade chain=srcnat comment=“defconf: masquerade”
ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat out-interface-list=WAN
add action=masquerade chain=srcnat out-interface=wireguard1
The question for me was do you need the one for wireguard, the answer is you can probably do what you need to do at VPS without doing this, but
yes no harm no foul it simplifies the work required at the VPS end.