Forum Discussion
Eric_Lenington_
Feb 12, 2014Nimbostratus
Datagroup / Access class match not working.
I have the following iRule and the redirect is working well. However, I want to restrict the clients that connect. Can someone help me out with a recommendation? I have tried the below addition to no...
- Feb 12, 2014
Sets the connection to forward IP packets. This is strict forwarding and will bypass any pool configured on the virtual server.
The request will be forwarded out the appropriate interface according to the routes in the LTM routing table. No destination address or port translation is performed.
Try removing your forward command and changing up your iRule logic.
when CLIENT_ACCEPTED { if { ![class match [IP::client_addr] equals mynetwork] } { discard } } when HTTP_REQUEST { HTTP::redirect http://my.website.com/main/MWS-autologin.cfm?x=testing123four }
Hope this helps.
Arie
Feb 12, 2014Altostratus
Have you tried taking out the "forward"?
when CLIENT_ACCEPTED {
if { not ( [class match [IP::client_addr] equals desired-clients] ) } {
discard
}
}
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