Forum Discussion
Aviv
Cirrus
Apr 19, 2021Irule to get host name from ip
Hi All, i need to send a wakeup command to computer when users connect to the ssl vpn portal. wakeup command is a url that ends with "hostname" exemple: https://server/Services/SimpleWakeup.aspx?Na...
spalande
Nacreous
Apr 19, 2021Something sort of below. You can either try to set a new variable for computer host or use a variable directly from the iRule.
Modify as needed. DNS server (8.8.8.8) would be your internal DNS or you can also use VIP.
when ACCESS_ACL_ALLOWED {
set pager [ACCESS::session data get "session.ad.last.attr.pager"]
set serverhost [RESOLV::lookup @8.8.8.8 -ptr $pager]
ACCESS::session data set "session.logon.computername" $serverhost
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
