Forum Discussion
Allanwynn_16283
Nov 20, 2015Nimbostratus
irule for snat pool and data group and pool member
Hi Everyone,
Can anyone help me to create an irule:
Pool Name: Pool_Test
Member: a. 10.10.10.2 port 0 (ALL)
b. 20.20.20.2 port 0 (ALL)
Datagroup name: dg_test
Snatpool: a....
Brad_Parker
Nov 20, 2015Cirrus
Give this a whirl.
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals dg_test] }{
pool pool_test member 10.10.10.2
snat 10.10.10.1
}
else {
pool pool_test member 20.20.20.2
snat 20.20.20.1
}
}
- Allanwynn_16283Nov 21, 2015Nimbostratusis port not necessary on the configuration?
- Brad_ParkerNov 21, 2015CirrusOnly if you plan on changing the port. Since you have 0 configured for the VIP and your pools there's no need for port in the pool command.
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