Forum Discussion
JCMATTOS_41723
Oct 18, 2007Nimbostratus
Thx Citizen! I saw that posting earlier, but if im not doing SNAT can I still use this script to potentially create 8 different gateways, sourcing from 8 different source addresses? Not sure how to get started, sorry for being new to the whole irules thing?
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 }
}