아... 삽질만 한 12시간 째 하고 있습니다...... ㅜㅜ 웹서버 관련..

gate21의 이미지

아.. 진짜.. 안되네요.. 제가 이렇게 능력없는지 이제 알았습니다.

개인 웹서버를 만들고 싶어서 계속 고생하고 잇는데요.. 안쓰는 컴퓨터 하나 돌려서요

고생하고 잇는 부분이.. 다 된거 같은데 .. 외부에서 접속이 안된다는 겁니다..;;

포트스캔사이트 www.grc.com에서 알아보니까.. 도저히 80포트를 못열겠군요.. iptime공유기 쓰시는 분들.. 혹시 알고 계시나요?

192.168.0.1에서 포트포워딩 해보고 난리를 쳐도 도저히 안되는군요..;; 아무래도 ISP문제 인거 같아 그쪽에 전화를 해봣는데.. 뭐..;;

이럴줄 알고 있었지만.. 자기들은 문제가 없다더군요.. 전화를 한 내가 바보지..

그냥 포기하고 군데군데 열려있는 포트 그거로 쓸까 하는 중이에요.. ㅜ.ㅜ// 914번은 정말 아무도 안쓰는거 같은데 열려 있군요..;;

아님 그러는 거 같은방법은 없나요? 외부에서 80으로 접속해오면 열려있는거로 돌리는 방법은..;;

아무튼.. 포트상태가 Stealth로 뜨는데 이거 외부접속 막아 놓은 거 맞죠..?.. 제가 좀 개념이 없어서..;; 인터넷으로 배우고 있어요..

80포트 포기하기 싫은데.. 티브로드에 전화걸어서 화낼수도 없고...

centos에 방화벽도 그냥 다 해제 해버렸는데..

ipes4579의 이미지

netstat -na | grep 80 결과와
ps -ef 결과 정도는 보여주셔야 답변 할 수 있을 것 같네요.

익명 사용자의 이미지

일단 80포트 말고 8080같은 포트로 웹서버 설정해서 테스트해보시는 것도...

gate21의 이미지

netstat -na | grep 80
unix 2 [ ACC ] STREAM LISTENING 43039 /tmp/orbit-root/linc-1ba8-0-16372bc7480b
unix 2 [ ACC ] STREAM LISTENING 8098 /var/run/cups/cups.sock
unix 3 [ ] STREAM CONNECTED 48012 /tmp/scim-bridge-0.3.0.socket-0@localhost:0.0
unix 3 [ ] STREAM CONNECTED 48011
unix 3 [ ] STREAM CONNECTED 47780
unix 3 [ ] STREAM CONNECTED 43180 /tmp/orbit-root/linc-1b77-0-27e4530e663d9
unix 3 [ ] STREAM CONNECTED 43080 @/tmp/fam-root-
unix 3 [ ] STREAM CONNECTED 43058 /tmp/orbit-root/linc-1ba8-0-16372bc7480b
unix 3 [ ] STREAM CONNECTED 43047 /tmp/orbit-root/linc-1ba8-0-16372bc7480b
unix 3 [ ] STREAM CONNECTED 43042 /tmp/orbit-root/linc-1ba8-0-16372bc7480b
unix 3 [ ] STREAM CONNECTED 42980 /tmp/orbit-root/linc-1b71-0-64b1d9fc9004f
unix 3 [ ] STREAM CONNECTED 42280
unix 3 [ ] STREAM CONNECTED 11080
unix 2 [ ] DGRAM 8010

ps -ef

