Forum Discussion
ukitsysadmin_95
Nimbostratus
Aug 18, 2009Redirect accourding to source IP ranges
Referring to the previous post: http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&postid=34863
I'm looking to create an iRule whereby visitors to a specific website are redirect...
hoolio
Cirrostratus
Aug 19, 2009You can use the format of the preconfigured AOL datagroup as a reference:
b class aol list
class aol {
network 64.12.96.0/19
network 149.174.160.0/20
network 152.163.96.0/22
network 152.163.100.0/23
network 152.163.240.0/21
network 152.163.248.0/22
network 152.163.252.0/23
network 195.93.16.0/20
network 195.93.32.0/22
network 195.93.48.0/22
network 195.93.64.0/19
network 195.93.96.0/19
network 198.81.0.0/22
network 198.81.8.0/23
network 198.81.16.0/20
network 202.67.64.128/25
network 205.188.112.0/20
network 205.188.146.144/30
network 205.188.192.0/20
network 205.188.208.0/23
network 207.200.112.0/21
}
For an external file, I think the format would be the same (minus the name definition line and the closing curly brace, plus commas):
cat /var/class/external.networks.class
host 1.1.1.1,
host 1.2.2.3,
network 64.12.96.0/19,
network 149.174.160.0/20,
network 152.163.96.0/22,
network 152.163.100.0/23,
network 152.163.240.0/21,
The datagroup definition would be External; Type: Address.
Aaron
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
