remark :
Tomcat8 특정 아이피만 허용
To allow access only for the clients connecting from localhost:
1 2 3 4 |
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1"/> |
or
1 2 3 4 |
<Valve className="org.apache.catalina.valves.RemoteCIDRValve" allow="10.0.0.0/8, 127.0.0.1, ::1"/> |
To allow unrestricted access for the clients connecting from localhost but for all other clients only to port 8443:
1 2 3 4 5 |
<Valve className="org.apache.catalina.valves.RemoteAddrValve" addConnectorPort="true" allow="127\.\d+\.\d+\.\d+;\d*|::1;\d*|0:0:0:0:0:0:0:1;\d*|.*;8443"/> |
or
1 2 3 4 5 |
<Valve className="org.apache.catalina.valves.RemoteCIDRValve" addConnectorPort="true" allow="127.0.0.1;\d*|::1;\d*|10.0.0.0/8;8443"/> |