cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
444
Views
0
Helpful
4
Replies

Content rule Content CSS 11 500 question

Gomez
Level 1
Level 1

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.

4 Replies 4

Gilles Dufour
Cisco Employee
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
Cisco Employee
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.

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?

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: