Application redirection

Hollo Community

We are creating an application in F5(legacy app). The application need to working on port 443 and we created a vip with port 443. When login in to the application it’s redirecting to port 7900 and the connection got refused as we are not having a vip(on port 7900). Application team need secure connection towards vip and 7900 vip with pool creation not a suggested solution

For example, if we try application in https://xys.com it’s working and getting the login page. After providing login credentials it’s redirecting to http://xys.com:7900 and blocking

After login I removed 7900 and refresh https:xys.com it’s working as logged session.

Need your suggestion how I can establish secure connection for this vip all communication. If any 7900 traffic in browser it’s should forward to port 443 .

Amir

Hello Amir

Are you expecting 7900-> 443 redirection in browser and application access?

Br

Aswin

Yes @Aswin_mk

We need a complete secure connection as it’s from internet. After login application will forward traffic to 7900, application team can’t change it.

Amir

@amir_1

Please create a http vip with port 7900 and add_sys_https_redirect  irule. No need to add pool and if any request come to port 7900, F5 will redirect the traffic to https

Br

Aswin

That’s a quick one, could you please provide the irule information.!

Please use the F5 inbuild irule

image_335738.png

_sys_https_redirect

@amir_1

To  accomplish this task, you could use a stream profile.

K39394712: Overview of the Stream profile

A similar question has also been answered in the post below.

Redirect Rewrite not working - how to write an irule to redirect non-standard port

https://community.f5.com/discussions/technicalforum/redirect-rewrite-not-working---how-write-an-irule-to-redirect-non-standard-port/50107

I hope this helps .