Forum Discussion
Angelo
Nimbostratus
Feb 07, 2013disable streaming for port 80
Hi
I have a streaming enabled on one of VS running SSL. now i need to configure that VS to work on port 80 and 443 how do i disable the streaming when a client connects on port 80 and enable it...
nitass
Employee
Feb 10, 2013i think TCP::local_port in HTTP_REESPONSE event would return server-side's bigip port.
e.g.
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.252:1234
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b pool foo list
pool foo {
members 200.200.200.101:5678 {}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
log local0. "--"
log local0. "\[IP::remote_addr\] [IP::remote_addr]"
log local0. "\[TCP::remote_port\] [TCP::remote_port]"
log local0. "\[IP::local_addr\] [IP::local_addr]"
log local0. "\[TCP::local_port\] [TCP::local_port]"
log local0. "--"
}
when HTTP_RESPONSE {
log local0. "--"
log local0. "\[IP::remote_addr\] [IP::remote_addr]"
log local0. "\[TCP::remote_port\] [TCP::remote_port]"
log local0. "\[IP::local_addr\] [IP::local_addr]"
log local0. "\[TCP::local_port\] [TCP::local_port]"
log local0. "--"
}
}
[root@ve10:Active] config tail -f /var/log/ltm
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : --
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : [IP::remote_addr] 192.168.206.31
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : [TCP::remote_port] 49687
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : [IP::local_addr] 172.28.19.252
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : [TCP::local_port] 1234
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : --
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : --
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : [IP::remote_addr] 200.200.200.101
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : [TCP::remote_port] 5678
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : [IP::local_addr] 200.200.200.10
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : [TCP::local_port] 49687
Feb 10 20:21:52 local/tmm info tmm[4884]: Rule myrule : --
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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