Forum Discussion
Vince_Beltz_959
Nimbostratus
Oct 22, 2009Drop Doesn't
I've implemented the following iRule to filter out certain user agents from connecting to our servers. Testing with Firefox and the Modify Headers add-on, it seems to work - I get a disconnected messa...
Vince_Beltz_959
Nimbostratus
Oct 22, 2009Tried changing the drop to TCP::close, and asked the server guys what they saw - here's the response they sent back (with URLs and IPs redacted). Is it just not possible to keep *any* connection request from making it across to the inside servers?
---
I set the user agent to “torrent” in Modify headers tool and accessed http://x.tld as as a test url.
Below are the request and response as seen in wireshark.
Request to VIP:
GET /as HTTP/1.1
Host: x.x.x.x
User-Agent: torrent
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Response from VIP
HTTP/1.0 302 Found
Location: http://x.tld
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
So even if the TCP connection is closed and there is no body, the header “Location” and status code 302 makes the browser do a request to
http://x.tld
The redirect statement is still getting executed.
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
