Forum Discussion
Need to test F5 setup
Port in virtual server option in F5 is Set to any port. Pool members are set to port any as well. Could anyone advise how to test the setup on f5 using curl command. Thanks!
- Dario_Garrido
Noctilucent
Everything depends on what process you want to test on your backend server.
Base on the manual of curl, it can be used to test these protocols:
DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP
For example, to test HTTP you can use a command similar to this:
# curl -v http://<f5_virtual_ip>
For HTTPS, something like this:
# curl -vk https://<f5_virtual_ip>
In both cases, you are sending this query to your server (changing only the port between 80 and 443)
GET / HTTP/1.1
If you need more complexity, it's necessary you share more info with us.
KR,
Dario.
- Samit_jadhav
Altostratus
Thanks Dario, but in my case the virtual port is set to * ie any.
In this case what command should I use to test connection.
- Dario_Garrido
Noctilucent
Hello Samit.
You cannot test all services in 'any' port at the same time.
As much as you can do is to verify that TCP handshake is established in a range of ports.
seq <initial_port> <final_port> | xargs -I {} nc -vz -w1 <backend_ip> {}
UDP is stateless connection, so you cannot verify it with total garanties.
KR,
Dario.
- Samit_jadhav
Altostratus
Thanks! Dario
- Dario_Garrido
Noctilucent
You are welcome Samit.
BTW, I would appreciate if you mark my answer as "the best" or give me some upvote.
KR,
Dario.
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