Allanwynn_16283
Oct 17, 2015Nimbostratus
Redirect to an internal site based on client source network (IP)
Hi all,
I am not really familiar with iRule, so can you help me:
- An iRule where it is based on client's source network (not specific IP) to be redirected to an internal site?
i.e. 172.16.4.0 network should be redirected to http://mysite1.com (internal site) and any other network will be redirected to http://mysite2.com (internal site)
- An iRule based on client's source ip but will be based if it is odd or even number (is this possible)?
i.e. 172.16.4.1, 172.16.6.7, 172.16.10.23, etc. should be redirected to http://mysite1.com (internal site) and any other even IP's will be redirected to http://mysite2.com (internal site)
Or if number 2 is not possible, do you have any recommendations?
Thank you!