VMware Networking Community
KBricksBuilder
Enthusiast
Enthusiast

How to test if my NSX loadbalancer connection hits the host?

Im learning VMwares NSX loadbalancers currently and I'm not getting through to the website I'm trying to balance, but it works fine if I connect directly to the website. Is there some tool I can use to debug if I get stopped in the loadbalancer or maybe by something else like a Firewall?
Im thinking maybe Traceroute, NMAP, Telnet or some such but I'm not an expert in either and are unsure what commands would yield me the knowledge I need.
The pool members show as UP in the NSX interface.

Reply
0 Kudos
6 Replies
p0wertje
Hot Shot
Hot Shot

What version of nsx are you using ?

Can you give some more detail on what the setup look like ?

Cheers,
p0wertje | VCIX6-NV | JNCIS-ENT | vExpert
Please kudo helpful posts and mark the thread as solved if solved
Reply
0 Kudos
KBricksBuilder
Enthusiast
Enthusiast

Am running version 6.7.0.42000.

What setup details do you need?

Basicly it looks something like: www --> NSX Edge --> Server on port 80/443 --> pool members on port 80
Ive done many setups like this before without issue but I seems to have missed something this time as its not working as intended. I suspect there might be a Firewall blocking me but I'm not sure how to test this, which is what I'm requesting tips on.

Reply
0 Kudos
p0wertje
Hot Shot
Hot Shot

Running nsx-v or nsx-t ?

When you look on the server, do you see the request coming in  ?

Cheers,
p0wertje | VCIX6-NV | JNCIS-ENT | vExpert
Please kudo helpful posts and mark the thread as solved if solved
Reply
0 Kudos
KBricksBuilder
Enthusiast
Enthusiast

Got it to work! There was a Firewall rule on the pool members that blocked the connection but not the healthchecks. Anyway its working now yay

Btw while we are here, do you know if its possible to stop/start traffic to a specific pool member with a Service Monitor?
Im trying to have it start/stop traffic based on GET response from www.someurl/tostartortostopthatisthebigquestion.

Thanks for your help so far kind sir, have a nice day, cheers!

Reply
0 Kudos
p0wertje
Hot Shot
Hot Shot

Hi,

You could do something like

Update the file that need to be checked dynamically. i.e GET /healtcheck.php (normaly it will return something like 'UP'')

You can let the health check check for 'UP

See

Create a Service Monitor Step 13

If the file returns 'DOWN' the healthcheck will mark the member as down.

Cheers,
p0wertje | VCIX6-NV | JNCIS-ENT | vExpert
Please kudo helpful posts and mark the thread as solved if solved
Reply
0 Kudos
KBricksBuilder
Enthusiast
Enthusiast

Thank you i believe this is exactly what I need. Cheers

Reply
0 Kudos