EmBee_57573
Aug 31, 2006Nimbostratus
redirection rule based on mac address doesn't work
All,
we are trying to make an iRULE to do redirection based on the mac address of the packet that comes in.
Basically if a client connects via router A with mac address A it should go to pool A. If a client connects via router B with mac address B it should be redirected to an https server . All with a connection to the same virtual. But we want to make the difference based on MAC address!
We made a virtual server and a pool. The pool is not connected to the virtual. On the virtual server an iRULE is put:
when HTTP_REQUEST {
if {([LINK::lasthop] equals "00:07:50:0B:45:C0") } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
} else {
pool poolA
}
}
BUT: if a client comes in via router with the above mentioned mac address, it is not redirect to the https but goes to poolA.
why does it not hit the mentioned redirection?