![포트 443 액세스 권한을 부여하려고 할 때 Debian 11에서 방화벽 문제](https://linux55.com/image/222003/%ED%8F%AC%ED%8A%B8%20443%20%EC%95%A1%EC%84%B8%EC%8A%A4%20%EA%B6%8C%ED%95%9C%EC%9D%84%20%EB%B6%80%EC%97%AC%ED%95%98%EB%A0%A4%EA%B3%A0%20%ED%95%A0%20%EB%95%8C%20Debian%2011%EC%97%90%EC%84%9C%20%EB%B0%A9%ED%99%94%EB%B2%BD%20%EB%AC%B8%EC%A0%9C.png)
두 대의 다른 컴퓨터에 포트 443에 대한 액세스 권한을 부여하려고 합니다. 관련된 모든 컴퓨터에는 데비안 운영 체제가 설치되어 있었습니다. 두 IP 주소 모두에서 Ping 및 Traceroute가 성공했습니다. iptables에 추가된 규칙:
-A INPUT -s 192.168.11.3/32 -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -s 192.168.11.78/32 -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j DROP
그것을 사용할 때컬192.168.11.1:443192.168.11.3에서 다음을 얻습니다.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
Instead use the HTTPS scheme to access this URL, please.<br />
</p>
좋아요, 작동해요! 그러나 192.168.11.78에서 동일한 요청을 수행하면 다음과 같은 결과가 나타납니다.
curl: (28) Failed to connect to 192.168.11.1 port 443 after 129975 ms: Connection timed out
78의 iptables에는 규칙이 없습니다.
iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
도와주세요. 해결책을 찾을 수 없습니다.