Forum Discussion
Willy
Nimbostratus
Dec 14, 2016IP address filter on Virtual RDP server
I am running an LTM/ASM version 11.5.4. Recently an RDP virtual server was setup. Intention is to limit the IP addresses. Only few IP addresses are allowed access to this VS. The ASM module seems to ...
Kai_Wilke
MVP
Dec 14, 2016Hi Willy,
you may use one of the iRules below...
IP::addr based iRule:
The IP::addr based syntax is ideal, if just a few IPs or Subnets are requiring access (less than 5).
when CLIENT_ACCEPTED {
if { ( [IP::addr [IP::client_addr] equals "10.0.0.0/8"] )
or ( [IP::addr [IP::client_addr] equals "172.16.0.0/12"] )
or ( [IP::addr [IP::client_addr] equals "192.168.0.0/16"] ) } then {
Allow the request
} else {
reject
}
}
/ data-group based iRule:[class]
The
[class] / data-group based syntax is ideal, if just if many IPs or Subnets are requiring access (more than 5)
iRule:
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals DG_ALLOWED_RDP_CLIENTS] } then {
Allow the request
} else {
reject
}
}
Data-Group:
ltm data-group internal DG_ALLOWED_RDP_CLIENTS {
records {
10.0.0.0/8 {}
172.16.0.0/12 {}
192.168.0.0/16 {}
}
type ip
}
Cheers, Kai
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