Forum Discussion
Muhammad_Irfan1
Mar 03, 2015Cirrus
Packet filter can't filter proxypass is there any other way to filter traffic?
I have VS 10.50.171.8:443 and 35 pools are attached to it through proxypass iRule.
iRule is like this for one pool
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/300MEFPOSTPAIDLive*" {
...
- Mar 03, 2015
Try inserting an if statement checking for the client's address:
when HTTP_REQUEST { switch -glob [HTTP::uri] { "/300MEFPOSTPAIDLive*" { if { [IP::addr [IP::client_addr] equals 10.50.241.155] } { pool Tibco-LB-Group3 HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end] } else { drop } } }
Look at https://devcentral.f5.com/wiki/iRules.IP__addr.ashx for more information/examples
shaggy
Nimbostratus
Try inserting an if statement checking for the client's address:
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/300MEFPOSTPAIDLive*" {
if { [IP::addr [IP::client_addr] equals 10.50.241.155] } {
pool Tibco-LB-Group3
HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end]
} else {
drop
}
}
}
Look at https://devcentral.f5.com/wiki/iRules.IP__addr.ashx for more information/examples
Muhammad_Irfan1
Mar 04, 2015Cirrus
NO i have max 3 ips,. Thanks alot.
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