cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1422
Views
3
Helpful
4
Replies

CSS Port redirection

wasiimcisco
Level 1
Level 1

Hi,

I have CSS in single arm deployment model. I want to configure port redirection for the servers.  Servers are actually running web service on port TCP 3636. Which is accessibale by VIP http://192.168.200.87:3636 but I dont want to give user this URL I want the user to use standard HTTP URL as mention below

I want user to open http://192.168.200.87 and once they access this URL automatically CSS redirect them to port 3636. How I can achive this. I am using IP addresses for the load balancing.

service MYSERVER_1

  ip address 192.168.200.40

  keepalive port 3636

  keepalive type tcp

  active

        

service MYSERVER_2

  ip address 192.168.200.38

  keepalive type tcp

  keepalive port 3636

  active

content MYSERVERS

    add service MYSERVER_1

    add service MYSERVER_2

    protocol tcp

    port 3636

    advanced-balance sticky-srcip

    vip address 192.168.200.87

    active

group MYSERVER

  add destination service MYSERVER_1

  add destination service MYSERVER_2

  vip address 192.168.200.87

  active group MYSERVER
 

How i can do this and make the user traffic for http to redirect to port 3636.

1 Accepted Solution

Accepted Solutions

Hi,

Your server/app might be asking the client to open a connection in port 3636, additionally to the content rule in port 80, add a new rule in port 3636 as the one you used to have but still send the initial request in port 80.

content MYSERVERS

    add service MYSERVER_1

    add service MYSERVER_2

    protocol tcp

    port 3636

    advanced-balance sticky-srcip

    vip address 192.168.200.87

    active

Let us know the results.

__ __

Pablo

View solution in original post

4 Replies 4

pablo.nxh
Level 3
Level 3

Hi,

What you need to do here is actually configure the port under the service itself and change to content rule from port 3636 to 80. It would look like this

service MYSERVER_1

  ip address 192.168.200.40

  keepalive port 3636

  keepalive type tcp

  port 3636

  active

service MYSERVER_2

  ip address 192.168.200.38

  keepalive type tcp

  keepalive port 3636

  port 3636

  active

content MYSERVERS

    add service MYSERVER_1

    add service MYSERVER_2

    protocol tcp

    port 80

    advanced-balance sticky-srcip

    vip address 192.168.200.87

    active

This should do the trick

HTH

__ __

Pablo

Hi,

Thanks for the reply, I did the same configuration as mention by you, but after this configuration web page is not opening. Though if i will revert back the changes same web page with port 3636 will work for me.

service MYSERVER_1

  ip address 192.168.200.40
  keepalive port 3636
  keepalive type tcp
  port 3636
  active

service MYSERVER_2

  ip address 192.168.200.38
  keepalive type tcp
  keepalive port 3636
  port 3636
  active

content MYSERVERS

    add service MYSERVER_1

    add service MYSERVER_2

    advanced-balance sticky-srcip

    vip address 192.168.200.87

    protocol tcp

    port 80

    active

Above is the latest configuration.

Hi,

Your server/app might be asking the client to open a connection in port 3636, additionally to the content rule in port 80, add a new rule in port 3636 as the one you used to have but still send the initial request in port 80.

content MYSERVERS

    add service MYSERVER_1

    add service MYSERVER_2

    protocol tcp

    port 3636

    advanced-balance sticky-srcip

    vip address 192.168.200.87

    active

Let us know the results.

__ __

Pablo

Hi,

It is working for me. Thanks for the support. Appreciated.

Review Cisco Networking for a $25 gift card