Forum Discussion
Srijana_137175
Nimbostratus
Nov 15, 2013Please help creating this iRule to direct subnets to different paths.
Please help creating this iRule to direct subnets to different paths.I would need something like below 2 samples. Please let me know if you need any other details.
when HTTP_REQUEST {
if {Sub...
Thomas_Gobet_91
Cirrostratus
Nov 19, 2013There's no specific syntax, you just have to define a datagroup with all your subnets in it. You can create it through the Web interface or via tmsh.
Here is an example of what you have to define :
ltm data-group internal /Common/Network {
records {
DMZ {
data 192.168.10.0/24
}
LAN {
data 192.168.0.0/24
}
}
type string
}
Srijana_137175
Nimbostratus
Nov 19, 2013Ok, I will create a Data Group for bunch of subnets but how do i CALL that data group( lets say Testdata_gp) in below iRule script ??
when HTTP_REQUEST {
if {([class match [IP::remote_addr] equals xyz_subnet]) } {
HTTP::uri "/XYZ"
} else {
HTTP::uri "/ABC"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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