Forum Discussion
EmBee_57573
Nimbostratus
Aug 31, 2006redirection 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?
- JRahm
Admin
do some logging to see what last hops you are receiving - Micael_Pedrosa_
Nimbostratus
One virtual server! Don't you need other VS with x.x.x.x:443 to serve HTTPS requests? - EmBee_57573
Nimbostratus
Hi, - EmBee_57573
Nimbostratus
we found the bug, use contains and the problem is solved!
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