Forum Discussion
samir_110997
Nimbostratus
Nov 10, 2007PLEASE HELP SNAT conditionnel and traffic redirection
hi everybody,
as i'm not familiar with i-rules, i really need you help to correcte my i'rule cause the site is at risk.
I have created a strandard virtual serveur for the htt...
samir_110997
Nimbostratus
Nov 11, 2007I get an error when applying the i-rule please can anyone have an idea about this:
01070151:3: Rule [F5_Traffic] error:
line 1: [undefined procedure: class] [class ISP1_server_SNATs {
172.24.95.139 196.29.40.139
172.24.95.135 196.29.40.135
172.24.95.133 196.29.40.133
}]
line 7: [parse error: missing close-brace] [{
if { ([TCP::local_port] == 80) || ([TCP::local_port] == 443) } {
set mySNAT [findclass [IP::client_addr] $::ISP1_server_SNATs " "]
if { $mySNAT != "" } {
snat $mySNAT
pool Pool_Routeur_ISP1
} else {
snat automap
pool Pool_Routeur_ISP2
}
}]
line 8: [command is not valid in the current scope] [if { ([TCP::local_port] == 80) || ([TCP::local_port] == 443) } {
set mySNAT [findclass [IP::client_addr] $::ISP1_server_SNATs " "]
if { $mySNAT != "" } {
snat $mySNAT
pool Pool_Routeur_ISP1
} else {
snat automap
pool Pool_Routeur_ISP2
}
}]
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects