Forum Discussion
Russell_77729
May 22, 2012Nimbostratus
SMTP relay
I have three SMTP servers to load balance and I want to create an iRule to restrict SMTP access at the F5 instead of having to maintain the relay list on all three servers. I have look at the codesha...
Michael_Yates
May 23, 2012Nimbostratus
Hi Russell,
I am guessing that you want to restrict them by IP Address or Subnet? You could use a matchclass if you are using BIG-IP v9.x.x or earlier class match if you are using v10.0.0 or later.
You simply create an iRule Datagroup and allow or deny based on the contents of the Datagroup.
Example:
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals allowednetworks] } {
pool matching.pool.name
}
}
Hope this helps.
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