# RouterOS blatantly ignores pref-src. Can this really be a bug?

**URL:** <https://forum.mikrotik.com/t/routeros-blatantly-ignores-pref-src-can-this-really-be-a-bug/180360>\
**Category:** General\
**Created:** [November 28, 2024, 12:31am UTC](https://forum.mikrotik.com/t/routeros-blatantly-ignores-pref-src-can-this-really-be-a-bug/180360 "2024-11-28T00:31:56Z")\
**Posts on this page:** 1\
**Showing post:** 58

<div class="post-metadata">

**Author:** ![lurker888](https://forum.mikrotik.com/letter_avatar/lurker888/32/6_449c533f586939b6e5f246632a46421f.png) [@lurker888](https://forum.mikrotik.com/u/lurker888)\
**Post date:** [April 2, 2025, 4:41pm UTC](https://forum.mikrotik.com/t/routeros-blatantly-ignores-pref-src-can-this-really-be-a-bug/180360/58 "2025-04-02T16:41:05Z")

</div>

@Mimiko  
My post that explains why wireguards has this idiosyncrasy in its design (right here on this thread):  
[http://forum.mikrotik.com/t/routeros-blatantly-ignores-pref-src-can-this-really-be-a-bug/180360/15](http://forum.mikrotik.com/t/routeros-blatantly-ignores-pref-src-can-this-really-be-a-bug/180360/15)

And the one that explains the source address assignment in detail: (You should probably scroll though the entire thread)  
[http://forum.mikrotik.com/t/mangle-policy-based-routing/181586/6](http://forum.mikrotik.com/t/mangle-policy-based-routing/181586/6)

@anav  
I don’t know if the question in the +++ / +++ was addressed to me, but: The workaround presented both by sindy and me rely on the same way of using dst-nat to achieve connection tracking. Mine is of course better (obviously 🙂 ) in that sindy’s fails if:

- the wan1 interface goes down (the address we dst-nat to is lost)
- the default route’s pref src changes (for example because of wan1 going down)

My not-exactly-“s” works around these by: (1) dst-natting to a local address that can’t go down and (2) using the input src-nat ensuring that wg underlay output packets are addressed to the (in some ways virtual) 192.168.222.2 address, the route to which (and its pref-src) cannot change.

Of course sindy’s method preserves the source address, which is nicer. On the other hand in VRF-heavy scenarios input src-nat does wonders for overloaded source IPs (in fact conntrack cannot be correctly maintained without it).

---

_[View the full topic](https://forum.mikrotik.com/t/routeros-blatantly-ignores-pref-src-can-this-really-be-a-bug/180360)._
