본문 바로가기

OS

[PORT] 방화벽 확인

telnet ip port 로 cmd 에서 쳐보기

ex) telnet 128.129.230.1 12200


내부 톰캣 떠있나 확인

1. webapps/ROOT/index.jsp 만들고 'hello' 라고 찍고

2. webapps/ROOT/WEB-INF/web.xml


<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"

         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"

         version="3.1">


    <welcome-file-list>

        <welcome-file>index.jsp</welcome-file>

    </welcome-file-list>

</web-app>



3. wget http://localhost:port/index.jsp 가 받아지나 확인

4. IPTABLE-config 에 방화벽 포트 정보 있음.