Mwan3 - source port based routing doesn't work

Hi guys!

Input data:

  • OpenWrt router with 2 wireguard cilents
  • 2 providers (dynamic private IPs)
  • wireguard server 11.11.11.11
  • mwan3 with the following rules on top:
config rule 'wg_wana'
        option sticky '0'
        option use_policy 'wana_only'
        option dest_ip '11.11.11.11/32'
        option family 'ipv4'
        option src_ip '0.0.0.0/0'
        option src_port '2222'
        option dest_port '51810'
        option proto 'udp'

config rule 'wg_wanb'
        option sticky '0'
        option use_policy 'wanb_only'
        option dest_ip '11.11.11.11/32'
        option family 'ipv4'
        option src_ip '0.0.0.0/0'
        option src_port '3333'
        option dest_port '51810'
        option proto 'udp'

Expectations:

  • 1st wg client should connect to a wg server throw the 1st provider (WAN_A)
  • 2nd wg client should connect to a wg server throw the 2nd provider (WAN_B)

By the fact, both clients connect to a wg server using WAN_B, despite of mwan3 rules.

What is wrong with this configuration and what sould be changed? Thanks in advance for your ideas.

The reason is clear as day. All is working.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.