Forum Discussion
James_B_270863
Nimbostratus
Jan 11, 2017TMG --> Big IP migration
Hi,
We are migrating from TMG to Big IP.
Is there an equivalent of the TMG 'Public Name' tab in Big IP?
This is the place where you would define all the FQDN's that the rule would appl...
Andrew_Husking
Cirrus
Jan 12, 2017Create a datagroup with the below config
ltm data-group internal allowedsites{
records {
www.app1.com { }
www.app2.com { }
}
type string
}
Then try the following iRule
when HTTP_REQUEST {
if { not ([matchclass [HTTP::host] equals allowedsites ])} {
drop
}
}
I don't have an environment that i can confirm it validates but it should work.
Alternatively if you wanted to respond a page instead of dropping the connection you could replace the drop line with:
HTTP::respond 404 -version 1.1 content { }
HTH Andrew
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