Forum Discussion

lngo's avatar
lngo
Icon for Nimbostratus rankNimbostratus
Apr 19, 2024

F5 loadbalancer not working

Hi, I've created a basic pool with a single node configured with port 80 a virtual server also configured with port 80.
The virtual server is enabled and the node in the pool is active.

In the node we have a nginx running in a docker container, we've made a port-forward of this service to expose it.

 

But when I try to cURL to the virtual server the response is:

curl -v http://<vs-ip-addr>
*   Trying <vs-ip-addr>:80...
* Connected to <vs-ip-addr>(<vs-ip-addr> port 80 (#0)
> GET / HTTP/1.1
> Host: <vs-ip-addr>
> User-Agent: curl/7.81.0
> Accept: */*

* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer

 

If I cURL to the node configured in the pool:

curl -v http://<node-ip-addr>
*   Trying <node-ip-addr>:80...
* Connected to <node-ip-addr> (<node-ip-addr>) port 80
> GET / HTTP/1.1
> Host: <node-ip-addr>
> User-Agent: curl/8.4.0
> Accept: */*

< HTTP/1.1 200 OK
< Server: nginx/1.25.4
< Date: Fri, 19 Apr 2024 11:09:30 GMT
< Content-Type: text/html
< Content-Length: 615
< Last-Modified: Wed, 14 Feb 2024 16:03:00 GMT
< Connection: keep-alive
< ETag: "65cce434-267"
< Accept-Ranges: bytes

<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>

<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>

<p><em>Thank you for using nginx.</em></p>
</body>
</html>
* Connection #0 to host <node-ip-addr> left intact

1 Reply

  • Hi Ingo,

    1. You cannot curl via virtual server on F5 to NGINX server
    2. You can curl from F5 to NGINX Server

    Can you check on NGINX strict about hostname to access service or not ?