For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Bruce_Hampton_1's avatar
Bruce_Hampton_1
Icon for Nimbostratus rankNimbostratus
Jul 14, 2014

APM - close session with a custom response and redirect

I am trying to force close an APM session under certain circumstances. I am successful in closing the session, but when I attempt to do a response or redirect I get an error.

             else {
                   log local0. "Match is $Match"
                   log local0.info "Logging off from portal" 
                   send to somewhere else, hard coded for now 
                   HTTP::redirect "http://www..com/"
                   ACCESS::session remove
                   HTTP::redirect "http://www..com/"                     
                   HTTP::respond 302 Location "http://www..com"
                   }

I keep getting the following error:

Jul 14 14:56:45 apm0 err tmm3[12064]: 011f0007:3: http_process_state_prepend - Invalid action:0x1090b1 (Client side: vip=/Common/vip_test profile=http addr=12.17.12.17 port=443 rtdom_id=0 client_ip=192.168.100.220)

If I leave the redirect or respond commented out - it closes the session just fine. Trying to redirect otherwise repond - it errors.

Any help would be appreciated.

2 Replies

  • Not sure what the rest of the iRule looks like, but the typical place to put this is in the ACCESS_ACL_ALLOWED (or _DENIED) event. You might want to just set a session variable in the iRule event that gets picked up in the later event.