Forum Discussion
Outbound Virtual Server with destination iRule
I have an outbound virtual server that has a destination IP configured, and traffic flows correctly. For redundancy I would like to add another destination IP to that virtual server, but only one IP is allowed. I was thinking that if my destinations are 192.168.1.1 and 192.168.2.1 I could change the destination to on the virtual server to a destination of 192.168.0.0/16. Then I would have to create an iRule in the SSL server that is associated with the virtual server to say only allow 192.168.1.1 and 192.168.2.1 and drop any other IP's.
So do I need to create an iRule that has a pool of the 2 IP's? Are there any examples of this?
5 Replies
- nitass_89166
Noctilucent
you may add ip addresses in data group and check it using class command.
e.g.
class match -- [IP::local_addr] equals data_group_nameclass
https://devcentral.f5.com/wiki/iRules.class.ashx- Maze_Runner_200
Nimbostratus
So the destination on the virtual server has been changed to a class B which will use an iRule to allow 2 IP's via data groups. If a pool is created within the iRule can it be configured to route to the available destination IP? The two destination IP's that I am using are external.
- nitass
Employee
you may add ip addresses in data group and check it using class command.
e.g.
class match -- [IP::local_addr] equals data_group_nameclass
https://devcentral.f5.com/wiki/iRules.class.ashx- Maze_Runner_200
Nimbostratus
So the destination on the virtual server has been changed to a class B which will use an iRule to allow 2 IP's via data groups. If a pool is created within the iRule can it be configured to route to the available destination IP? The two destination IP's that I am using are external.
- nitass
Employee
If a pool is created within the iRule can it be configured to route to the available destination IP? The two destination IP's that I am using are external.
what virtual server type are you using? is it performance layer 4, standard or ip forwarding virtual server?
in case of performance layer 4 or standard, you use gateway as a pool.
in case of ip forwarding, you cannot have pool. so, what you need is route for those ip addresses e.g. 192.168.1.1 and 192.168.2.1.
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