Forum Discussion
Stanislas_Piro2
Oct 20, 2015Cumulonimbus
Hi,
First, when creating a forwarding VS, create a specific VS for FTP:
VS_OUT_FTP
- Type Standard
- Destination 0.0.0.0/0
- profile ftp
- translate disable (default when creating a VS with a network destination)
- Pool none
This will allow FTP dynamic port to be handled as FTP Data connection.
After that, you can create the irule with switch instead of if, elseif, elseif, ..
when CLIENT_ACCEPTED {
switch [IP::client_addr] {
"10.0.0.10" -
"10.0.0.11" { snat 172.18.1.1 }
"10.0.0.12" -
"10.0.0.13" { snat 172.18.1.2 }
"10.0.0.14" -
"10.0.0.15" { snat 172.18.1.3 }
}
}