Forum Discussion
Net_Admin_24240
Nimbostratus
Jul 27, 2006block public access allow private
I want to block access to URL's from any public address but allow access if the client initiates the connection using a private address.
For example: block access to http://mycompany.com/De...
hoolio
Cirrostratus
Jul 28, 2006If you have separate VLANs for internal clients versus external clients, you could just create a VIP enabled on the VLAN the internal clients access the VIP over.
If the external and internal clients are connecting to the VIP over the same VLAN, you could use a pair of classes (data groups) and a rule to block requests from external client IP addresses to "protected" URI's:
class internal_hosts_networks_class {
network 10.0.0.0 mask 255.0.0.0
host 192.168.0.100
}
class my_protected_uris {
"/path1/"
"/path2/"
}
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] starts_with $::my_protected_uris] and (not [matchclass [IP::remote_addr] equals $::internal_hosts_networks_class]) } {
log local0. "client: [IP::remote_addr] requested [HTTP::host][HTTP::uri] and was dropped"
discard
}
}I haven't tested this, but I think it should work based on the description you gave.
Aaron
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
