Forum Discussion
TMaCEvans_92750
Nimbostratus
Dec 09, 2010redirect non http traffic
I have a vip that is taking in traffic from our website
this website uses http traffic of 80 and 443 but also accepts a protocol referred to as WS (Web Socket) also coming in over port 80
I have a Irule setup on this vip which has commands in that require the VIP to have a http profile attached but this WS protocol doesn’t seem to like this.
is there a way to only assign the http profile to the http traffic and redirect the WS traffic off to another pool?
- Chris_Miller
Altostratus
The challenge would be determining what HTTP traffic is, without having an HTTP profile. :-P - TMaCEvans_92750
Nimbostratus
the url for the http trafic starts http:// - Chris_Miller
Altostratus
Posted By TMaCEvans on 12/09/2010 06:59 AMI'll search for a solution but an not optimistic. Perhaps someone else will come along with an idea.
- Chris_Miller
Altostratus
URI protocol seems like it'd be an option, but again, I'm fairly certain it requires an HTTP Profile to actually investigate the URI. - hoolio
Cirrostratus
Assuming the HTTP profile only breaks the WS traffic when the payload is sent, you could try disabling the HTTP profile with HTTP::disable if you see a URI::protocol value of ws://. It would be tricky to re-enable the HTTP profile if clients (or intermediate proxies) can use http:// or https:// with ws:// on the same TCP connection.when HTTP_REQUEST { log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] request to [HTTP::host], [HTTP::uri]" if {[string tolower [URI::protocol [HTTP::uri]]] eq "ws"}{ log local0. "[IP::client_addr]:[TCP::client_port]: Disabling HTTP filter for [URI::protocol [HTTP::uri]]" HTTP::disable } }
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