Forum Discussion

EmBee_57573's avatar
EmBee_57573
Icon for Nimbostratus rankNimbostratus
Aug 31, 2006

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?

 

 

4 Replies

  • do some logging to see what last hops you are receiving

     

     

    log local0. "Last hop is [LINK::lasthop]"

     

     

     

  • One virtual server! Don't you need other VS with x.x.x.x:443 to serve HTTPS requests?

     

    If you have a http://host with some ip like y.y.y.y:80 in a VS BIGIP, the https://host version redirects to the same ip y.y.y.y:443.

     

    But the server you have to process https requests is not a VS in the BIGIP.

     

  • Hi,

     

     

    you're right about that, but even if you put a url to another website in (www.msn.com), it does not work. If you connect with the mac address mentioned, you are redirected to the pool.

     

     

    I am guessing the syntax is not right?