Forum Discussion
crispychickenwi
Nimbostratus
Jul 23, 2007Dropping SOME connections if health check fails.
I have multiple machines (machine A,B,C,D) hitting a particular server on a particular port. A standard TCP health monitor is in use.
What I want to happen is, I want to add another health monitor that does a /GET. If THIS health monitor fails, I want current and future connections from a particular source IP address (machine A above) dropped.
Is there a way to do this?
Thanks in advance.
- JRahm
Admin
yes, you could do something like:when CLIENT_ACCEPTED { if { [LB::status pool $poolname member $ip $port] eq "down" } { if { [IP::addr [IP::client_addr] equals machine_A_IP] } discard } } }
- JRahm
Admin
Uh, some of my post got truncated, I edited for clarity - crispychickenwi
Nimbostratus
Thanks! I'll give it a try. - JRahm
Admin
Sounds like a gratuitous arp problem (misconfiguration maybe) between the Nokia and the BigIP, a packet trace will confirm. As a workaround, I'd recommend configuring the Nokia to use a virtual mac for the vrrp address so that auto-lasthop doesn't need to be updated. - Philippe_CLOUP
Employee
The Nokia is configured to use VMAC VRRP adress. But this adress is only used for routing through the Nokia. The Nokia, when it sends a packet out, is using ALWAYS is interface MAC address. The gratuitous ARP is send for the Virtuall IP adress, for which the VMAC is used. - Julie_Hendry_10
Nimbostratus
Hi, - JRahm
Admin
Gotcha, sorry about that. Configure a lasthop pool, attach a monitor, and apply it to your default virtual server. A lasthop pool applied to a virtual will override auto-lasthop:pool gateway-pool { action on svcdown reselect min active members 1 monitor all gateway_icmp members 172.16.31.1:any 172.16.31.2:any priority 2 } virtual gateway-vip { ip forward lasthop pool gateway-pool destination any:any mask none vlans private enable }
- Philippe_CLOUP
Employee
Have tried this option yet. - JRahm
Admin
Then either the behavior is wrong (ie..bug), or the documentation is wrong. In the configuration guide, it specifically states that applying a lasthop pool to a virtual server will override the auto-lasthop behavior (for that virtual server) - spark_86682Historic F5 AccountIt will override autolasthop behavior, but only for traffic coming from the lasthop pool.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects