Forum Discussion
IheartF5_45022
Nacreous
Hi I think this might work for you - I have assumed that you use a mix of 24/25/26 masks - you adjust as appropriate (following code not tested BTW);-
when LB_SELECTED {
foreach mask [26 25 24] {
if {[IP::addr [clientside {IP::remote_addr}]/$mask equals [IP::remote_addr]/$mask]}{
snat automap
break
}
}
}
IheartF5_45022
Mar 30, 2014Nacreous
Right. Good point. I'm afraid you are out of luck - you can't get the self-ip info from an iRule. You'll either need to snat everything or maintain a list of networks (which I agree is unwieldy).