
서버에 ping과 ssh를 정상적으로 보낼 수 있습니다. 하지만 새 Mac으로 옮긴 후에는 Chrome이나 Firefox에서 열 수 없습니다. 내 설정은 우분투 서버를 실행하는 Mountain Lion의 vmware Fusion입니다. Mac의 호스트 파일:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
192.168.222.128 local.server.com
Ping은 잘 작동하지만 Telnet은 실패합니다.
$ telnet local.server.com
Trying 192.168.222.128...
telnet: connect to address 192.168.222.128: Connection refused
vmware 이미지는 NAT를 사용하도록 설정되었습니다. Bridged로 전환하면 ping이나 ssh도 작동하지 않습니다.
이미지의 ipctable은 다음과 같습니다.
sudo iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:http
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
어떤 아이디어라도 매우 감사하겠습니다. 우세하지 않은 해결책을 찾기 위해 모든 곳을 찾았습니다.
답변1
Apache 또는 nginx와 같은 웹 서버가 192.168.222.128에서 설치되어 실행되고 수신되는지 확인하세요.
답변2
Umbutu 및 기타 많은 Linux 배포판은 기본적으로 telnet 데몬을 설치하지 않으며 telnet은 권장되지 않습니다. 대신 보안 셸을 사용하세요. SSH가 설치되어 있지 않으면 umbutu에서 실행하여 설치할 수 있습니다 sudo apt-get install ssh-server
.