Weird Issue with UDP NAT & Mangle

Hey Guys,

I’m hoping I’m doing something stupid, but I cannot get UDP packets to go out of a specific gateway, TCP is fine. - There is no rule explicitly defining either.

As per below image, I’m trying to route everything from 192.147.1.151 to 41.160.213.234 with the following mangle rule:

add action=mark-routing chain=prerouting dst-address-type=!local
in-interface=bridge1 new-routing-mark=VOIP passthrough=no src-address=
192.147.1.151

add distance=1 gateway=VOIP_PPP routing-mark=VOIP

VOIP_PPP is a PPPoE account, which is working fine.




However, UDP still takes the default gateway route. Why?

Full config here: http://pastebin.com/jHTmkEC0



The issue I’m really dealing with is VoIP phones not NATting properly:






Running RB951G /w ROS 6.36.4

Try to put ip address of the gateway instead of port name into the routing rule.