Forum Discussion
tskeel_217567
Nimbostratus
Feb 23, 2016irule to restrict ftp and sftp destination
I need an irule to limit sftp and ftp destination ideally by hostname. If hostname is not possible I think IP would be ok.
This was my first attempt:
when CLIENT_ACCEPTED {
if { !([matchclass [IP::local_addr] equals FTPWhitelist]) }{
reject
}
}
I have one ip in FTPWhitelist but traffic to other sites is allowed.
Thanks
2 Replies
- Josiah_39459Historic F5 AccountI'm very confused. Where are you attaching the irule? To a forwarding vip? Or a vip with a single ip? Does the vip proxy multiple hostnames? Hostname won't be possible unless you do a sideband reverse DNS lookup, because the hostname is resolved by the client and only the ip comes to the BIGIP. Otherwise you can do it the way you are trying, or use packet filters, etc...
- tskeel_217567
Nimbostratus
This is for a forward proxy virtual server. I attached the irule to virtual server with type "standard", I restricted the port and source destinations.
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