Forum Discussion
How to add multiple ipadresses as source voor VIP
I want to restrict our SMTP server that is offered through BigIP LTM 11.3
I only want a list of 20 servers (ipaddresses) to be able to use SMTP (relaying)
I cannot restrict it on our Exchange servers because they only see te loadbalancer IP address.
In the source field of the VIP i only can enter 1 subnet.
that subnet can containt 1 server or several servers on that particular subnet.
How can I enter a list? iRules?
2 Replies
- nitass
Employee
How can I enter a list? iRules?you can put ip addresses in data group and use "class match" irule command to check and take whatever action you want.
class wiki
https://devcentral.f5.com/wiki/iRules.class.ashx - A__Gotink_33511
Nimbostratus
I could not find the option to add a list of ipadbresses.
I found out that datagroups were (hidden?) under the iRules menu optionI also was looking for a easy example for an iRule
I found and modified one, and this works:when CLIENT_ACCEPTED {if { ![matchclass [IP::client_addr] equals SMTP_Allowed_Servers] }{discard}}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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