UID PID PPID C STIME TTY TIME CMD
root 1 0 0 12:25 ? 00:00:00 init [5]
root 2 1 0 12:25 ? 00:00:00 [migration/0]
root 3 1 0 12:25 ? 00:00:00 [ksoftirqd/0]
root 4 1 0 12:25 ? 00:00:00 [watchdog/0]
root 5 1 0 12:25 ? 00:00:00 [events/0]
root 6 1 0 12:25 ? 00:00:00 [khelper]
root 7 1 0 12:25 ? 00:00:00 [kthread]
root 9 7 0 12:25 ? 00:00:00 [xenwatch]
root 10 7 0 12:25 ? 00:00:00 [xenbus]
root 12 7 0 12:25 ? 00:00:00 [kblockd/0]
root 13 7 0 12:25 ? 00:00:00 [kacpid]
root 109 7 0 12:25 ? 00:00:00 [cqueue/0]
root 113 7 0 12:25 ? 00:00:00 [khubd]
root 115 7 0 12:25 ? 00:00:00 [kseriod]
root 174 7 0 12:25 ? 00:00:00 [khungtaskd]
root 175 7 0 12:25 ? 00:00:00 [pdflush]
root 176 7 0 12:25 ? 00:00:00 [pdflush]
root 177 7 0 12:25 ? 00:00:00 [kswapd0]
root 178 7 0 12:25 ? 00:00:00 [aio/0]
root 314 7 0 12:25 ? 00:00:00 [kpsmoused]
root 336 7 0 12:25 ? 00:00:00 [ata/0]
root 337 7 0 12:25 ? 00:00:00 [ata_aux]
root 340 7 0 12:25 ? 00:00:00 [scsi_eh_0]
root 341 7 0 12:25 ? 00:00:00 [scsi_eh_1]
root 346 7 0 12:25 ? 00:00:00 [kstriped]
root 355 7 0 12:25 ? 00:00:00 [ksnapd]
root 366 7 0 12:25 ? 00:00:00 [kjournald]
root 391 7 0 12:25 ? 00:00:00 [kauditd]
root 422 1 0 12:25 ? 00:00:00 /sbin/udevd -d
root 777 7 0 12:26 ? 00:00:00 [hd-audio0]
root 1512 7 0 12:26 ? 00:00:00 [kmpathd/0]
root 1513 7 0 12:26 ? 00:00:00 [kmpath_handlerd]
root 1569 7 0 12:26 ? 00:00:00 [kjournald]
root 1712 7 0 12:26 ? 00:00:00 [iscsi_eh]
root 1745 7 0 12:26 ? 00:00:00 [ib_addr]
root 1752 7 0 12:26 ? 00:00:00 [ib_mcast]
root 1753 7 0 12:26 ? 00:00:00 [ib_inform]
root 1754 7 0 12:26 ? 00:00:00 [local_sa]
root 1757 7 0 12:26 ? 00:00:00 [iw_cm_wq]
root 1760 7 0 12:26 ? 00:00:00 [ib_cm/0]
root 1763 7 0 12:26 ? 00:00:00 [rdma_cm]
root 1779 1 0 12:26 ? 00:00:00 brcm_iscsiuio
root 1784 1 0 12:26 ? 00:00:00 iscsid
root 1785 1 0 12:26 ? 00:00:00 iscsid
root 1871 1 0 12:26 ? 00:00:00 auditd
root 1873 1871 0 12:26 ? 00:00:00 /sbin/audispd
root 1895 1 0 12:26 ? 00:00:00 syslogd -m 0
root 1898 1 0 12:26 ? 00:00:00 klogd -x
rpc 1972 1 0 12:26 ? 00:00:00 portmap
root 1998 7 0 12:26 ? 00:00:00 [rpciod/0]
root 2004 1 0 12:26 ? 00:00:00 rpc.statd
root 2028 1 0 12:26 ? 00:00:00 rpc.idmapd
dbus 2043 1 0 12:26 ? 00:00:01 dbus-daemon --system
root 2058 1 0 12:26 ? 00:00:00 /usr/sbin/hcid
root 2062 1 0 12:26 ? 00:00:00 /usr/sbin/sdpd
root 2086 1 0 12:26 ? 00:00:00 [krfcommd]
root 2122 1 0 12:26 ? 00:00:00 pcscd
root 2132 1 0 12:26 ? 00:00:00 /usr/sbin/acpid
68 2141 1 0 12:26 ? 00:00:02 hald
root 2142 2141 0 12:26 ? 00:00:00 hald-runner
68 2150 2142 0 12:26 ? 00:00:00 hald-addon-acpi: listening on ac
68 2154 2142 0 12:26 ? 00:00:00 hald-addon-keyboard: listening o
root 2161 2142 0 12:26 ? 00:00:00 hald-addon-storage: polling /dev
root 2177 1 0 12:26 ? 00:00:00 /usr/bin/hidd --server
root 2210 1 0 12:26 ? 00:00:00 automount
root 2227 1 0 12:26 ? 00:00:00 ./hpiod
root 2232 1 0 12:26 ? 00:00:00 /usr/bin/python ./hpssd.py
root 2245 1 0 12:26 ? 00:00:00 /usr/sbin/sshd
root 2254 1 0 12:26 ? 00:00:00 cupsd
root 2268 1 0 12:26 ? 00:00:00 xinetd -stayalive -pidfile /var/
root 2301 1 0 12:26 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --d
mysql 2351 2301 0 12:26 ? 00:00:00 /usr/libexec/mysqld --basedir=/u
root 2384 1 0 12:26 ? 00:00:00 sendmail: accepting connections
smmsp 2392 1 0 12:26 ? 00:00:00 sendmail: Queue runner@01:00:00
root 2402 1 0 12:26 ? 00:00:00 gpm -m /dev/input/mice -t exps2
root 2421 1 0 12:26 ? 00:00:00 crond
xfs 2462 1 0 12:26 ? 00:00:00 xfs -droppriv -daemon
root 2479 1 0 12:26 ? 00:00:00 /usr/sbin/atd
root 2500 1 0 12:26 ? 00:00:03 libvirtd --daemon
root 2551 1 0 12:26 ? 00:00:00 NetworkManager --pid-file=/var/r
root 2565 1 0 12:26 ? 00:00:00 /usr/sbin/wpa_supplicant -c /etc
root 2567 1 0 12:26 ? 00:00:00 /usr/sbin/nm-system-settings --c
avahi 2576 1 0 12:26 ? 00:00:00 avahi-daemon: running [localhost
avahi 2577 2576 0 12:26 ? 00:00:00 avahi-daemon: chroot helper
nobody 2579 1 0 12:26 ? 00:00:00 /usr/sbin/dnsmasq --strict-order
root 2617 1 0 12:26 ? 00:00:00 /usr/sbin/cimserver
root 2715 1 0 12:26 ? 00:00:00 xenstored --pid-file /var/run/xe
root 2719 1 0 12:26 ? 00:00:00 /usr/bin/python /usr/sbin/xend s
root 2721 2719 0 12:26 ? 00:00:00 /usr/bin/python /usr/sbin/xend s
root 2723 1 0 12:26 ? 00:00:00 xenconsoled --log none --timesta
root 2726 1 0 12:26 ? 00:00:00 blktapctrl
root 3064 1 0 12:27 ? 00:00:00 /usr/bin/python -tt /usr/sbin/yu
root 3066 1 0 12:27 ? 00:00:00 /usr/libexec/gam_server
root 3141 1 0 12:27 ? 00:00:00 modclusterd
root 3183 1 0 12:27 ? 00:00:00 /usr/sbin/oddjobd -p /var/run/od
root 3204 1 0 12:27 ? 00:00:00 /usr/sbin/saslauthd -m /var/run/
root 3205 3204 0 12:27 ? 00:00:00 /usr/sbin/saslauthd -m /var/run/
root 3206 3204 0 12:27 ? 00:00:00 /usr/sbin/saslauthd -m /var/run/
root 3207 3204 0 12:27 ? 00:00:00 /usr/sbin/saslauthd -m /var/run/
root 3208 3204 0 12:27 ? 00:00:00 /usr/sbin/saslauthd -m /var/run/
ricci 3218 1 0 12:27 ? 00:00:00 ricci -u 101
root 3235 1 0 12:27 ? 00:00:00 /usr/sbin/smartd -q never
root 3260 1 0 12:27 tty1 00:00:00 /sbin/mingetty tty1
root 3261 1 0 12:27 tty2 00:00:00 /sbin/mingetty tty2
root 3263 1 0 12:27 tty3 00:00:00 /sbin/mingetty tty3
root 3264 1 0 12:27 tty4 00:00:00 /sbin/mingetty tty4
root 3270 1 0 12:27 tty5 00:00:00 /sbin/mingetty tty5
root 3271 1 0 12:27 tty6 00:00:00 /sbin/mingetty tty6
root 3272 1 0 12:27 ? 00:00:00 /usr/sbin/gdm-binary -nodaemon
root 3363 3272 0 12:27 ? 00:00:00 /usr/sbin/gdm-binary -nodaemon
root 3365 1 0 12:27 ? 00:00:00 /usr/libexec/gdm-rh-security-tok
root 3507 1 0 12:27 ? 00:00:00 /usr/libexec/bonobo-activation-s
root 6527 2551 0 15:00 ? 00:00:00 /sbin/dhclient -d -sf /usr/libex
root 6893 3363 0 15:23 tty7 00:00:43 /usr/bin/Xorg :0 -br -audit 0 -a
root 6916 3363 0 15:23 ? 00:00:00 /usr/bin/gnome-session
root 6948 6916 0 15:23 ? 00:00:00 [Xsession]
root 6952 6916 0 15:23 ? 00:00:00 /usr/bin/ssh-agent /bin/sh -c ex
root 6967 1 0 15:23 ? 00:00:00 /usr/lib64/scim-1.0/scim-launche
root 6983 1 0 15:23 ? 00:00:00 /usr/bin/dbus-launch --exit-with
root 6985 1 0 15:23 ? 00:00:00 /bin/dbus-daemon --fork --print-
root 6991 1 0 15:23 ? 00:00:00 /usr/lib64/scim-1.0/scim-helper-
root 6992 1 0 15:23 ? 00:00:00 /usr/lib64/scim-1.0/scim-panel-g
root 6994 1 0 15:23 ? 00:00:00 /usr/lib64/scim-1.0/scim-launche
root 6996 1 0 15:23 ? 00:00:00 /usr/libexec/gconfd-2 5
root 6999 1 0 15:23 ? 00:00:00 /usr/bin/gnome-keyring-daemon
root 7001 1 0 15:23 ? 00:00:00 /usr/libexec/gnome-settings-daem
root 7021 1 0 15:23 ? 00:00:00 metacity --sm-client-id=default1
root 7025 1 0 15:23 ? 00:00:00 gnome-panel --sm-client-id defau
root 7027 1 0 15:23 ? 00:00:00 nautilus --no-default-window --s
root 7031 1 0 15:23 ? 00:00:00 /usr/libexec/bonobo-activation-s
root 7033 1 0 15:23 ? 00:00:00 /usr/libexec/gnome-vfs-daemon
root 7034 1 0 15:23 ? 00:00:00 gnome-volume-manager --sm-client
root 7037 1 0 15:23 ? 00:00:00 eggcups --sm-client-id default4
root 7052 1 0 15:23 ? 00:00:00 bt-applet --sm-disable
root 7055 1 0 15:23 ? 00:00:00 ./escd --key_Inserted="/usr/bin/
root 7061 1 0 15:23 ? 00:00:00 /usr/bin/python -tt /usr/bin/pup
root 7064 1 0 15:23 ? 00:00:00 nm-applet --sm-disable
root 7069 1 0 15:23 ? 00:00:00 pam-panel-icon --sm-client-id de
root 7071 1 0 15:23 ? 00:00:00 gnome-power-manager
root 7072 7069 0 15:23 ? 00:00:00 /sbin/pam_timestamp_check -d roo
root 7078 1 0 15:24 ? 00:00:00 /usr/libexec/wnck-applet --oaf-a
root 7080 1 0 15:24 ? 00:00:00 /usr/libexec/trashapplet --oaf-a
root 7098 1 0 15:24 ? 00:00:00 /usr/libexec/mapping-daemon
root 7111 1 0 15:24 ? 00:00:00 /usr/libexec/notification-area-a
root 7113 1 0 15:24 ? 00:00:00 /usr/libexec/clock-applet --oaf-
root 7115 1 0 15:24 ? 00:00:00 /usr/libexec/mixer_applet2 --oaf
root 7133 1 0 15:24 ? 00:00:00 /usr/libexec/notification-daemon
root 7175 1 0 15:24 ? 00:00:00 gnome-screensaver
root 7187 1 0 15:26 ? 00:00:47 /usr/lib64/firefox-3.6/firefox
root 7368 1 0 15:52 ? 00:00:00 gedit
root 7371 1 0 15:52 ? 00:00:00 gnome-terminal
root 7373 7371 0 15:52 ? 00:00:00 gnome-pty-helper
root 7374 7371 0 15:52 pts/1 00:00:00 bash
root 7425 1 0 15:56 ? 00:00:00 scim-bridge
root 7555 1 0 16:39 ? 00:00:00 /usr/sbin/httpd
nobody 7557 7555 0 16:39 ? 00:00:00 /usr/sbin/httpd
nobody 7558 7555 0 16:39 ? 00:00:00 /usr/sbin/httpd
nobody 7559 7555 0 16:39 ? 00:00:00 /usr/sbin/httpd
nobody 7560 7555 0 16:39 ? 00:00:00 /usr/sbin/httpd
nobody 7561 7555 0 16:39 ? 00:00:00 /usr/sbin/httpd
nobody 7562 7555 0 16:39 ? 00:00:00 /usr/sbin/httpd
nobody 7563 7555 0 16:39 ? 00:00:00 /usr/sbin/httpd
nobody 7564 7555 0 16:39 ? 00:00:00 /usr/sbin/httpd
root 7672 7374 3 17:10 pts/1 00:00:00 ps -ef

ipes4579의 이미지

80 포트가 안열려있네요. httpd 서비스는 돌아가고 있는 거 보니
설정이 안 되어있는 것 같은데..
/etc/xinetd.d/httpd
/etc/apache2/httpd.conf
/etc/apache2/apache.conf
/etc/httpd/httpd.conf
무슨 파일이었는진 까먹었는데.. 흠흠.
아마 이 파일중에 Listen 설정이 안되어있지 않나 싶습니다.

gate21의 이미지

/etc/httpd/conf/httpd.conf 이 파일 인거 같은데 어떻게 설정하나요

지금 설정은 Listen *:80

으로 되어 있는데요

ipes4579의 이미지

listen *:80에 주석처리가 안 되어있나요?
흠. 그럼 다른 설정 문제일텐데
/var/log/httpd/error.log 확인 해 보셨나요?

익명 사용자의 이미지

Redhat계열은 80포트를 열어줘야 합니다.

/etc/sysconfig/iptables 파일에서 다음 문자열을 찾아보시길..
...--dport 80 ...

저는 Fedora쓰는중인데 다음과 같은 라인이 있네요.

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

익명 사용자의 이미지

selinux 도 disabled 되어 있는지 봐보세요..

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.