Content rule Content CSS 11 500 question

Unanswered Question
Mar 14th, 2007
User Badges:

I have the following question, the port number in a content rule is this the port to witch the content switch forwards or to witch he listens on.

Suppose i have an url www.myname.org

when i receive this on the content switch i want to redirect it to the backend on port 8080. How can i do this.


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Gilles Dufour Wed, 03/14/2007 - 03:13
User Badges:
  • Cisco Employee,

inside the content rule, the port command indicates the port the CSS listens on.

If you want to forward the connection to a different port, you have to configure it inside the service using the port command as well.


Gilles.

alejrodr Wed, 03/14/2007 - 15:54
User Badges:
  • Cisco Employee,

Frederik,


A quick example of what you are trying to do is this:


Service Server1

ip address z.z.z.z

port 8080 <-- Port for backend server

active


owner myname.org

content L5_HTTP

vip address x.x.x.x

port 80 <-- Port rule is listening on

add service Server1

add service Server2

add service Server3

active


Hope it helps.

Frederik1980 Thu, 03/15/2007 - 04:23
User Badges:

For example we have the following rule.

service server1

port 40918

ip address 10.2.48.131

keepalive frequency 20

keepalive retryperiod 60

keepalive type tcp

keepalive port 40918

redundant-index 110

active




content rulename

vip address 10.5.1.1

redundant-index 114

balance leastconn

add service server1

add service server2

add service server3

add service server4

protocol tcp

port 40918

url "//domain.be/*"

active

1

I don't realy understand this rule. Especially the url "//domain.be/*

How will processing this content rule work? First match DNS name?


alejrodr Thu, 03/15/2007 - 06:21
User Badges:
  • Cisco Employee,

Frederik,


Your content rule is what we call a Layer 5 Content Rule since it has a HTTP URL field in its matching criteria.


This means the CSS will be listening for traffic that is heading towards VIP Address 10.5.1.1 on port 40918 AND that it matches a certain URL. This URL in your case is "//domain.be/*".


When traffic is initiated to VIP 10.5.1.1, the CSS will use Layer 5 information such as the URL included in the client requests to match the traffic to this content rule.


When you use a browser to access this desired page, your DNS will probably return 10.5.1.1 for domain.be, telling your browser to make a request to VIP 10.5.1.1 and URL "//domain.be/*".


Please take a look at this link for more information.


http://www.cisco.com/univercd/cc/td/doc/product/webscale/css/css_820/cntlbgd/contrule.htm#wp1037654


Hope it helps.


Actions

This Discussion