I have Tomcat 6 installed on a server with multiple network interfaces; one is public-facing, and the other is on our internal network. Is there a way to configure Tomcat such that internal users are allowed to (attempt to) log in to the manager tool but users from the public internet receive an HTTP 403 or similar? I'm completely new to Tomcat and have been attempting to understand the documentation, but have had limited success.
You can restrict by source in tomcat manager configuration:
<Context antiResourceLocking="false" privileged="true"> <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.0\.0\.1,8\.8\.4\..*"/> </Context>
127.0.0.1 and 8.8.4.* are allowed, everything else gets a 403.
allow is a comma separated regular expression.