Forum Discussion
Joe_Pipitone
Feb 08, 2011Nimbostratus
Restrict FTP traffic on VIP to IP address or range
We're running BigIP LTM 9.4.7.
I have a contractor who requires FTP access to an FTP server on our network.
We have created a VIP that only allows...
hooleylist
Feb 08, 2011Cirrostratus
Hi Joe,
If you want to add source IP/subnet restrictions to that iRule you could create an address type datagroup with the allowed IPs/subnets and then add a check in CLIENT_ACCEPTED to see if the client IP is in the datagroup:
when CLIENT_ACCEPTED {
Check if client IP is not in the allowed_clients_datagroup
if { not [matchclass [IP::client_addr] equals allowed_clients_datagroup]}{
Disallowed client IP, send a tcp reset
reject
}
}
Aaron
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