cancel
Showing results for 
Search instead for 
Did you mean: 

Is Web gateway capable of performing link translation and how

Hello


I couldn`t find a way to use web gateway to translate external to internal URLs.


I have a reverse proxy, and presently it is working that anything “example.com” is translated to “internal.server”
EG:
test.example.com/somefolder/somefile = internal.server/somefolder/somefile

is it possible to use the web gateway to do this:

www.something.example.com= internal.server/something

Any help appreciated.


Meg

5 Replies

Re: Is Web gateway capable of performing link translation and how

Hello,

you can set the "URL" property to any value you want during Request cycle. When the rule engine finishes the request cycle MWG will talk to whatever URL is set to. Since your reverse proxy setup is already running I assume you probably have already done something similar.

For the example you mentioned you can do something like

If

URL.Host equals www.something.example.com

Then

Set URL.Host to internal.server

Set URL.Path to /something

But I assume it won't be that easy as there may be a path on the source request, such as

www.something.example.com/images/mypicture.jpg

In this case you would probably need to rewrite to something like

internal.server/something/images/mypicture.jpg

This can also be done if you use a user-defined property and set the path correctly, e.g.

If URL.Host equals www.something.example.com

Then

Set User-Defined.MyPath to URL.Path

Set URL.Host to internal.server

Set URL.Path to /something/ + User-Defined.MyPath

Best,

Andre

Re: Is Web gateway capable of performing link translation and how

Thanks a lot for your reply, Andre.

I will give it a try.

Regards,

Meg

Highlighted

Re: Is Web gateway capable of performing link translation and how

Check the reverse proxy doc located here: https://community.mcafee.com/docs/DOC-5205

-Patrick

Re: Is Web gateway capable of performing link translation and how

Thank you for the input.

Can anyone tell me why is a stop rule set action used instead of redirect?

I am talking about the above link > section https/http example

Meg

Re: Is Web gateway capable of performing link translation and how

Hi Meg,

It's because the rule set is not designed to re-direct - it's using the Next Hop Proxy feature to fetch the data. With a reverse proxy, you don't want to "redirect" the user to the resource, you want the proxy to proxy the data. By using a 'Stop Rule Set' action you allow for additional rules to be added below that rule that would apply to additional internal resources / sites.

-Patrick

More McAfee Tools to Help You
  • Subscription Service Notification (SNS)
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • eSupport: Policy Orchestrator
  • Community Help Hub

      New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

    • Find Forum FAQs
    • Learn How to Earn Badges
    • Ask for Help
    Go to Community Help

    Join the Community

      Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

    • Get helpful solutions from McAfee experts.
    • Stay connected to product conversations that matter to you.
    • Participate in product groups led by McAfee employees.
    Join the Community
    Join the Community