Forum Discussion
How can I use an irule to send the client's source IP over HSL without sending everything else?
- Nov 09, 2020
Not too sure quite what you want but you can use the HSL command to create the HSL connection directly instead of going through a publisher: https://clouddocs.f5.com/api/irules/HSL__open.html
when CLIENT_ACCEPTED { set hsl [HSL::open -proto UDP -pool <HSL pool>] HSL::send $hsl "Client connect from [IP::client_addr]:[TCP::client_port]" }
Not too sure quite what you want but you can use the HSL command to create the HSL connection directly instead of going through a publisher: https://clouddocs.f5.com/api/irules/HSL__open.html
when CLIENT_ACCEPTED {
set hsl [HSL::open -proto UDP -pool <HSL pool>]
HSL::send $hsl "Client connect from [IP::client_addr]:[TCP::client_port]"
}
- boneyardNov 15, 2020
MVP
did the answer by Pete work for you Wasfi Bounni? if so please flag question as answered.
- Wasfi_BounniNov 15, 2020
Cirrocumulus
Thank you Sir.
- Latchezar_DimovFeb 09, 2022
Nimbostratus
Hello Pete,
Do I need to add more rows (like below) in order to collect the client IP or your rule do it? Our goal is to send the client IP over HSL for ldap service with SNAT.
example:
when SERVER_CONNECTED {
set client "[IP::client_addr]:[TCP::client_port]"
set snat "[IP::local_addr]:[TCP::local_port]"
set node "[IP::server_addr]:[TCP::server_port]"
}
Recent Discussions
Related Content
* 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