Forum Discussion
faycal_29095
Nimbostratus
Dec 06, 2007Using twi IRULE in the VS Wildcard
Hello;
i want to use two IRULE in my VS Wilcard.
We have two ISP and we want to redirect trafic as bellow:
- VPN: to ISP01
- SNATting of some internal IPs to go through ISP01.
- Load balancing all other trafic between the two ISP (ISP01, ISP02)
Here is the two IRULE that i want to implement in the VS WildCard Forwarding IP:
IRULE01
-----------------------------------------------------------------
when CLIENT_ACCEPTED {
if { [IP::protocol] == 50 } {
pool POOL_ISP1
} elseif { [UDP::local_port] == 500 } {
pool POOL_ISP1
}
}
IRULE02
-----------------------------------------------------------------
when LB_SELECTED {
if { [IP::addr [IP::client_addr] equals 172.24.95.139 ] } {
snat 196.1.1.1
pool POOL_ISP1
} elseif { [IP::addr [IP::client_addr] equals 172.24.95.133 ] } {
snat 196.1.1.2
pool POOL_ISP1
} elseif { [IP::addr [IP::client_addr] equals 172.24.95.135 ] } {
snat 196.1.1.3
pool POOL_ISP1
} else {
snat automap
pool POOL_Gateway_ISP01
}}
-----------------------------------------------------------------
Is it possible to implement these two IRULEs in my VS Wildcard?
is the priority importante in my cas, i mean IRULE01 then IRULE02?
thank you
- JRahm
Admin
Priority is not important in this case as the CLIENT_ACCEPTED event will always fire before the LB_SELECTED event. There is no need to separate these functions into two rules. - faycal_29095
Nimbostratus
thanks for your replay;
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