Kalido
Jan 20, 2020Altostratus
Solved
Collect and pass on variables from client device
Hi, I have a VIP with a redirect which is pointing to a captive portal, that works fine. The issue I am having is I need the traffic to collect variables such source Mac address, originat...
- Jan 24, 2020
No, I meant to redirect with the information at the end.
Try this:
when HTTP_REQUEST priority 400 { set mac [LINK::lasthop] set ip [IP::client_addr] set url [HTTP::uri] switch -glob -- [string tolower [HTTP::host]] { "123.45.67.890" { HTTP::redirect "https://example.com/portal/step1.html?MACAddr=$mac&IPAddr=$ip&OrigURL=$url" } } }
Forgot to say...
Don't forget the mac address you will get is the last device mac address.
If the client is not in the same network as the F5, it is not going to be the client mac address.