Forum Discussion
F5 certificate not working for all ports.
Folks, We have a wild card certificate configured on the F5 and this certificate caters to a VIP which listens to all ports. i.e. http://hostname.externaldomain.com:**.
For some reasons the certificate does not work for all ports and the behavior we see is wired. It may work for one port and not for the other.
When we reboot the F5 it may work for another port but not for the port it worked earlier.
Any suggestion?
Note, this VIP has many node behind it and moves requests based on a configured iRule. This iRule work fine for non-https based requests.
Thanks!!! N.
- Faruk_AYDIN
Nimbostratus
Please put here the output of
command, and your iRule.tmsh list /ltm virtual
- N__197982
Nimbostratus
Hi Faruk, Please see below(for sake of sensitive information I have change some names)
[root@ltm-dmz-slo-01:Active:In Sync] config tmsh list /ltm virtual noname.com ltm virtual noname.com { address-status no description "for SSL" destination 1.2.3.10:any ip-protocol tcp mask 255.255.255.255 profiles { noname.com { context clientside } http { } tcp { } } rules { non_https } source 0.0.0.0/0 source-address-translation { type automap } translate-address enabled translate-port disabled vlans { SRV_SIDE VIP_SIDE } vlans-enabled vs-index 14 } [root@ltm-dmz-slo-01:Active:In Sync] config
- Faruk_AYDIN
Nimbostratus
non_https iRule?
- N__197982
Nimbostratus
Ignore the iRule name.. :-)
- Jad_Tabbara__J1
Cirrostratus
Hi N.,
You have the setting "translate-port disabled" this mean that the F5 will not translate the destination port.
- If clients are connecting to 443 it will open connection on pool_member:443
- If clients are connecting to 8080 it will open connection on pool_member:8080
When the "translate-port enabled" it will translate the port like the following :
- If clients are connecting to 443 and you pool_member are listening on 80, F5 will translate the destination port, from 443 to 80. So it will open a connection on pool_member:80
So are you sure that is your need ?
- Jad_Tabbara__J1
Cirrostratus
Could you share the irule please ?
- N__197982
Nimbostratus
Hi JTI, We need the translate port disabled....since the incoming requests should get redirected to the same port on the node. The iRule works in such a way that the node selection is automatic:
when HTTP_REQUEST { if { [HTTP::host] contains "noname.com" } { set ips [lindex [RESOLV::lookup -a "[getfield [HTTP::host] "." 1].internal.com"] 0] log local0.debug "Debug: Resolved(HTTP) address for \"[getfield [HTTP::host] "." 1].internal.com\" = \"$ips\"" if { $ips ne "" } then { node $ips [TCP::local_port] } } }
- N__197982
Nimbostratus
so the requests would come in as https://hostname.noname.com:4545 or anything else.
- Faruk_AYDIN
Nimbostratus
I meant also the content of the irule, not the name of it.
- N__197982
Nimbostratus
ok, posted it above already.
Recent Discussions
Related Content
* 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