Forum Discussion
JRahm
May 01, 2006Admin
With a dozen T1's, I'd recommend using a class instead of 12 if statements:
class snat_gw {
"snat_IP1 gw_IP1"
"snat_IP2 gw_IP2"
"snat_IP3 gw_IP3"
"........ ......"
"snat_IP12 gw_IP12"
}
when CLIENT_ACCEPTED {
set my_gw [findclass [IP::client_addr] $::snat_gw " "]
if { $my_gw ne "" } {
node $my_gw
} else { discard }
}