Forum Discussion
dennypayne
May 07, 2009Employee
Hi,
Well you can only apply iRules to virtual servers. So you need some sort of virtual server that would be handling outbound traffic in order to apply an iRule.
So then the question becomes, do you have an outbound wildcard forwarding virtual server (0.0.0.0:0 or 0.0.0.0:25) enabled on the internal VLAN? Probably not if you are using global SNAT.
I would think that if you want to be specific to mail traffic, you could just create 0.0.0.0:25 as a Performance L4 type virtual, map that virtual to a SNAT pool containing your 1.2.3.99 SNAT address, and point it at a pool containing 1.2.3.4 as the member, and then you don't have to do a rule at all, unless you have other mail servers that you do want to use the default gateway. If that's the case, then a rule similar to what you have there should work if you apply it to the 0.0.0.0:25 virtual.
Hope that helps,
Denny