Forum Discussion
Robert_47833
Altostratus
Oct 13, 2011some questions on "reject"
1:it seems "'reject" will show u overflow page ,right?
2:even request hit "reject",it will still execute the subsequent code in irule,right?
nitass
Employee
Oct 19, 2011if reject is in CLIENT_ACCEPTED, connection will be rejected.
[root@iris:Active] config b version|grep -iA 1 version
BIG-IP Version 10.2.2 930.0
Hotfix HF3 Edition
[root@iris:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.17.33:http
ip protocol tcp
rules myrule
profiles {
myhttp {}
tcp {}
}
}
[root@iris:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
reject
}
when HTTP_REQUEST {
reject
}
}
[root@iris:Active] config b pool foo|grep -i pool\ member
+-> POOL MEMBER foo/10.10.70.110:http inactive,down
[root@iris:Active] config curl -I http://172.28.17.33
curl: (52) Empty reply from server
[root@iris:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
reject
}
when HTTP_REQUEST {
reject
}
}
[root@iris:Active] config curl -I http://172.28.17.33
HTTP/1.0 302 Found
Location: http://www.google.com
Connection: close
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