We did it using a valve in the tomcat server.xml file. The ip address reported to CAS is the remote address and not the load balancer.
<Valve className="org.apache.catalina.valves.RemoteIpValve" internalProxies="x.x.x.*" remoteIpHeader="x-forwarded-for" protocolHeader="x-forwarded-proto" /> -John From: M4t [mailto:m.alexan...@outlook.com] Sent: Monday, September 28, 2015 9:38 AM To: cas-user@lists.jasig.org Subject: [cas-user] CAS log X-Forwarded-IP Hello i'd like to log X-Forwarded-IP instead of Remote-IP in cas.log/catalina.out. Something like : ============================================================= WHO: audit:unknown WHAT: TGT-1-xxxxxxxxxxxxx ACTION: TICKET_GRANTING_TICKET_CREATED APPLICATION: CAS WHEN: Mon Sep 28 16:25:09 CEST 2015 CLIENT IP ADDRESS: X-Forwarded-IP SERVER IP ADDRESS: 127.0.0.1 ============================================================= I think it could be possible to change some parameters in log4j.xml with "com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager". But i don't know how to configure it. Thks for helping me. -- You are currently subscribed to cas-user@lists.jasig.org<mailto:cas-user@lists.jasig.org> as: jour...@depaul.edu<mailto:jour...@depaul.edu> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user