Forum Discussion
F5_LB_Eng
Sep 24, 2013Cirrostratus
restrict access Irule needed
note- this url - abc.f5.corp.net should access from the servers from usahvmfla721 and usahvmfla722 ..
"usahvmfla721 - 10.1.11.49
usahvmfla722 - 10.1.11.50..
i feel we can create one class and ...
Kevin_Stewart
Sep 24, 2013Employee
It's a little unclear what you're trying to do, so I'll assume you only want to allow access the URL/VIP (abc.f5.com) from the two listed addresses - and that you want to use a data group to store those addresses. If that's the case:
-
Create an address-based data group. Example (my_ip_datagroup):
10.1.11.49 mask 255.255.255.255 10.1.11.50 mask 255.255.255.255
-
Create an iRule like this:
when CLIENT_ACCEPTED { if { not ( [class match [IP::client_addr] equals my_ip_datagroup] ) } { reject } }
You could also do this in a packet filter rule and prevent the 3-way handshake that the above iRule will allow.
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