Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
Loading...
Loading...

HOWTO: Authenticating requests based on X-Forwarded-For

Expand / Collapse


This article applies to:

  • WebMarshal 7.5.0 and above

Question:

  • How do I apply IP authentication based on the X-Forwarded-For header of a request?

Procedure:

WebMarshal IP Authentication normally evaluates the connecting IP address.

You can configure WebMarshal to authenticate based on the X-Forwarded-For header included in the request. 

This option allows you to authenticate and apply policy based on the client IP address where the requests pass through a load balancer or other device before reaching WebMarshal.

WebMarshal considers only the first IP address in the first valid X-Forwarded-For header.

To configure X-Forwarded-For evaluation:

  1. Create one or more WebMarshal IP Groups that include the IP addresses of the original clients. 
  2. To configure the trusted sources of forwarded requests (such as load balancers), add entries to the WebMarshal Proxy Configuration file (WMProxy.config.xml) on each processing server
    • The XFFEntry range should only include the load balancer IP addresses, not the client IP addresses
    • Most installations will have only one XFFEntry element, but you can include more than one XFFEntry element if necessary
    • Include quote marks but not braces
    <WebMarshal>
    <Proxy>
    <Config>

    <XFF enabled="true" >
    <XFFEntry from="{IPaddressStart}" to="{IPaddressEnd}" />
    </XFF>
    </Config>
    </Proxy>
    </WebMarshal>
  3. Restart the WebMarshal Proxy service.

Note

  • WMProxy.config.xml will include other entries. Do not change the other entries.
  • XML files are case sensitive.
  • For general information about editing XML settings files, see article Q12705.

To contact Trustwave about this article or to request support:


Rate this Article:
     

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.