Forum Discussion

Shishir_84445's avatar
Shishir_84445
Icon for Nimbostratus rankNimbostratus
Aug 18, 2011

iRule Help: Pool Selection on VIP port basis

Pardon me if this one already posted... I need to configure VIP to listen on traffic on port range say "2000 to 5000" and the back end physical servers are listening on port 2000 to 5000. I created VIP with IP say 1.2.3.4:*AllPorts , and I created Pool with Member IP say 8.8.8.8:*AllPorts and applied following iRule which was posted in DEV Central Forum

 

 

when HTTP_REQUEST {

 

if { [ [[TCP::local_port] >=2000] and [[TCP::local_port] <=5000]] }

 

{ pool Exchange2010_CAS_POOL }

 

else { reject }

 

}

 

 

When I see statistics on F5, I see traffic coming in and OUT of VIP and I see traffic coming IN to Pool Member but I dont see traffic going OUT of Pool Member. I am not sure what is wrong? Is the iRule is incorrect or the Pool member should not be configured that way....Any help will be greatly appreciated. Thank you.

 

 

 

--Shishir

2 Replies

  • Do you have SNAT enabled on the VS? What do you see in a tcpdump filtering on the VS or pool addresses (tcpdump -ni 0.0 -Xs0 host 1.2.3.4 or host 8.8.8.8)

     

     

    Also, if you want a quick reply, you could open a case with F5 Support.

     

     

    Aaron