Solved

Cisco ACE Scripting?

Posted on 2015-01-09
11
51 Views
Last Modified: 2016-10-14
Does the Cisco ACE Load Balancer support something like iRules (on the BigIP)? I am looking to write some rules that direct traffic to one node or the other based upon the URL the user enters.
0
Comment
Question by:nsgguy245
  • 5
  • 3
  • 2
11 Comments
 
LVL 61

Expert Comment

by:btan
Comment Utility
yes there is and you can catch this - mainly
rserver redirect SERVER1
   webhost-redirection http://<URL Domain>/<path> <HTTP code e.g. 301 or 302>
   inservice
 serverfarm redirect SFARM1
     rserver SERVER1
     inservice
http://cisqueros.blogspot.sg/2013/01/ace-load-balancer-redirection-http-to.html

There is also a discussion with example shared
https://supportforums.cisco.com/discussion/10966451/ace-header-rewrite-loadbalancing
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
Session affinity is called Stickieness in cisco ACE
btw all ACEs are EOL 2013, so it is best to use software load balancer like linux.
0
 

Author Comment

by:nsgguy245
Comment Utility
I am not looking to do a redirect, but simply send the traffic to one node or the other based upon the full URL path.

For example:

1) If the user enters http://www.site.com/goto/A
    the ACE wold send traffic to 10.10.10.1
2) If the user enters http://www.site.com/goto/B
    the ACE would send traffic to 10.10.10.2

Hope that helps clarify my question. Thanks for your feedback...
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
Install debian linux on low-power PC like raspberry and run reverse proxy off that. At least it is supported configuration.
0
 
LVL 61

Expert Comment

by:btan
Comment Utility
ACE itself should be a reverse proxy already like F5 LTM.
The script is already doing that as these are re-writing the URL and direct to the server farm required. Maybe I miss your points?
rserver host SERVER1
   ip address 10.10.10.1
   inservice
 rserver host SERVER2
   ip address 10.10.10.2
   inservice
rserver redirect SERVER1
   webhost-redirection http://www.site.com/goto/A 302
   inservice
 rserver redirect SERVER2
   webhost-redirection  http://www.site.com/goto/B 302
   inservice
serverfarm redirect SFARM1
     rserver SERVER1
     inservice
 serverfarm redirect SFARM2
     rserver SERVER2
     inservice
http://www.cisco.com/c/en/us/td/docs/interfaces_modules/services_modules/ace/vA5_1_0/configuration/slb/guide/slbgd/rsfarms.html#wp1046009
0
Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

 

Author Comment

by:nsgguy245
Comment Utility
@BTAN

OK, that seems to make sense. I'll look into this further and see if that will work for us. Thanks for the feedback.
0
 
LVL 61

Accepted Solution

by:
btan earned 500 total points (awarded by participants)
Comment Utility
Suggest the solution (ID: 40542584) be considered
1
 

Author Comment

by:nsgguy245
Comment Utility
Advise to accept btan's solution. Thanks...
0
 
LVL 61

Expert Comment

by:btan
Comment Utility
Thanks it will be closed as per shared.
0
 
LVL 61

Expert Comment

by:btan
Comment Utility
As per advice given and acknowledged.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now